* {
    box-sizing: border-box;
}

:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f3f73;
    background: #2f6ecf;
}

html {
    min-width: 320px;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(255,255,255,.035) 25%, transparent 25%) 0 0 / 180px 180px,
        #2f6ecf;
}

button,
input,
a {
    font: inherit;
}

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

.app-shell {
    width: min(1180px, calc(100% - 44px));
    min-height: min(790px, calc(100vh - 64px));
    margin: 32px auto;
    display: grid;
    grid-template-columns: 230px 1fr;
    overflow: hidden;
    border-radius: 38px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(7, 42, 101, .27);
}

.sidebar {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 32px 20px 24px;
    background: linear-gradient(180deg, #2d6dcc, #2a68c4);
    color: #fff;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 6px 34px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: #fff;
    color: #2e6dcc;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(5, 46, 108, .18);
}

.upload-menu-button {
    display: block;
    padding: 12px 15px;
    border-radius: 999px;
    background: #fff;
    color: #2e67ba;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(9, 48, 104, .14);
}

.side-nav {
    display: grid;
    gap: 6px;
    margin-top: 26px;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.side-nav a span {
    width: 22px;
    text-align: center;
    font-size: 17px;
}

.side-nav a:hover,
.side-nav a.active {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.sidebar-bottom {
    margin-top: auto;
    padding: 18px 8px 4px;
}

.sidebar-bottom small {
    display: block;
    color: rgba(255,255,255,.65);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sidebar-bottom strong {
    display: block;
    margin-top: 6px;
    font-size: 16px;
}

.sidebar-bottom p {
    margin: 9px 0 0;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    line-height: 1.5;
}

.storage-bar {
    height: 4px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255,255,255,.22);
}

.storage-bar span {
    display: block;
    width: 72%;
    height: 100%;
    border-radius: inherit;
    background: #fff;
}

.main-panel {
    min-width: 0;
    background: #fff;
}

.topbar {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 20px 34px;
    border-bottom: 1px solid #edf2f8;
}

.search-box {
    width: min(430px, 62%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border-radius: 999px;
    background: #f1f4fa;
    color: #9aabc2;
}

.search-box input {
    width: 100%;
    padding: 12px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #8293ad;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-icon,
.avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-weight: 800;
}

.top-icon {
    border: 1px solid #d9e1ee;
    color: #8ca0bd;
}

.avatar {
    background: #2f6dcc;
    color: #fff;
}

.content {
    padding: 34px;
}

.content-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.content-heading h1 {
    margin: 4px 0 7px;
    color: #22549d;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1;
}

.content-heading p:not(.eyebrow) {
    margin: 0;
    color: #8495ae;
    font-size: 14px;
}

.eyebrow {
    margin: 0;
    color: #9aa9bf;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.view-buttons {
    display: flex;
    gap: 8px;
}

.view-button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: #f0f4fa;
    color: #8ea0b9;
}

.view-button.active {
    background: #e5edf9;
    color: #2f6dcc;
}

.quick-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border: 2px dashed #c8d8ef;
    border-radius: 18px;
    background: #f9fbfe;
    transition: .2s ease;
}

.quick-card:hover {
    border-color: #6e9be0;
    background: #f4f8fe;
}

.quick-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.quick-card-copy {
    display: flex;
    align-items: center;
    gap: 14px;
}

.quick-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #2f6dcc;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.quick-card-copy strong,
.quick-card-copy span {
    display: block;
}

.quick-card-copy strong {
    color: #244d88;
}

.quick-card-copy span {
    margin-top: 4px;
    color: #8a9bb3;
    font-size: 13px;
}

.select-button,
.primary-button,
.outline-button,
.download-button,
.notice button {
    border: 0;
    border-radius: 11px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.select-button {
    flex: none;
    padding: 11px 17px;
    background: #2f6dcc;
    color: #fff;
    font-size: 13px;
}

.files-section {
    margin-top: 28px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 13px;
}

.section-title h2 {
    margin: 0;
    color: #294e86;
    font-size: 16px;
}

.section-title span {
    display: block;
    margin-top: 4px;
    color: #9aa9bf;
    font-size: 12px;
}

.primary-button {
    padding: 11px 17px;
    background: #2f6dcc;
    color: #fff;
    font-size: 13px;
}

.primary-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.files-table {
    overflow: hidden;
    border: 1px solid #edf1f6;
    border-radius: 16px;
    background: #fff;
}

.files-head,
.file-line {
    display: grid;
    grid-template-columns: minmax(0, 2fr) .8fr .8fr .7fr;
    align-items: center;
    gap: 16px;
    padding: 13px 16px;
}

.files-head {
    background: #f9fbfd;
    color: #a0aec0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.file-line {
    min-height: 58px;
    border-top: 1px solid #edf1f6;
    color: #3d5c86;
    font-size: 13px;
}

.file-line:hover {
    background: #f4f8fe;
}

.file-name-cell {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-name-cell strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-badge {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 8px;
    background: #eaf1fc;
    color: #2f6dcc;
    font-weight: 900;
}

.muted {
    color: #899ab1;
}

.status-ready {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e9f8ef;
    color: #2a9a59;
    font-size: 11px;
    font-weight: 800;
}

.empty-state {
    display: grid;
    place-items: center;
    padding: 46px 20px;
    text-align: center;
}

.empty-state[hidden] {
    display: none;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 11px;
    border-radius: 16px;
    background: #edf4ff;
    color: #2f6dcc;
    font-size: 23px;
}

.empty-state strong {
    color: #365d92;
}

.empty-state span {
    margin-top: 5px;
    color: #9ba9bc;
    font-size: 13px;
}

.notice {
    margin-bottom: 18px;
    padding: 15px 17px;
    border-radius: 14px;
}

.notice-error {
    border: 1px solid #f0bcbc;
    background: #fff4f4;
    color: #a94242;
}

.notice-success {
    display: grid;
    gap: 12px;
    border: 1px solid #b9e6c9;
    background: #f2fbf5;
    color: #277646;
}

.notice-success strong,
.notice-success span {
    display: block;
}

.notice-success span {
    margin-top: 3px;
    font-size: 13px;
}

.share-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.share-box input {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #cfe3d6;
    border-radius: 10px;
    background: #fff;
    color: #37624a;
}

.notice button {
    padding: 0 15px;
    background: #2f6dcc;
    color: #fff;
}

.outline-button {
    padding: 11px 15px;
    border: 1px solid #dce5f1;
    color: #3565a7;
    background: #fff;
}

.download-head,
.download-line {
    grid-template-columns: minmax(0, 2fr) .8fr .7fr auto;
}

.download-button {
    padding: 9px 13px;
    background: #2f6dcc;
    color: #fff;
    font-size: 12px;
}

.expiry-text {
    margin: 16px 2px 0;
    color: #98a7ba;
    font-size: 12px;
}

@media (max-width: 860px) {
    .app-shell {
        width: min(100% - 20px, 760px);
        grid-template-columns: 82px 1fr;
        border-radius: 26px;
    }

    .sidebar {
        padding: 24px 12px;
    }

    .logo {
        justify-content: center;
        margin-inline: 0;
    }

    .logo > span:last-child,
    .upload-menu-button,
    .side-nav a:not(.active),
    .sidebar-bottom {
        display: none;
    }

    .side-nav a.active {
        justify-content: center;
        padding: 12px;
    }

    .side-nav a.active span {
        width: auto;
    }

    .content,
    .topbar {
        padding-left: 22px;
        padding-right: 22px;
    }
}

@media (max-width: 640px) {
    body {
        background: #fff;
    }

    .app-shell {
        width: 100%;
        min-height: 100vh;
        margin: 0;
        display: block;
        border-radius: 0;
        box-shadow: none;
    }

    .sidebar {
        min-height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
    }

    .logo {
        margin: 0;
    }

    .logo > span:last-child {
        display: inline;
    }

    .upload-menu-button {
        display: inline-block;
        padding: 9px 12px;
    }

    .side-nav {
        display: none;
    }

    .topbar {
        min-height: 70px;
        padding: 12px 16px;
    }

    .search-box {
        width: calc(100% - 52px);
    }

    .top-icon {
        display: none;
    }

    .content {
        padding: 22px 16px 30px;
    }

    .content-heading {
        display: block;
    }

    .view-buttons {
        display: none;
    }

    .quick-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .select-button {
        width: 100%;
        text-align: center;
    }

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

    .primary-button {
        width: 100%;
    }

    .files-head {
        display: none;
    }

    .file-line,
    .download-line {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px;
    }

    .file-line > :nth-child(2),
    .file-line > :nth-child(3) {
        display: none;
    }

    .share-box {
        grid-template-columns: 1fr;
    }

    .notice button {
        padding: 11px 14px;
    }
}


.options-card {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid #edf1f6;
    border-radius: 16px;
    background: #fbfcfe;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

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

.field-wide {
    grid-column: 1 / -1;
}

.field > span,
.notice-success > label {
    color: #6680a4;
    font-size: 12px;
    font-weight: 800;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #dce5f0;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    color: #355a8d;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #6b9ce2;
    box-shadow: 0 0 0 3px rgba(47, 109, 204, .10);
}

.result-card {
    gap: 10px;
}

.result-card > label {
    margin-top: 3px;
}

.delete-share-box input {
    color: #9a4b4b;
}

.warning-text {
    color: #a86640;
    font-size: 11px;
}

.heading-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.message-card {
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid #dbe7f7;
    border-radius: 14px;
    background: #f7faff;
}

.message-card strong {
    color: #325e99;
    font-size: 13px;
}

.message-card p {
    margin: 7px 0 0;
    color: #647d9e;
    font-size: 13px;
    line-height: 1.6;
}

.transfer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    margin: 16px 2px 0;
    color: #98a7ba;
    font-size: 12px;
}

.security-badge {
    padding: 7px 10px;
    border-radius: 999px;
    background: #edf4ff;
    color: #3569ad;
    font-size: 11px;
    font-weight: 800;
}

.password-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.12), transparent 30%),
        #2f6ecf;
}

.password-card {
    width: min(100%, 430px);
    padding: 32px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(8, 44, 103, .28);
    text-align: center;
}

.password-logo {
    width: fit-content;
    margin: 0 auto 24px;
    color: #2f6dcc;
}

.password-card .logo-mark {
    background: #2f6dcc;
    color: #fff;
}

.lock-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: #edf4ff;
    color: #2f6dcc;
    font-size: 25px;
    font-weight: 900;
}

.danger-icon {
    background: #fff0f0;
    color: #c94c4c;
}

.password-card h1 {
    margin: 0;
    color: #295795;
    font-size: 28px;
}

.password-card > p {
    margin: 8px 0 22px;
    color: #8295ae;
    line-height: 1.6;
}

.password-card .field {
    text-align: left;
}

.password-button {
    width: 100%;
    margin-top: 14px;
}

.inline-button {
    display: block;
}

.danger-button {
    padding: 12px 18px;
    border: 0;
    border-radius: 11px;
    background: #c94c4c;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 760px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-wide {
        grid-column: auto;
    }

    .heading-actions {
        justify-content: flex-start;
        margin-top: 14px;
    }
}
