:root {
    --ink: #111111;
    --paper: #ffffff;
    --muted: #737373;
    --line: #e6e6e6;
    --soft: #f6f6f4;
    --panel: #181818;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

html {
    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100vh;

    color: var(--ink);
    background: var(--paper);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    display: grid;

    grid-template-rows:
        82px
        minmax(0, 1fr)
        68px;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.cloud-authenticated {
    grid-template-rows:
        72px
        minmax(0, 1fr);

    overflow: hidden;
}

body.cloud-authenticated .footer {
    display: none;
}

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

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}


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

.header {
    width: 100%;
    height: 82px;

    padding:
        0 clamp(
            28px,
            5vw,
            76px
        );

    background: var(--ink);

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

    position: relative;
    z-index: 100;
}

body.cloud-authenticated .header {
    height: 72px;
}

.logo {
    color: #ffffff;

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

    font-size: 15px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: 4.2px;

    text-decoration: none;

    user-select: none;
}

.header-right {
    display: flex;
    align-items: center;

    gap: 18px;
}

.header-cloud-label {
    display: none;

    color: #a8a8a8;

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

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

    line-height: 1;

    letter-spacing: 2px;
}

body.cloud-authenticated
.header-cloud-label {
    display: block;
}


/* =========================================================
   HAMBURGER
========================================================= */

.menu-button {
    width: 44px;
    height: 44px;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    display: flex;
    flex-direction: column;

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

    gap: 5px;
}

.menu-button span {
    width: 20px;
    height: 1px;

    display: block;

    background: #ffffff;

    transform-origin: center;

    transition:
        transform 180ms ease,
        opacity 140ms ease;
}

.menu-button.active
span:first-child {
    transform:
        translateY(6px)
        rotate(45deg);
}

.menu-button.active
span:nth-child(2) {
    opacity: 0;
}

.menu-button.active
span:last-child {
    transform:
        translateY(-6px)
        rotate(-45deg);
}


/* =========================================================
   SITE MENU
========================================================= */

.site-menu {
    position: fixed;

    top: 89px;

    right:
        clamp(
            28px,
            5vw,
            76px
        );

    width: 220px;

    padding: 7px;

    background: var(--ink);

    border:
        1px solid #343434;

    border-radius: 10px;

    box-shadow:
        0 16px 36px
        rgba(
            0,
            0,
            0,
            0.16
        );

    z-index: 500;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(-7px)
        scale(0.985);

    transform-origin:
        top right;

    transition:
        opacity 160ms ease,
        visibility 160ms ease,
        transform 160ms ease;
}

body.cloud-authenticated
.site-menu {
    top: 79px;
}

.site-menu.open {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

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

.site-menu a {
    display: block;

    padding:
        12px 13px;

    color: #ffffff;

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

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

    line-height: 1.35;

    letter-spacing: 1px;

    text-decoration: none;

    border-radius: 7px;

    text-transform: uppercase;

    transition:
        background 140ms ease;
}

.site-menu a:hover {
    background: #292929;
}


/* =========================================================
   MAIN
========================================================= */

.main {
    width: 100%;
    min-width: 0;
    min-height: 0;

    overflow: hidden;

    display: flex;
}

.cloud {
    width: 100%;
    min-height: 100%;

    min-width: 0;
}


/* =========================================================
   CLOUD LANDING
========================================================= */

.cloud-landing {
    width: 100%;
    min-height: 100%;

    padding:
        clamp(
            54px,
            8vw,
            110px
        )
        clamp(
            28px,
            9vw,
            150px
        );

    background: #ffffff;

    display: grid;

    grid-template-columns:
        minmax(
            0,
            1.2fr
        )
        minmax(
            320px,
            420px
        );

    align-items: center;

    gap:
        clamp(
            50px,
            9vw,
            140px
        );
}

.cloud-intro {
    min-width: 0;
}

.eyebrow {
    margin-bottom: 20px;

    color: var(--muted);

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

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

    line-height: 1;

    letter-spacing: 2px;
}

.cloud-intro h1 {
    max-width: 900px;

    color: #050505;

    margin: 0;

    font-size:
        clamp(
            58px,
            7.5vw,
            112px
        );

    font-weight: 400;

    line-height: 0.91;

    letter-spacing:
        -0.065em;
}

.description {
    max-width: 440px;

    margin-top: 28px;

    color: #444444;

    font-size: 17px;

    line-height: 1.55;
}


/* =========================================================
   LOGIN
========================================================= */

.login-panel {
    width: 100%;
    max-width: 420px;

    padding: 30px;

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

    background: #ffffff;

    box-shadow:
        12px 12px 0
        #ededeb;
}

.login-header {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 28px;
}

.login-symbol {
    flex: 0 0 auto;

    width: 36px;
    height: 36px;

    border:
        1px solid #dcdcdc;

    border-radius: 50%;

    display: flex;

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

    color: #444444;

    font-size: 16px;
}

.login-header h2 {
    color: #111111;

    font-size: 21px;

    font-weight: 400;

    line-height: 1.1;
}

.login-header p {
    margin-top: 4px;

    color: var(--muted);

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

    font-size: 12px;

    line-height: 1.4;
}

.login-panel form {
    display: grid;

    gap: 11px;
}

.login-panel input {
    width: 100%;

    height: 44px;

    padding:
        0 12px;

    border: 0;

    border-bottom:
        1px solid #aaaaaa;

    border-radius: 0;

    outline: 0;

    background: transparent;

    color: #111111;

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

    font-size: 14px;

    line-height: 44px;
}

.login-panel input::placeholder {
    color: #999999;
}

.login-panel input:focus {
    border-bottom-color:
        var(--ink);
}

.continue-button {
    min-height: 44px;

    margin-top: 8px;

    padding:
        0 16px;

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

    background: var(--ink);

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: space-between;

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

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

    line-height: 1;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.continue-button:hover {
    opacity: 0.82;
}

.continue-button:disabled {
    opacity: 0.55;

    cursor: wait;
}

.login-error {
    min-height: 18px;

    margin-top: 12px;

    color: #a50000;

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

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    width: 100%;
    height: 68px;

    padding:
        0 clamp(
            28px,
            5vw,
            76px
        );

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

    background: #111111;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: space-between;

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

    font-size: 11px;
}

.footer p:last-child {
    font-weight: 700;

    letter-spacing: 0.9px;
}


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

.cloud-app {
    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    display: grid;

    grid-template-columns:
        246px
        minmax(0, 1fr);

    background: #ffffff;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    min-width: 0;
    min-height: 0;

    padding:
        28px 18px
        20px;

    background: var(--panel);

    color: #ffffff;

    border-right:
        1px solid #2b2b2b;

    display: flex;

    flex-direction: column;

    gap: 24px;
}

.sidebar-brand {
    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        0 10px;

    color: #f5f5f5;

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

    font-size: 11px;

    font-weight: 700;

    line-height: 1;

    letter-spacing: 1.8px;
}

.sidebar-item {
    width: 100%;

    border: 0;

    padding:
        12px 10px;

    background: transparent;

    color: #dddddd;

    display: flex;

    align-items: center;

    gap: 12px;

    text-align: left;

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

    font-size: 12px;

    font-weight: 700;

    border-radius: 7px;
}

.sidebar-item:hover {
    background: #242424;

    color: #ffffff;
}

.sidebar-item.active {
    background: #303030;

    color: #ffffff;
}

.sidebar-storage {
    margin:
        0 10px;

    padding:
        19px 0;

    border-top:
        1px solid #3a3a3a;

    border-bottom:
        1px solid #3a3a3a;

    display: grid;

    gap: 7px;
}

.sidebar-storage p {
    color: #aaaaaa;

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

    font-size: 9px;

    font-weight: 700;

    line-height: 1;

    letter-spacing: 1.4px;
}

.sidebar-storage strong {
    color: #ffffff;

    font-size: 16px;

    font-weight: 400;
}

.sidebar-storage span {
    color: #bbbbbb;

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

    font-size: 11px;

    line-height: 1.4;
}

.sidebar-logout {
    width: 100%;

    margin-top: auto;

    border: 0;

    padding:
        10px;

    background: transparent;

    color: #bbbbbb;

    text-align: left;

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

    font-size: 11px;

    border-radius: 7px;
}

.sidebar-logout:hover {
    background: #242424;

    color: #ffffff;
}


/* =========================================================
   WORKSPACE
========================================================= */

.workspace {
    min-width: 0;
    min-height: 0;

    padding:
        30px
        clamp(
            20px,
            4vw,
            58px
        )
        35px;

    background: #ffffff;

    overflow-x: hidden;
    overflow-y: auto;
}

.workspace-top {
    min-width: 0;

    padding-bottom:
        23px;

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

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.breadcrumbs {
    min-width: 0;
    max-width: 55%;

    display: flex;

    align-items: center;

    gap: 7px;

    overflow-x: auto;

    scrollbar-width: none;

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

    font-size: 12px;
}

.breadcrumbs::-webkit-scrollbar {
    display: none;
}

.breadcrumbs button {
    flex: 0 0 auto;

    border: 0;

    padding: 0;

    background: transparent;

    color: #555555;

    font-family: inherit;

    font-size: 12px;

    white-space: nowrap;
}

.breadcrumbs button:hover {
    color: #111111;

    text-decoration: underline;
}

.crumb-separator {
    flex: 0 0 auto;

    color: #aaaaaa;
}

.workspace-tools {
    flex: 0 0 auto;

    display: flex;

    align-items: center;

    gap: 9px;
}

.search {
    width:
        min(
            280px,
            32vw
        );

    height: 36px;

    padding:
        0 11px;

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

    display: flex;

    align-items: center;

    gap: 7px;

    color: #777777;
}

.search input {
    min-width: 0;

    width: 100%;

    padding: 0;

    border: 0;

    outline: 0;

    background: transparent;

    color: #111111;

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

    font-size: 12px;
}

.search input::placeholder {
    color: #999999;
}

.icon-button,
.account-button,
.view-button {
    flex: 0 0 auto;

    width: 36px;
    height: 36px;

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

    background: #ffffff;

    color: #222222;

    display: flex;

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

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

    font-size: 13px;
}

.account-button {
    border-radius: 50%;

    background: #111111;

    border-color: #111111;

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;
}

.icon-button:hover,
.account-button:hover,
.view-button:hover {
    background: #f1f1ef;
}

.account-button:hover {
    background: #252525;
}


/* =========================================================
   WORKSPACE HEADING
========================================================= */

.workspace-heading {
    padding:
        31px 0
        23px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;
}

.workspace-eyebrow {
    color: var(--muted);

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

    font-size: 9px;

    font-weight: 700;

    line-height: 1;

    letter-spacing: 2px;
}

.workspace-heading h2 {
    margin-top: 8px;

    color: #111111;

    font-size: 36px;

    font-weight: 400;

    line-height: 1;

    letter-spacing:
        -0.04em;
}

.workspace-heading-actions {
    display: flex;

    align-items: center;

    gap: 8px;
}

.primary-button,
.secondary-button {
    min-height: 42px;

    padding:
        0 16px;

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

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

    font-size: 11px;

    font-weight: 700;

    line-height: 1;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.primary-button {
    background: var(--ink);

    color: #ffffff;
}

.secondary-button {
    background: #ffffff;

    color: var(--ink);
}

.primary-button:hover {
    opacity: 0.82;
}

.secondary-button:hover {
    background: #f5f5f3;
}


/* =========================================================
   CONTROLS
========================================================= */

.control-bar {
    padding:
        13px 0;

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

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

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.file-status {
    color: #666666;

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

    font-size: 12px;
}

.control-right {
    display: flex;

    align-items: center;

    gap: 9px;
}

.sort-select {
    height: 36px;

    padding:
        0 10px;

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

    outline: 0;

    background: #ffffff;

    color: #222222;

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

    font-size: 12px;
}

.view-toggle {
    display: flex;

    gap: 2px;

    padding: 3px;

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

.view-button {
    width: 30px;
    height: 30px;

    border: 0;

    background: #ffffff;

    color: #777777;
}

.view-button.active {
    background: #111111;

    color: #ffffff;
}


/* =========================================================
   NOTICE
========================================================= */

.notice {
    margin-top: 14px;

    padding:
        10px 12px;

    background: #f5f5f2;

    color: #333333;

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

    font-size: 12px;

    line-height: 1.45;
}

.notice.error {
    background: #fff0f0;

    color: #8d0000;
}


/* =========================================================
   DROP ZONE
========================================================= */

.drop-zone {
    margin-top: 18px;

    min-height: 76px;

    padding:
        17px 20px;

    border:
        1px dashed #b9b9b9;

    background: #fafaf8;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 5px;

    transition:
        background 150ms ease,
        border-color 150ms ease;
}

.drop-zone strong {
    color: #333333;

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

    font-size: 12px;

    font-weight: 700;

    line-height: 1.3;
}

.drop-zone span {
    color: #777777;

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

    font-size: 11px;

    line-height: 1.4;
}

.drop-zone.dragging {
    border-color: #111111;

    background: #f0f0ed;
}


/* =========================================================
   FILE AREA
========================================================= */

.file-area {
    margin-top: 22px;

    width: 100%;
}

.file-head,
.file-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        110px
        155px
        42px;

    align-items: center;

    column-gap: 16px;
}

.file-head {
    min-height: 37px;

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

    color: #777777;

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

    font-size: 9px;

    font-weight: 700;

    line-height: 1;

    letter-spacing: 1.1px;

    text-transform: uppercase;
}

.file-head span:not(:first-child) {
    text-align: right;
}

.file-row {
    min-height: 61px;

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

    background: #ffffff;

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

    font-size: 13px;

    transition:
        background 120ms ease;
}

.file-row:hover {
    background: #fafaf8;
}

.file-name {
    min-width: 0;

    border: 0;

    padding: 0;

    background: transparent;

    color: #222222;

    display: flex;

    align-items: center;

    gap: 10px;

    text-align: left;

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

    font-size: 13px;
}

.file-name:hover
.file-label {
    text-decoration: underline;
}

.file-icon {
    flex: 0 0 auto;

    width: 25px;
    height: 25px;

    border:
        1px solid #dddddd;

    display: flex;

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

    color: #555555;

    font-size: 11px;
}

.file-label {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.file-meta {
    color: #777777;

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

    font-size: 11px;

    text-align: right;

    white-space: nowrap;
}

.row-action {
    width: 34px;
    height: 34px;

    border: 0;

    background: transparent;

    color: #555555;

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

    font-size: 17px;

    font-weight: 700;

    line-height: 1;

    display: flex;

    align-items: center;
    justify-content: center;
}

.row-action:hover {
    background: #eeeeec;
}


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

.empty-state {
    padding:
        70px 18px;

    color: #777777;

    text-align: center;

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

    font-size: 12px;

    line-height: 1.6;
}

.empty-state strong {
    display: block;

    margin-bottom: 6px;

    color: #333333;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 25px;

    font-weight: 400;

    line-height: 1.1;
}


/* =========================================================
   GRID VIEW
========================================================= */

.grid-view .file-head {
    display: none;
}

.grid-view .file-list {
    padding:
        12px;

    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(
                190px,
                1fr
            )
        );

    gap: 12px;
}

.grid-view .file-row {
    min-height: 145px;

    padding:
        16px;

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

    display: flex;

    align-items: flex-start;

    position: relative;

    background: #ffffff;
}

.grid-view .file-name {
    width: 100%;

    align-items: flex-start;
}

.grid-view .file-icon {
    width: 34px;
    height: 34px;
}

.grid-view .file-meta {
    display: none;
}

.grid-view .row-action {
    position: absolute;

    top: 8px;

    right: 5px;
}

.grid-view .file-label {
    white-space: normal;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 2;

    overflow: hidden;
}


/* =========================================================
   ACTION MENU
========================================================= */

.action-menu {
    position: fixed;

    min-width: 155px;

    padding: 5px;

    border:
        1px solid #cccccc;

    background: #ffffff;

    box-shadow:
        0 12px 30px
        rgba(
            0,
            0,
            0,
            0.15
        );

    z-index: 900;

    isolation: isolate;
}

.action-menu[hidden] {
    display: none !important;
}

.action-menu button {
    display: block;

    width: 100%;

    border: 0;

    padding:
        10px 11px;

    background: transparent;

    color: #222222;

    text-align: left;

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

    font-size: 12px;

    line-height: 1.2;
}

.action-menu button:hover {
    background: #f1f1ef;
}


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

.modal-backdrop {
    position: fixed;

    inset: 0;

    width: 100vw;
    height: 100vh;

    padding: 18px;

    background:
        rgba(
            0,
            0,
            0,
            0.38
        );

    display: grid;

    place-items: center;

    z-index: 1000;
}

.modal-backdrop[hidden] {
    display: none !important;
}

.modal {
    width: min(
        100%,
        430px
    );

    max-height:
        calc(
            100vh - 36px
        );

    padding:
        26px;

    border:
        1px solid #dddddd;

    background: #ffffff;

    box-shadow:
        14px 14px 0
        rgba(
            0,
            0,
            0,
            0.16
        );

    overflow-y: auto;
}

.modal-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.modal-top h2 {
    color: #111111;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 27px;

    font-weight: 400;

    line-height: 1;
}

.modal-close {
    width: 34px;
    height: 34px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #222222;

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

    font-size: 26px;

    line-height: 1;

    display: flex;

    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f1f1ef;
}

.modal-copy {
    margin-top: 15px;

    color: #666666;

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

    font-size: 12px;

    line-height: 1.55;
}

.modal-field,
#modalField {
    width: 100%;

    margin-top: 22px;
}

#modalField input,
#modalField select {
    display: block;

    width: 100%;
    height: 48px;

    min-height: 48px;

    padding:
        0 13px;

    border:
        1px solid #aaaaaa;

    border-radius: 0;

    outline: none;

    background: #ffffff;

    color: #111111;

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

    font-size: 14px;

    line-height: 48px;

    appearance: auto;
}

#modalField input::placeholder {
    color: #999999;
}

#modalField input:focus,
#modalField select:focus {
    border-color: #111111;

    box-shadow:
        inset 0 0 0 1px #111111;
}

.modal-helper {
    margin-top: 8px;

    color: #777777;

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

    font-size: 10px;

    line-height: 1.5;
}

.modal-actions {
    margin-top: 25px;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 8px;
}

.modal-actions
.primary-button,
.modal-actions
.secondary-button {
    min-height: 42px;

    padding:
        0 17px;
}


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

@media (max-width: 1050px) {

    .cloud-landing {
        grid-template-columns:
            minmax(
                0,
                1fr
            )
            minmax(
                300px,
                390px
            );

        gap:
            50px;
    }

    .cloud-intro h1 {
        font-size:
            clamp(
                54px,
                7.5vw,
                90px
            );
    }

    .cloud-app {
        grid-template-columns:
            210px
            minmax(
                0,
                1fr
            );
    }

    .workspace {
        padding-left: 28px;
        padding-right: 28px;
    }

}


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

@media (max-width: 760px) {

    body {
        grid-template-rows:
            76px
            minmax(0, 1fr)
            64px;
    }

    body.cloud-authenticated {
        grid-template-rows:
            76px
            minmax(
                0,
                1fr
            );
    }


    /* Header */

    .header {
        height: 76px;

        padding:
            0 22px;
    }

    body.cloud-authenticated .header {
        height: 76px;
    }

    .logo {
        font-size: 15px;

        letter-spacing: 4px;
    }

    .menu-button {
        width: 48px;
        height: 48px;
    }

    .menu-button span {
        width: 22px;
    }

    .header-cloud-label {
        display: none !important;
    }


    /* Menu */

    .site-menu {
        top: 82px;

        right: 20px;

        width:
            min(
                230px,
                calc(
                    100vw - 40px
                )
            );
    }

    body.cloud-authenticated
    .site-menu {
        top: 82px;
    }

    .site-menu a {
        padding:
            14px 15px;

        font-size: 14px;
    }


    /* Login */

    .cloud-landing {
        display: block;

        padding:
            64px 24px
            70px;
    }

    .cloud-intro {
        margin-bottom: 58px;
    }

    .eyebrow {
        margin-bottom: 19px;

        font-size: 9px;
    }

    .cloud-intro h1 {
        font-size:
            clamp(
                56px,
                15vw,
                76px
            );

        line-height: 0.94;

        letter-spacing:
            -0.055em;
    }

    .description {
        max-width: 400px;

        margin-top: 23px;

        font-size: 15px;

        line-height: 1.55;
    }

    .login-panel {
        max-width: 100%;

        padding: 26px;

        box-shadow:
            8px 8px 0
            #ededeb;
    }

    .login-header h2 {
        font-size: 20px;
    }


    /* Cloud app */

    .cloud-app {
        width: 100%;
        height: 100%;

        grid-template-columns:
            1fr;

        grid-template-rows:
            64px
            minmax(
                0,
                1fr
            );
    }


    /* Mobile sidebar */

    .sidebar {
        min-height: 64px;
        height: 64px;

        padding:
            0 20px;

        border-right: 0;

        border-bottom:
            1px solid #2b2b2b;

        flex-direction: row;

        align-items: center;

        gap: 18px;
    }

    .sidebar-brand {
        padding: 0;

        white-space: nowrap;

        font-size: 11px;
    }

    .sidebar-item,
    .sidebar-storage {
        display: none;
    }

    .sidebar-logout {
        width: auto;

        margin:
            0 0 0 auto;

        padding:
            8px 0;

        white-space: nowrap;

        font-size: 11px;
    }


    /* Workspace */

    .workspace {
        width: 100%;

        padding:
            20px 20px
            30px;

        overflow-x: hidden;
        overflow-y: auto;
    }

    .workspace-top {
        padding-bottom:
            16px;

        align-items:
            flex-start;

        flex-direction:
            column;

        gap: 14px;
    }

    .breadcrumbs {
        width: 100%;
        max-width: 100%;
    }

    .workspace-tools {
        width: 100%;
    }

    .search {
        flex: 1;

        width: auto;

        height: 40px;
    }

    .search input {
        font-size: 13px;
    }

    .icon-button,
    .account-button {
        width: 40px;
        height: 40px;
    }


    /* Heading */

    .workspace-heading {
        padding:
            27px 0
            20px;

        align-items:
            flex-start;

        flex-direction:
            column;

        gap: 18px;
    }

    .workspace-heading h2 {
        font-size: 34px;
    }

    .workspace-heading-actions {
        width: 100%;
    }

    .workspace-heading-actions
    button {
        flex: 1;

        min-height: 42px;
    }


    /* Controls */

    .control-bar {
        align-items:
            flex-start;

        flex-direction:
            column;

        gap: 11px;
    }

    .control-right {
        width: 100%;

        justify-content:
            space-between;
    }

    .sort-select {
        height: 38px;
    }


    /* Drop zone */

    .drop-zone {
        min-height: 72px;

        margin-top: 16px;

        padding:
            15px;

        justify-content:
            center;
    }

    .drop-zone strong {
        font-size: 12px;
    }

    .drop-zone span {
        font-size: 10px;
    }


    /* File table */

    .file-head {
        display: none;
    }

    .file-row {
        min-height: 64px;

        grid-template-columns:
            minmax(0, 1fr)
            40px;

        column-gap: 8px;

        padding:
            8px 10px;
    }

    .file-row
    .file-meta {
        display: none;
    }

    .file-name {
        font-size: 13px;
    }

    .file-icon {
        width: 30px;
        height: 30px;
    }

    .row-action {
        width: 36px;
        height: 36px;
    }


    /* Grid */

    .grid-view .file-list {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );

        gap: 10px;

        padding:
            10px;
    }

    .grid-view .file-row {
        min-height: 140px;

        padding: 14px;
    }

    .grid-view .file-icon {
        width: 34px;
        height: 34px;
    }


    /* Action menu */

    .action-menu {
        min-width: 160px;

        max-width:
            calc(
                100vw - 24px
            );
    }


    /* Modal */

    .modal-backdrop {
        padding:
            14px;
    }

    .modal {
        width:
            min(
                100%,
                430px
            );

        padding:
            23px 20px;

        box-shadow:
            8px 8px 0
            rgba(
                0,
                0,
                0,
                0.16
            );
    }

    .modal-top h2 {
        font-size: 25px;
    }

    #modalField input,
    #modalField select {
        height: 48px;

        min-height: 48px;

        font-size: 14px;
    }

    .modal-actions
    .primary-button,
    .modal-actions
    .secondary-button {
        min-height: 42px;
    }


    /* Footer */

    .footer {
        height: 64px;

        padding:
            0 20px;
    }

    .footer p {
        font-size: 10px;
    }

    .footer p:first-child {
        display: block;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 430px) {

    body {
        grid-template-rows:
            74px
            minmax(0, 1fr)
            62px;
    }

    body.cloud-authenticated {
        grid-template-rows:
            74px
            minmax(
                0,
                1fr
            );
    }

    .header {
        height: 74px;

        padding:
            0 20px;
    }

    .logo {
        font-size: 14px;

        letter-spacing: 3.7px;
    }

    .menu-button {
        width: 46px;
        height: 46px;
    }

    .menu-button span {
        width: 21px;
    }

    .site-menu {
        top: 80px;

        right: 18px;

        width:
            min(
                210px,
                calc(
                    100vw - 36px
                )
            );
    }

    body.cloud-authenticated
    .site-menu {
        top: 80px;
    }

    .site-menu a {
        padding:
            13px 14px;

        font-size: 13px;
    }


    /* Login */

    .cloud-landing {
        padding:
            52px 20px
            60px;
    }

    .cloud-intro {
        margin-bottom: 48px;
    }

    .cloud-intro h1 {
        font-size: 51px;

        line-height: 0.95;
    }

    .description {
        max-width: 330px;

        margin-top: 20px;

        font-size: 13px;
    }

    .login-panel {
        padding:
            22px 20px;
    }

    .login-header {
        margin-bottom: 23px;
    }

    .login-header h2 {
        font-size: 18px;
    }

    .login-panel input {
        height: 43px;

        font-size: 13px;
    }

    .continue-button {
        min-height: 43px;

        font-size: 10px;
    }


    /* App */

    .cloud-app {
        grid-template-rows:
            58px
            minmax(
                0,
                1fr
            );
    }

    .sidebar {
        height: 58px;
        min-height: 58px;

        padding:
            0 16px;
    }

    .sidebar-brand {
        font-size: 10px;
    }

    .sidebar-logout {
        font-size: 10px;
    }

    .workspace {
        padding:
            16px 14px
            24px;
    }

    .workspace-top {
        gap: 11px;
    }

    .search {
        height: 38px;
    }

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

    .workspace-heading {
        padding:
            24px 0
            17px;
    }

    .workspace-heading h2 {
        font-size: 30px;
    }

    .workspace-heading-actions {
        gap: 7px;
    }

    .workspace-heading-actions
    button {
        min-height: 40px;

        padding:
            0 11px;

        font-size: 10px;
    }

    .control-bar {
        padding:
            11px 0;
    }

    .sort-select {
        height: 36px;

        font-size: 10px;
    }

    .view-toggle {
        padding: 2px;
    }

    .view-button {
        width: 29px;
        height: 29px;
    }

    .drop-zone {
        min-height: 68px;

        padding:
            12px;
    }

    .file-area {
        margin-top: 17px;
    }

    .file-row {
        min-height: 61px;

        padding:
            8px 8px;
    }

    .file-name {
        gap: 8px;

        font-size: 12px;
    }

    .file-icon {
        width: 28px;
        height: 28px;
    }

    .row-action {
        width: 34px;
        height: 34px;
    }

    .grid-view .file-list {
        grid-template-columns: 1fr;
    }

    .modal {
        padding:
            21px 17px;
    }

    .modal-top h2 {
        font-size: 23px;
    }

    #modalField input,
    #modalField select {
        height: 46px;

        min-height: 46px;

        font-size: 13px;
    }

    .footer {
        height: 62px;

        padding:
            0 18px;
    }

    .footer p {
        font-size: 9px;
    }

}


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

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

    .menu-button span,
    .site-menu,
    .drop-zone,
    .continue-button {
        transition: none;
    }

}