:root {
    --ink: #122337;
    --ink-2: #26384b;
    --ink-3: #607083;
    --muted: #8794a3;
    --line: #e5e7e3;
    --line-strong: #d8ddd9;
    --paper: #f4f3ef;
    --surface: #ffffff;
    --surface-warm: #faf9f6;
    --navy: #102337;
    --navy-light: #19334b;
    --gold: #d7a35b;
    --gold-soft: #f3e7d3;
    --blue: #5b8def;
    --green: #4ca98a;
    --coral: #dc7470;
    --danger: #c95151;
    --shadow-sm: 0 5px 16px rgba(24, 39, 55, .05);
    --shadow-md: 0 18px 50px rgba(24, 39, 55, .1);
    --shadow-lg: 0 34px 90px rgba(13, 30, 48, .2);
    --radius: 16px;
    --sidebar: 248px;
    --topbar: 76px;
    --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Songti SC", "STSong", "Noto Serif CJK SC", "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    background: var(--paper);
}

body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-sans);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

button {
    border: 0;
    cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(91, 141, 239, .28);
    outline-offset: 2px;
}

svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

[hidden] {
    display: none !important;
}

.boot-screen {
    position: fixed;
    z-index: 999;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 24px;
    color: rgba(255, 255, 255, .72);
    background:
        radial-gradient(circle at 74% 20%, rgba(215, 163, 91, .16), transparent 30%),
        var(--navy);
    transition: opacity .45s ease, visibility .45s ease;
}

.boot-screen.is-ready {
    opacity: 0;
    visibility: hidden;
}

.boot-screen p {
    margin: 0;
    font-size: 12px;
    letter-spacing: .2em;
}

.boot-mark {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-monogram {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: #f4dfbd;
    font-family: var(--font-display);
    font-size: 19px;
    letter-spacing: -.05em;
}

.boot-line {
    width: 64px;
    height: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, .16);
}

.boot-line::after {
    display: block;
    width: 45%;
    height: 100%;
    background: var(--gold);
    content: "";
    animation: bootSlide 1.2s ease-in-out infinite alternate;
}

@keyframes bootSlide {
    from { transform: translateX(-10%); }
    to { transform: translateX(130%); }
}

.workspace {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 50;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--sidebar);
    padding: 0 16px 18px;
    flex-direction: column;
    overflow: auto;
    color: rgba(255, 255, 255, .7);
    background:
        radial-gradient(circle at 28% 8%, rgba(73, 116, 146, .3), transparent 22%),
        linear-gradient(160deg, #132d44 0%, var(--navy) 48%, #0c1d2e 100%);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .14) transparent;
}

.sidebar::after {
    position: fixed;
    z-index: -1;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    border-right: 1px solid rgba(255, 255, 255, .04);
    background-image:
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: 32px 32px;
    content: "";
    pointer-events: none;
}

.sidebar-brand {
    display: flex;
    height: 88px;
    flex: 0 0 88px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand-symbol {
    position: relative;
    width: 34px;
    height: 36px;
    flex: 0 0 auto;
}

.brand-symbol span {
    position: absolute;
    width: 22px;
    height: 26px;
    border: 1px solid rgba(243, 225, 196, .52);
    border-radius: 2px 7px 2px 2px;
    transform: rotate(-7deg);
}

.brand-symbol span:nth-child(1) {
    top: 4px;
    left: 2px;
}

.brand-symbol span:nth-child(2) {
    top: 4px;
    left: 7px;
    border-color: rgba(243, 225, 196, .72);
}

.brand-symbol span:nth-child(3) {
    top: 4px;
    left: 12px;
    border-color: var(--gold);
    background: rgba(215, 163, 91, .12);
}

.brand-company {
    overflow: hidden;
    max-width: 150px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-product {
    margin-top: 4px;
    color: rgba(255, 255, 255, .38);
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: .25em;
}

.sidebar-close {
    display: none !important;
    margin-left: auto;
    color: #fff !important;
}

.nav-upload {
    display: flex;
    height: 54px;
    margin: 21px 0 25px;
    padding: 0 13px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    color: #f9f3e9;
    background: rgba(255, 255, 255, .075);
    box-shadow: inset 0 1px rgba(255, 255, 255, .04);
    font-weight: 500;
    text-align: left;
    transition: .2s ease;
}

.nav-upload:hover {
    border-color: rgba(215, 163, 91, .42);
    background: rgba(255, 255, 255, .11);
    transform: translateY(-1px);
}

.nav-upload-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    color: #1b2d3e;
    background: #e4bd82;
}

.nav-upload-icon svg {
    width: 17px;
}

.nav-upload kbd {
    margin-left: auto;
    padding: 2px 5px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 4px;
    color: rgba(255, 255, 255, .36);
    background: rgba(0, 0, 0, .08);
    font: 10px var(--font-sans);
}

.nav-label {
    display: flex;
    margin: 0 10px 10px;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, .28);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .15em;
}

.nav-label span {
    font-size: 8px;
    letter-spacing: .1em;
}

.primary-nav,
.category-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.category-nav {
    margin-top: 22px;
}

.nav-item {
    display: flex;
    width: 100%;
    height: 43px;
    padding: 0 12px;
    align-items: center;
    gap: 12px;
    border-radius: 9px;
    color: rgba(255, 255, 255, .57);
    background: transparent;
    text-align: left;
    transition: .18s ease;
}

.nav-item svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.nav-item:hover {
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .05);
}

.nav-item.is-active {
    color: #fff;
    background: linear-gradient(90deg, rgba(215, 163, 91, .2), rgba(255, 255, 255, .055));
    box-shadow: inset 2px 0 var(--gold);
}

.nav-count {
    min-width: 22px;
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 20px;
    color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .08);
    font-size: 10px;
    text-align: center;
}

.category-nav-item {
    display: flex;
    height: 38px;
    padding: 0 12px;
    align-items: center;
    gap: 11px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .5);
    background: transparent;
    font-size: 13px;
    text-align: left;
    transition: .18s ease;
}

.category-nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, .045);
}

.category-nav-item i {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--category-color, var(--gold));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--category-color, var(--gold)) 14%, transparent);
}

.category-nav-item strong {
    margin-left: auto;
    color: rgba(255, 255, 255, .22);
    font-size: 10px;
    font-weight: 400;
}

.sidebar-spacer {
    min-height: 22px;
    flex: 1;
}

.storage-card {
    margin: 0 2px 16px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 11px;
    background: rgba(255, 255, 255, .035);
}

.storage-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, .5);
    font-size: 11px;
}

.storage-title strong {
    color: #f3ddbb;
    font-size: 12px;
    font-weight: 500;
}

.storage-track {
    height: 4px;
    margin: 11px 0 9px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
}

.storage-track span {
    display: block;
    width: 2%;
    min-width: 8px;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #bb8442, #efd09e);
    transition: width .5s ease;
}

.storage-card p {
    margin: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, .27);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user {
    display: flex;
    padding: 14px 5px 0;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.avatar,
.mobile-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: #243343;
    background: linear-gradient(135deg, #f1d8b5, #c49a60);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.user-copy strong {
    overflow: hidden;
    color: rgba(255, 255, 255, .86);
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-copy span {
    overflow: hidden;
    color: rgba(255, 255, 255, .28);
    font-size: 9px;
    letter-spacing: .06em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icon-button {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    color: var(--ink-3);
    background: transparent;
    transition: .18s ease;
}

.icon-button:hover {
    color: var(--ink);
    background: rgba(18, 35, 55, .055);
}

.icon-button svg {
    width: 18px;
    height: 18px;
}

.user-menu-trigger {
    width: 30px;
    height: 30px;
    color: rgba(255, 255, 255, .3);
}

.user-menu-trigger:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.main-shell {
    min-height: 100vh;
    margin-left: var(--sidebar);
}

.topbar {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    height: var(--topbar);
    padding: 0 32px;
    align-items: center;
    border-bottom: 1px solid rgba(20, 40, 57, .07);
    background: rgba(244, 243, 239, .86);
    backdrop-filter: blur(20px);
}

.topbar-context {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .13em;
}

.topbar-context i {
    width: 20px;
    height: 1px;
    background: var(--line-strong);
}

.topbar-context strong {
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .02em;
}

.topbar-actions {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 9px;
}

.global-search {
    display: flex;
    width: min(310px, 26vw);
    height: 40px;
    padding: 0 10px 0 13px;
    align-items: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--muted);
    background: rgba(255, 255, 255, .7);
    transition: .2s ease;
}

.global-search:focus-within {
    border-color: rgba(91, 141, 239, .25);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(91, 141, 239, .06);
}

.global-search svg {
    width: 17px;
    height: 17px;
}

.global-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-size: 12px;
}

.global-search input::placeholder {
    color: #a2abb5;
}

.global-search kbd {
    padding: 2px 5px;
    border: 1px solid #e1e4e2;
    border-radius: 4px;
    color: #9aa4ad;
    background: #fafafa;
    font: 9px var(--font-sans);
    white-space: nowrap;
}

.notice-button {
    background: rgba(255, 255, 255, .55);
}

.notice-button svg.spinning {
    animation: spin .5s ease;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.top-upload {
    display: flex;
    height: 40px;
    padding: 0 16px;
    align-items: center;
    gap: 8px;
    border-radius: 9px;
    color: #fff;
    background: var(--navy);
    box-shadow: 0 5px 14px rgba(16, 35, 55, .16);
    font-size: 12px;
    transition: .2s ease;
}

.top-upload:hover {
    background: #19364f;
    transform: translateY(-1px);
}

.top-upload svg {
    width: 16px;
    height: 16px;
}

.mobile-avatar,
.mobile-menu {
    display: none;
}

.content {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 26px 32px 42px;
}

.view-panel {
    animation: viewIn .3s ease both;
}

@keyframes viewIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.hero-card {
    position: relative;
    display: flex;
    min-height: 254px;
    overflow: hidden;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 34%, rgba(215, 163, 91, .2), transparent 21%),
        radial-gradient(circle at 54% 115%, rgba(69, 109, 135, .36), transparent 35%),
        linear-gradient(116deg, #122d44 0%, #102538 52%, #0e2032 100%);
    box-shadow: 0 18px 48px rgba(15, 35, 53, .13);
}

.hero-card::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(90deg, transparent 10%, #000 100%);
    content: "";
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: 57%;
    padding: 37px 42px 32px;
}

.eyebrow,
.section-kicker {
    color: #aa7a3d;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .2em;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(238, 204, 156, .65);
}

.eyebrow i {
    width: 17px;
    height: 1px;
    background: #d7a35b;
}

.hero-copy h1 {
    margin: 16px 0 10px;
    font-family: var(--font-display);
    font-size: clamp(26px, 2.5vw, 38px);
    font-weight: 500;
    letter-spacing: .03em;
}

.hero-copy h1 em {
    color: #f0cf9e;
    font-style: normal;
}

.hero-copy p {
    margin: 0;
    color: rgba(255, 255, 255, .53);
    font-size: 12px;
    line-height: 1.9;
}

.hero-upload {
    display: inline-flex;
    height: 42px;
    margin-top: 24px;
    padding: 0 8px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 7px;
    color: #f6e9d6;
    background: rgba(255, 255, 255, .08);
    font-size: 11px;
    transition: .2s ease;
}

.hero-upload:hover {
    border-color: rgba(240, 207, 158, .4);
    background: rgba(255, 255, 255, .12);
}

.hero-upload > span {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 5px;
    color: #18293a;
    background: #e5bd80;
}

.hero-upload svg {
    width: 15px;
    height: 15px;
}

.hero-upload .arrow {
    width: 14px;
    height: 14px;
    margin-left: 14px;
    color: rgba(255, 255, 255, .4);
}

.hero-art {
    position: absolute;
    inset: 0 0 0 auto;
    width: 45%;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
}

.orbit-one {
    top: -100px;
    right: -40px;
    width: 390px;
    height: 390px;
}

.orbit-two {
    top: 19px;
    right: 120px;
    width: 230px;
    height: 230px;
}

.hero-file {
    position: absolute;
    display: flex;
    padding: 23px;
    flex-direction: column;
    gap: 11px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 6px 18px 6px 6px;
    background: rgba(255, 255, 255, .09);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .14);
    backdrop-filter: blur(8px);
}

.hero-file-main {
    z-index: 2;
    top: 45px;
    right: 25%;
    width: 160px;
    height: 190px;
    transform: rotate(6deg);
}

.hero-file-back {
    top: 59px;
    right: 38%;
    width: 156px;
    height: 180px;
    opacity: .44;
    transform: rotate(-8deg);
}

.hero-file-mark {
    margin-bottom: auto;
    color: #e6c490;
    font-family: var(--font-display);
    font-size: 21px;
    letter-spacing: -.06em;
}

.hero-file span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .18);
}

.hero-file span.short {
    width: 62%;
}

.hero-file-seal {
    position: absolute;
    right: 17px;
    bottom: 17px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(229, 189, 128, .5);
    border-radius: 50%;
    color: #efd09e;
}

.hero-file-seal svg {
    width: 14px;
}

.hero-index {
    position: absolute;
    right: 19px;
    bottom: 18px;
    color: rgba(255, 255, 255, .2);
    font-size: 7px;
    letter-spacing: .2em;
}

.hero-dot-grid {
    position: absolute;
    right: 91px;
    bottom: 55px;
    width: 48px;
    height: 36px;
    opacity: .25;
    background-image: radial-gradient(#e2bd85 1px, transparent 1px);
    background-size: 8px 8px;
}

.metric-grid {
    display: grid;
    margin: 17px 0;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.metric-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 103px;
    padding: 20px;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    border: 1px solid rgba(20, 40, 57, .055);
    border-radius: 13px;
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-sm);
}

.metric-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
}

.metric-icon svg {
    width: 18px;
    height: 18px;
}

.metric-icon.gold {
    color: #b17c37;
    background: #f5ead9;
}

.metric-icon.blue {
    color: #4f79c9;
    background: #eaf0fb;
}

.metric-icon.green {
    color: #438d75;
    background: #e8f3ee;
}

.metric-icon.coral {
    color: #c46361;
    background: #faebea;
}

.metric-card > div:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.metric-card div > span {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
}

.metric-card div > strong {
    overflow: hidden;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metric-card div > small {
    margin-top: 3px;
    color: #a2abb4;
    font-size: 9px;
}

.metric-decoration {
    position: absolute;
    right: 8px;
    bottom: 5px;
    color: rgba(18, 35, 55, .035);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .04em;
}

.overview-columns {
    display: grid;
    margin-bottom: 17px;
    grid-template-columns: minmax(0, 1.62fr) minmax(300px, .78fr);
    gap: 17px;
}

.panel {
    border: 1px solid rgba(20, 40, 57, .055);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.categories-panel,
.activity-panel,
.recent-panel {
    padding: 22px;
}

.panel-heading {
    display: flex;
    min-height: 37px;
    margin-bottom: 18px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.panel-heading > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.section-kicker {
    display: block;
    color: #aa7a3d;
    line-height: 1;
}

.panel-heading h2,
.files-heading h1 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .04em;
}

.text-button {
    display: flex;
    padding: 5px 0;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    background: transparent;
    font-size: 10px;
    transition: .18s ease;
}

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

.text-button svg {
    width: 13px;
    height: 13px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.category-card {
    position: relative;
    display: flex;
    min-height: 102px;
    padding: 15px;
    align-items: flex-end;
    overflow: hidden;
    border: 1px solid #eef0ed;
    border-radius: 10px;
    color: var(--ink);
    background:
        linear-gradient(150deg, color-mix(in srgb, var(--category-color) 8%, #fff), #fff 70%);
    text-align: left;
    transition: .2s ease;
}

.category-card:hover {
    border-color: color-mix(in srgb, var(--category-color) 28%, #e7e9e6);
    box-shadow: 0 8px 22px rgba(20, 40, 57, .07);
    transform: translateY(-2px);
}

.category-card::before {
    position: absolute;
    top: -20px;
    right: -11px;
    width: 77px;
    height: 77px;
    border: 1px solid color-mix(in srgb, var(--category-color) 20%, transparent);
    border-radius: 50%;
    content: "";
}

.category-card::after {
    position: absolute;
    top: 17px;
    right: 17px;
    width: 23px;
    height: 27px;
    border: 1px solid color-mix(in srgb, var(--category-color) 45%, transparent);
    border-radius: 2px 7px 2px 2px;
    background: color-mix(in srgb, var(--category-color) 6%, transparent);
    content: "";
    transform: rotate(7deg);
}

.category-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.category-copy strong {
    font-size: 12px;
    font-weight: 600;
}

.category-copy span {
    overflow: hidden;
    color: #9ba4ad;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-card b {
    position: absolute;
    top: 15px;
    left: 15px;
    color: color-mix(in srgb, var(--category-color) 70%, #5c6875);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
}

.live-dot {
    display: flex;
    margin-top: 2px;
    align-items: center;
    gap: 5px;
    color: #8c979f;
    font-size: 9px;
}

.live-dot i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #55b18e;
    box-shadow: 0 0 0 4px rgba(85, 177, 142, .1);
}

.activity-list {
    display: flex;
    min-height: 203px;
    max-height: 203px;
    flex-direction: column;
    gap: 1px;
    overflow: auto;
    scrollbar-width: thin;
}

.activity-item {
    display: flex;
    padding: 10px 0;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f1f2ef;
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #68849c;
    background: #eef3f5;
}

.activity-icon.upload {
    color: #a5783d;
    background: #f8efdf;
}

.activity-icon.download {
    color: #4e8677;
    background: #e9f3ef;
}

.activity-icon.delete {
    color: #b15d5a;
    background: #f9eae9;
}

.activity-icon svg {
    width: 14px;
    height: 14px;
}

.activity-copy {
    min-width: 0;
    flex: 1;
}

.activity-copy p {
    overflow: hidden;
    margin: 0 0 4px;
    color: var(--ink-2);
    font-size: 10px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-copy p strong {
    color: var(--ink);
    font-weight: 500;
}

.activity-copy span {
    color: #a4adb5;
    font-size: 8px;
}

.compact-empty {
    display: grid;
    min-height: 180px;
    place-items: center;
    color: #a2abb4;
    font-size: 11px;
}

.recent-panel {
    margin-bottom: 10px;
}

.recent-panel .panel-heading {
    margin-bottom: 9px;
}

.file-list {
    display: flex;
    flex-direction: column;
}

.file-row {
    position: relative;
    display: grid;
    min-height: 69px;
    padding: 10px 8px;
    grid-template-columns: minmax(220px, 2.4fr) minmax(90px, .8fr) minmax(100px, .8fr) 90px 124px;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #eff1ee;
    border-radius: 8px;
    transition: background .18s ease;
}

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

.file-row:last-child {
    border-bottom: 0;
}

.file-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.file-type-icon {
    display: grid;
    width: 40px;
    height: 43px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #e7e9e6;
    border-radius: 7px 11px 7px 7px;
    color: #647587;
    background: #f8f9f7;
}

.file-type-icon svg {
    width: 20px;
    height: 20px;
}

.file-type-icon[data-kind="pdf"] {
    color: #c65b57;
    border-color: #f0dfdd;
    background: #fcf2f1;
}

.file-type-icon[data-kind="doc"],
.file-type-icon[data-kind="text"] {
    color: #537cb4;
    border-color: #e3eaf3;
    background: #f2f6fb;
}

.file-type-icon[data-kind="sheet"] {
    color: #458c70;
    border-color: #deece5;
    background: #f0f8f4;
}

.file-type-icon[data-kind="slides"] {
    color: #c2784f;
    border-color: #f2e3da;
    background: #fcf4ef;
}

.file-type-icon[data-kind="image"] {
    color: #9a6db8;
    border-color: #ece2f1;
    background: #f8f3fa;
}

.file-type-icon[data-kind="video"] {
    color: #b65f72;
    border-color: #f0dfe3;
    background: #fcf2f4;
}

.file-type-icon[data-kind="audio"] {
    color: #ae7e36;
    border-color: #eee5d7;
    background: #faf6ef;
}

.file-type-icon[data-kind="archive"] {
    color: #7b705d;
    border-color: #eae6dd;
    background: #f8f6f1;
}

.file-type-icon.small {
    width: 36px;
    height: 38px;
}

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

.file-name strong {
    display: block;
    overflow: hidden;
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-name span {
    display: block;
    overflow: hidden;
    color: #9ba5ae;
    font-size: 9px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-cell {
    display: flex;
    min-width: 0;
    align-items: center;
    color: #7b8792;
    font-size: 10px;
}

.file-cell.category-badge {
    gap: 6px;
}

.category-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--category-color, #8993a4);
}

.file-uploader {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.mini-avatar {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #586879;
    background: #eef0ed;
    font-size: 8px;
}

.file-uploader span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 2px;
    opacity: 1;
}

.file-action[data-action="share"] {
    color: #9c6e35;
    background: #faf2e6;
}

.file-action[data-action="share"]:hover {
    color: #7f5527;
    background: #f3e3cc;
}

.file-action {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 7px;
    color: #7f8b95;
    background: transparent;
    transition: .16s ease;
}

.file-action:hover {
    color: var(--ink);
    background: #eef0ed;
}

.file-action.is-favorite {
    color: #bd873e;
}

.file-action.is-favorite svg {
    fill: #e6c389;
}

.file-action.danger:hover {
    color: var(--danger);
    background: #faeceb;
}

.file-action svg {
    width: 15px;
    height: 15px;
}

.compact-list .file-row {
    grid-template-columns: minmax(210px, 2.3fr) minmax(92px, .9fr) 90px 124px;
    min-height: 61px;
}

.compact-list .file-uploader {
    display: none;
}

.file-list.is-grid {
    display: grid;
    padding: 4px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.file-list.is-grid .file-row {
    display: flex;
    min-height: 210px;
    padding: 19px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border: 1px solid #eceeeb;
    border-radius: 12px;
    background: #fff;
}

.file-list.is-grid .file-row:hover {
    border-color: #dfe3de;
    box-shadow: 0 14px 34px rgba(20, 40, 57, .08);
    transform: translateY(-2px);
}

.file-list.is-grid .file-identity {
    width: 100%;
    align-items: flex-start;
}

.file-list.is-grid .file-type-icon {
    width: 50px;
    height: 55px;
}

.file-list.is-grid .file-type-icon svg {
    width: 24px;
    height: 24px;
}

.file-list.is-grid .file-name {
    flex: 1;
    padding-top: 4px;
}

.file-list.is-grid .file-cell {
    width: 100%;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid #f0f1ef;
}

.file-list.is-grid .file-cell:nth-of-type(2) {
    display: none;
}

.file-list.is-grid .file-uploader {
    display: flex;
    margin-top: 9px;
}

.file-list.is-grid .file-row-actions {
    position: absolute;
    right: 12px;
    bottom: 10px;
}

.files-heading {
    display: flex;
    min-height: 111px;
    padding: 12px 3px 26px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.files-heading h1 {
    margin: 8px 0 7px;
    font-size: clamp(25px, 3vw, 34px);
}

.files-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

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

.segmented-control {
    display: flex;
    padding: 3px;
    border: 1px solid #e1e5e1;
    border-radius: 9px;
    background: rgba(255, 255, 255, .72);
}

.segmented-control button {
    display: grid;
    width: 34px;
    height: 31px;
    place-items: center;
    border-radius: 6px;
    color: #929ca5;
    background: transparent;
}

.segmented-control button.is-active {
    color: var(--ink);
    background: #fff;
    box-shadow: 0 2px 7px rgba(20, 40, 57, .08);
}

.segmented-control svg {
    width: 16px;
    height: 16px;
}

.filter-button {
    display: none;
}

.filter-bar {
    display: flex;
    min-height: 64px;
    padding: 10px 15px;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(20, 40, 57, .055);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.filter-search {
    display: flex;
    min-width: 220px;
    flex: 1;
    align-items: center;
    gap: 8px;
    color: #9aa4ad;
}

.filter-search svg {
    width: 17px;
    height: 17px;
}

.filter-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 11px;
}

.select-wrap {
    position: relative;
    display: flex;
    height: 35px;
    padding: 0 8px 0 12px;
    align-items: center;
    gap: 7px;
    border-left: 1px solid #eceeeb;
    color: #9ba5ae;
    font-size: 9px;
}

.select-wrap select {
    min-width: 78px;
    padding: 0 20px 0 2px;
    border: 0;
    outline: 0;
    color: var(--ink-2);
    background: transparent;
    font-size: 10px;
    cursor: pointer;
}

.filter-result {
    padding-left: 14px;
    border-left: 1px solid #eceeeb;
    color: #9aa4ad;
    font-size: 9px;
    white-space: nowrap;
}

.file-panel {
    margin-top: 13px;
    padding: 8px 14px;
    border: 1px solid rgba(20, 40, 57, .055);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.file-panel .file-row:first-child {
    border-radius: 8px 8px 0 0;
}

.empty-state {
    display: flex;
    min-height: 410px;
    padding: 50px 20px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.empty-illustration {
    position: relative;
    display: grid;
    width: 116px;
    height: 116px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 50%;
    color: #a27a48;
    background: radial-gradient(circle, #f9f1e6 0 45%, transparent 47%);
}

.empty-illustration::before {
    position: absolute;
    inset: 7px;
    border: 1px dashed #e7d8c2;
    border-radius: 50%;
    content: "";
}

.empty-illustration svg {
    width: 58px;
    height: 58px;
    stroke-width: 1.2;
}

.empty-state h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
}

.empty-state p {
    max-width: 340px;
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

.empty-state button {
    display: inline-flex;
    height: 39px;
    padding: 0 16px;
    align-items: center;
    gap: 7px;
    border-radius: 8px;
    color: #fff;
    background: var(--navy);
    font-size: 11px;
}

.empty-state button svg {
    width: 15px;
    height: 15px;
}

.skeleton-row {
    display: flex;
    height: 69px;
    padding: 10px 8px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #eff1ee;
}

.skeleton {
    border-radius: 7px;
    background: linear-gradient(90deg, #f1f2ef 25%, #f8f8f6 50%, #f1f2ef 75%);
    background-size: 200% 100%;
    animation: skeleton 1.3s infinite;
}

.skeleton.icon {
    width: 40px;
    height: 43px;
}

.skeleton.lines {
    display: flex;
    width: 40%;
    height: 30px;
    flex-direction: column;
    gap: 6px;
    background: transparent;
}

.skeleton.lines i {
    width: 80%;
    height: 8px;
    border-radius: 4px;
    background: #f1f2ef;
}

.skeleton.lines i:last-child {
    width: 48%;
    height: 6px;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.pagination {
    display: flex;
    padding: 15px 4px 7px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border-top: 1px solid #f1f2ef;
}

.pagination button {
    display: flex;
    padding: 7px 9px;
    align-items: center;
    gap: 3px;
    border-radius: 6px;
    color: #7d8993;
    background: transparent;
    font-size: 10px;
}

.pagination button:hover:not(:disabled) {
    color: var(--ink);
    background: #f4f5f2;
}

.pagination button:disabled {
    opacity: .35;
    cursor: default;
}

.pagination button svg {
    width: 13px;
    height: 13px;
}

.pagination span {
    color: #9aa4ac;
    font-size: 9px;
}

.mobile-nav {
    display: none;
}

.sidebar-scrim {
    display: none;
}

.modal-layer,
.preview-layer,
.confirm-layer {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
}

.modal-backdrop,
.preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 23, 38, .56);
    backdrop-filter: blur(6px);
    animation: fadeIn .2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 18px;
    background: #fbfbf9;
    box-shadow: var(--shadow-lg);
    animation: modalIn .26s cubic-bezier(.2, .8, .25, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to { opacity: 1; transform: none; }
}

.upload-modal {
    width: min(640px, calc(100vw - 30px));
    max-height: calc(100vh - 30px);
    overflow-y: auto;
}

.modal-header {
    display: flex;
    height: 83px;
    padding: 0 26px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e9ebe7;
    background: #fff;
}

.modal-header h2 {
    margin: 6px 0 0;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
}

.modal-close {
    border: 1px solid #e8eae7;
    background: #fafaf8;
}

.modal-body {
    padding: 24px 26px 21px;
}

.drop-zone {
    display: flex;
    min-height: 170px;
    padding: 24px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px dashed #cbd2ce;
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 50%, rgba(215, 163, 91, .05), transparent 45%),
        #fff;
    cursor: pointer;
    transition: .2s ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
    border-color: #b78a4b;
    background: #fdf9f3;
}

.drop-zone.is-dragging {
    box-shadow: inset 0 0 0 3px rgba(215, 163, 91, .08);
}

.drop-icon {
    display: grid;
    width: 49px;
    height: 49px;
    margin-bottom: 15px;
    place-items: center;
    border-radius: 50%;
    color: #a6773c;
    background: #f8eedf;
}

.drop-icon svg {
    width: 23px;
    height: 23px;
}

.drop-zone strong {
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 500;
}

.drop-zone strong span {
    color: #a77536;
    text-decoration: underline;
    text-decoration-color: #dbc09a;
    text-underline-offset: 3px;
}

.drop-zone p {
    margin: 8px 0 0;
    color: #9da6ae;
    font-size: 9px;
}

.drop-zone p b {
    color: #77838e;
    font-weight: 500;
}

.upload-queue {
    display: flex;
    max-height: 160px;
    margin-top: 12px;
    flex-direction: column;
    gap: 6px;
    overflow: auto;
}

.queue-item {
    display: flex;
    min-height: 48px;
    padding: 7px 9px;
    align-items: center;
    gap: 9px;
    border: 1px solid #eceeeb;
    border-radius: 8px;
    background: #fff;
}

.queue-item .file-type-icon {
    width: 29px;
    height: 31px;
    border-radius: 5px 8px 5px 5px;
}

.queue-item .file-type-icon svg {
    width: 15px;
    height: 15px;
}

.queue-copy {
    min-width: 0;
    flex: 1;
}

.queue-copy strong {
    display: block;
    overflow: hidden;
    color: var(--ink-2);
    font-size: 10px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.queue-copy span {
    color: #9ba5ad;
    font-size: 8px;
}

.queue-remove {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 6px;
    color: #9aa4ad;
    background: transparent;
}

.queue-remove:hover {
    color: var(--danger);
    background: #faeeee;
}

.queue-remove svg {
    width: 13px;
    height: 13px;
}

.upload-fields {
    display: grid;
    margin-top: 19px;
    grid-template-columns: .8fr 1.4fr;
    gap: 14px;
}

.field-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--ink-2);
    font-size: 10px;
    font-weight: 500;
}

.field-label small {
    color: #a5adb4;
    font-size: 8px;
    font-weight: 400;
}

.field-label select,
.field-label textarea {
    width: 100%;
    border: 1px solid #e0e4e0;
    border-radius: 8px;
    outline: 0;
    color: var(--ink-2);
    background: #fff;
    font-size: 10px;
    font-weight: 400;
    transition: .18s ease;
}

.field-label select {
    height: 43px;
    padding: 0 11px;
}

.field-label textarea {
    height: 81px;
    padding: 11px;
    resize: none;
    line-height: 1.6;
}

.field-label select:focus,
.field-label textarea:focus {
    border-color: #b7c5d1;
    box-shadow: 0 0 0 3px rgba(91, 141, 239, .06);
}

.upload-progress {
    margin-top: 17px;
    padding: 13px;
    border-radius: 8px;
    background: #f1f3f0;
}

.upload-progress > div:first-child {
    display: flex;
    margin-bottom: 9px;
    align-items: center;
    justify-content: space-between;
    color: #72808c;
    font-size: 9px;
}

.upload-progress > div:first-child strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 12px;
}

.progress-track {
    height: 4px;
    overflow: hidden;
    border-radius: 5px;
    background: #dfe4df;
}

.progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #b7823c, #dfb57b);
    transition: width .2s ease;
}

.modal-footer {
    display: flex;
    min-height: 74px;
    padding: 14px 26px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid #e9ebe7;
    background: #fff;
}

.modal-footer > span {
    color: #9ba5ad;
    font-size: 9px;
}

.modal-footer > span strong {
    color: var(--ink-2);
    font-weight: 500;
}

.modal-footer > div {
    display: flex;
    gap: 8px;
}

.button-secondary,
.button-primary,
.button-danger {
    display: inline-flex;
    height: 39px;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 8px;
    font-size: 10px;
    transition: .18s ease;
}

.button-secondary {
    border: 1px solid #dfe3df;
    color: #63717d;
    background: #fff;
}

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

.button-primary {
    color: #fff;
    background: var(--navy);
}

.button-primary:hover {
    background: #1b3a54;
}

.button-primary:disabled {
    color: #aeb6bd;
    background: #e8ebe8;
    cursor: default;
}

.button-primary svg {
    width: 14px;
    height: 14px;
}

.share-modal {
    width: min(610px, calc(100vw - 30px));
}

.share-modal-body {
    padding-top: 22px;
}

.share-file-brief {
    display: flex;
    padding: 15px;
    align-items: center;
    gap: 12px;
    border: 1px solid #e8e5df;
    border-radius: 10px;
    background: #fff;
}

.share-file-mark {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #a47539;
    background: #f7eddf;
}

.share-file-mark svg {
    width: 18px;
    height: 18px;
}

.share-file-brief > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.share-file-brief strong {
    overflow: hidden;
    color: var(--ink-2);
    font-size: 11px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-file-brief span {
    color: #929da6;
    font-size: 9px;
}

.share-expiry-field {
    display: flex;
    margin-top: 20px;
    align-items: center;
    justify-content: space-between;
    color: #5f6e7a;
    font-size: 10px;
}

.share-expiry-field select {
    width: 132px;
    height: 36px;
    padding: 0 9px;
    border: 1px solid #dfe3df;
    border-radius: 7px;
    outline: 0;
    color: var(--ink-2);
    background: #fff;
    font-size: 10px;
}

.share-link-panel {
    margin-top: 13px;
    padding: 15px;
    border: 1px solid #e5e7e2;
    border-radius: 10px;
    background: #f8f8f5;
}

.share-link-title {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #5f6e7a;
    font-size: 10px;
}

.share-link-title small {
    color: #9ba4ab;
    font-size: 8px;
    font-weight: 400;
}

.share-link-row {
    display: flex;
    gap: 7px;
}

.share-link-row input {
    min-width: 0;
    height: 39px;
    padding: 0 11px;
    flex: 1;
    border: 1px solid #dce1dc;
    border-radius: 7px;
    outline: 0;
    color: #4e5e6c;
    background: #fff;
    font: 9px "SFMono-Regular", Consolas, monospace;
}

.share-link-row input:focus {
    border-color: #b6c2ca;
}

.share-link-row button {
    display: inline-flex;
    height: 39px;
    padding: 0 12px;
    align-items: center;
    gap: 5px;
    border-radius: 7px;
    color: #fff;
    background: var(--navy);
    font-size: 9px;
}

.share-link-row button:disabled {
    color: #a4adb4;
    background: #e5e8e4;
    cursor: default;
}

.share-link-row button svg {
    width: 14px;
    height: 14px;
}

.share-note {
    display: flex;
    margin-top: 15px;
    padding: 12px 13px;
    align-items: flex-start;
    gap: 9px;
    border-radius: 8px;
    color: #72808b;
    background: #eff5f1;
}

.share-note svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    color: #56876f;
}

.share-note p {
    margin: 0;
    font-size: 9px;
    line-height: 1.7;
}

.share-modal-footer {
    align-items: center;
}

.share-revoke {
    padding: 5px 0;
    color: #a35754;
    background: transparent;
    font-size: 9px;
}

.share-revoke:disabled {
    color: #b6bdc3;
    cursor: default;
}

.preview-layer {
    z-index: 110;
}

.preview-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(1120px, calc(100vw - 34px));
    height: min(790px, calc(100vh - 34px));
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 17px;
    background: #f8f8f5;
    box-shadow: var(--shadow-lg);
    animation: modalIn .25s ease;
}

.preview-header {
    display: flex;
    min-height: 76px;
    padding: 12px 20px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #e5e7e3;
    background: #fff;
}

.preview-file-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.preview-file-title .file-type-icon {
    width: 39px;
    height: 42px;
}

.preview-file-title > div {
    min-width: 0;
}

.preview-file-title h2 {
    overflow: hidden;
    max-width: 620px;
    margin: 0 0 5px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-file-title p {
    margin: 0;
    color: #98a2aa;
    font-size: 9px;
}

.preview-actions {
    display: flex;
    gap: 4px;
}

.preview-actions .is-favorite {
    color: #b6813a;
}

.preview-actions .is-favorite svg {
    fill: #e7c38c;
}

.preview-body {
    position: relative;
    display: flex;
    min-height: 0;
    flex: 1;
    align-items: center;
    justify-content: center;
    overflow: auto;
    background:
        linear-gradient(45deg, rgba(16, 35, 55, .018) 25%, transparent 25%, transparent 75%, rgba(16, 35, 55, .018) 75%),
        linear-gradient(45deg, rgba(16, 35, 55, .018) 25%, transparent 25%, transparent 75%, rgba(16, 35, 55, .018) 75%);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

.preview-body img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.preview-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.preview-body video {
    width: min(900px, 92%);
    max-height: 100%;
    border-radius: 5px;
    background: #0b131c;
    box-shadow: 0 18px 45px rgba(15, 30, 44, .16);
}

.audio-preview {
    display: flex;
    width: min(500px, 84%);
    padding: 35px;
    align-items: center;
    flex-direction: column;
    border: 1px solid #e2e4df;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.audio-art {
    display: grid;
    width: 112px;
    height: 112px;
    margin-bottom: 23px;
    place-items: center;
    border-radius: 50%;
    color: #9d713a;
    background:
        radial-gradient(circle, #fff 0 14%, transparent 15%),
        repeating-radial-gradient(circle, #efe4d4 0 1px, #fbf7f0 2px 6px);
}

.audio-art svg {
    width: 32px;
    height: 32px;
}

.audio-preview strong {
    margin-bottom: 18px;
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 500;
}

.audio-preview audio {
    width: 100%;
}

.text-preview {
    width: min(820px, 92%);
    height: 100%;
    padding: 28px 34px;
    overflow: auto;
    color: #3d4c5b;
    background: #fff;
    font-family: "SFMono-Regular", Consolas, "Microsoft YaHei", monospace;
    font-size: 12px;
    line-height: 1.9;
    white-space: pre-wrap;
    word-break: break-word;
}

.docx-preview-host {
    align-self: stretch;
    width: 100%;
    height: 100%;
    padding: 30px;
    overflow: auto;
    background:
        linear-gradient(45deg, rgba(16, 35, 55, .018) 25%, transparent 25%, transparent 75%, rgba(16, 35, 55, .018) 75%),
        linear-gradient(45deg, rgba(16, 35, 55, .018) 25%, transparent 25%, transparent 75%, rgba(16, 35, 55, .018) 75%),
        #eef0ed;
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

.docx-preview-host .docx-wrapper {
    display: flex;
    padding: 0 !important;
    align-items: center;
    flex-direction: column;
    background: transparent !important;
}

.docx-preview-host .docx-wrapper > section.docx,
.docx-preview-host .docx-wrapper > section.docx-page {
    flex: 0 0 auto;
    margin: 0 0 24px !important;
    border: 0;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(18, 35, 55, .13), 0 1px 2px rgba(18, 35, 55, .08);
}

.docx-preview-host .docx-wrapper > section.docx:last-child,
.docx-preview-host .docx-wrapper > section.docx-page:last-child {
    margin-bottom: 0 !important;
}

.docx-preview-host .docx-page table,
.docx-preview-host .docx table {
    border-collapse: collapse;
}

.docx-render-state {
    display: flex;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #75838f;
    text-align: center;
}

.docx-render-state > svg {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
}

.docx-render-state strong {
    margin: 17px 0 7px;
    color: var(--ink-2);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
}

.docx-render-state p {
    margin: 0;
    color: #97a1aa;
    font-size: 9px;
}

.docx-render-state.is-error strong {
    margin-top: 0;
}

.docx-spinner {
    width: 34px;
    height: 34px;
    border: 2px solid #ded6c9;
    border-top-color: #b58345;
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

.unsupported-preview {
    display: flex;
    padding: 30px;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.unsupported-art {
    position: relative;
    display: grid;
    width: 108px;
    height: 126px;
    margin-bottom: 24px;
    place-items: center;
    border: 1px solid #dde1dc;
    border-radius: 5px 18px 5px 5px;
    color: #8d9aa6;
    background: #fff;
    box-shadow: 0 17px 40px rgba(20, 40, 57, .1);
}

.unsupported-art::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 29px;
    height: 29px;
    border-bottom: 1px solid #dde1dc;
    border-left: 1px solid #dde1dc;
    border-radius: 0 17px 0 4px;
    content: "";
}

.unsupported-art svg {
    width: 38px;
    height: 38px;
}

.unsupported-preview h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
}

.unsupported-preview p {
    max-width: 340px;
    margin: 0 0 20px;
    color: #8c98a3;
    font-size: 10px;
    line-height: 1.8;
}

.preview-download {
    display: inline-flex;
    height: 38px;
    padding: 0 15px;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    color: #fff;
    background: var(--navy);
    font-size: 10px;
}

.preview-download svg {
    width: 14px;
    height: 14px;
}

.preview-footer {
    display: flex;
    min-height: 63px;
    padding: 12px 20px;
    align-items: center;
    gap: 25px;
    border-top: 1px solid #e5e7e3;
    background: #fff;
}

.preview-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #98a2ab;
    font-size: 9px;
}

.preview-meta-item svg {
    width: 13px;
    height: 13px;
}

.preview-description {
    min-width: 0;
    margin-left: auto;
    overflow: hidden;
    color: #7e8a95;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.confirm-layer {
    z-index: 130;
}

.confirm-dialog {
    position: relative;
    z-index: 1;
    width: min(390px, calc(100vw - 30px));
    padding: 29px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    animation: modalIn .2s ease;
}

.confirm-icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 17px;
    place-items: center;
    border-radius: 50%;
    color: var(--danger);
    background: #faeceb;
}

.confirm-icon svg {
    width: 19px;
    height: 19px;
}

.confirm-dialog h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
}

.confirm-dialog p {
    margin: 0;
    color: #86919b;
    font-size: 10px;
    line-height: 1.75;
}

.confirm-actions {
    display: flex;
    margin-top: 24px;
    justify-content: flex-end;
    gap: 8px;
}

.button-danger {
    color: #fff;
    background: #bd4d4d;
}

.button-danger:hover {
    background: #aa3f3f;
}

.toast-stack {
    position: fixed;
    z-index: 200;
    right: 24px;
    bottom: 24px;
    display: flex;
    width: min(350px, calc(100vw - 32px));
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    display: flex;
    min-height: 50px;
    padding: 12px 14px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    color: rgba(255, 255, 255, .9);
    background: rgba(15, 33, 50, .95);
    box-shadow: 0 15px 35px rgba(10, 24, 38, .2);
    backdrop-filter: blur(12px);
    font-size: 10px;
    animation: toastIn .25s ease;
}

.toast.success .toast-icon {
    color: #79c7a9;
}

.toast.error .toast-icon {
    color: #e7837e;
}

.toast-icon {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}

.toast-icon svg {
    width: 13px;
    height: 13px;
}

.toast.is-leaving {
    opacity: 0;
    transform: translateY(5px);
    transition: .22s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.login-screen {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: grid;
    overflow: auto;
    grid-template-columns: minmax(420px, 1.08fr) minmax(420px, .92fr);
    background: #fff;
}

.login-visual {
    position: relative;
    display: flex;
    min-height: 100vh;
    padding: 40px 55px 48px;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 70% 25%, rgba(215, 163, 91, .17), transparent 27%),
        radial-gradient(circle at 10% 90%, rgba(59, 101, 128, .3), transparent 31%),
        linear-gradient(145deg, #142e46 0%, #102438 52%, #0b1c2d 100%);
}

.login-visual::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
    background-size: 50px 50px;
    content: "";
}

.login-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 13px;
}

.login-brand > span {
    color: rgba(255, 255, 255, .48);
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: .2em;
}

.login-art {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 340px;
}

.login-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
}

.login-orbit.one {
    top: 10%;
    left: 12%;
    width: 450px;
    height: 450px;
}

.login-orbit.two {
    top: 23%;
    left: 24%;
    width: 280px;
    height: 280px;
}

.login-sheet {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(250px, 33vw);
    height: min(310px, 40vw);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 7px 25px 7px 7px;
}

.sheet-one {
    opacity: .28;
    transform: translate(-65%, -57%) rotate(-12deg);
}

.sheet-two {
    opacity: .45;
    transform: translate(-56%, -52%) rotate(-4deg);
}

.sheet-three {
    display: flex;
    padding: 32px;
    flex-direction: column;
    gap: 15px;
    background: rgba(255, 255, 255, .065);
    box-shadow: 0 28px 60px rgba(0, 0, 0, .18);
    backdrop-filter: blur(6px);
    transform: translate(-48%, -47%) rotate(4deg);
}

.sheet-mark {
    margin-bottom: auto;
    color: #e4c28f;
    font-family: var(--font-display);
    font-size: 27px;
    letter-spacing: -.06em;
}

.sheet-three i {
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .13);
}

.sheet-three i:nth-of-type(2) {
    width: 75%;
}

.sheet-three i:nth-of-type(3) {
    width: 52%;
}

.sheet-seal {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border: 1px solid rgba(230, 195, 143, .55);
    border-radius: 50%;
    color: #e6c38f;
}

.sheet-seal svg {
    width: 17px;
    height: 17px;
}

.login-coordinate {
    position: absolute;
    top: 10%;
    right: 0;
    color: rgba(255, 255, 255, .14);
    font-size: 8px;
    letter-spacing: .18em;
    writing-mode: vertical-rl;
}

.login-coordinate.bottom {
    top: auto;
    right: 50px;
    bottom: 18%;
    writing-mode: horizontal-tb;
}

.login-manifesto {
    position: relative;
    z-index: 2;
}

.login-manifesto > span {
    color: rgba(231, 198, 151, .58);
    font-size: 8px;
    letter-spacing: .22em;
}

.login-manifesto h2 {
    margin: 14px 0 11px;
    font-family: var(--font-display);
    font-size: clamp(28px, 3.3vw, 44px);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: .04em;
}

.login-manifesto p {
    margin: 0;
    color: rgba(255, 255, 255, .36);
    font-size: 10px;
    letter-spacing: .09em;
}

.login-form-side {
    position: relative;
    display: flex;
    min-height: 100vh;
    padding: 42px;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 90% 10%, rgba(215, 163, 91, .07), transparent 25%),
        #fbfaf7;
}

.login-form-wrap {
    width: min(360px, 100%);
}

.login-mobile-brand {
    display: none;
}

.login-kicker {
    color: #ad7f43;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .22em;
}

.login-form-wrap h1 {
    margin: 14px 0 9px;
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 600;
    letter-spacing: .05em;
}

.login-subtitle {
    margin: 0 0 33px;
    color: #8d98a2;
    font-size: 11px;
    line-height: 1.7;
}

.login-error {
    margin-bottom: 16px;
    padding: 11px 12px;
    border: 1px solid #f1d7d5;
    border-radius: 8px;
    color: #a84c49;
    background: #fdf3f2;
    font-size: 10px;
    line-height: 1.6;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form > label {
    margin-bottom: 8px;
    color: #526170;
    font-size: 10px;
    font-weight: 500;
}

.password-field {
    display: flex;
    height: 51px;
    padding: 0 10px 0 15px;
    align-items: center;
    gap: 10px;
    border: 1px solid #dfe3df;
    border-radius: 9px;
    background: #fff;
    transition: .2s ease;
}

.password-field:focus-within {
    border-color: #aab8c3;
    box-shadow: 0 0 0 4px rgba(91, 141, 239, .055);
}

.password-field > svg {
    width: 17px;
    height: 17px;
    color: #9aa4ad;
}

.password-field input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 11px;
}

.password-field button {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 6px;
    color: #9ca6ae;
    background: transparent;
}

.password-field button:hover {
    background: #f4f5f2;
}

.password-field button svg {
    width: 17px;
    height: 17px;
}

.login-submit {
    display: flex;
    height: 50px;
    margin-top: 14px;
    padding: 0 18px;
    align-items: center;
    justify-content: space-between;
    border-radius: 9px;
    color: #fff;
    background: var(--navy);
    box-shadow: 0 12px 25px rgba(16, 35, 55, .14);
    font-size: 11px;
    transition: .2s ease;
}

.login-submit:hover {
    background: #193951;
    transform: translateY(-1px);
}

.login-submit:disabled {
    opacity: .7;
    cursor: wait;
    transform: none;
}

.login-submit svg {
    width: 16px;
    height: 16px;
}

.login-footnote {
    display: flex;
    margin-top: 32px;
    padding-top: 17px;
    align-items: center;
    gap: 7px;
    border-top: 1px solid #e8eae6;
    color: #a1aab2;
    font-size: 8px;
}

.login-footnote svg {
    width: 13px;
    height: 13px;
}

.login-copyright {
    position: absolute;
    bottom: 23px;
    margin: 0;
    color: #b0b7bd;
    font-size: 8px;
    letter-spacing: .04em;
}

.setup-notice {
    margin-top: 26px;
    padding: 22px;
    border: 1px solid #e2e7e2;
    border-radius: 10px;
    color: #73808c;
    background: #fff;
    font-size: 10px;
    line-height: 1.8;
}

@media (max-width: 1200px) {
    :root {
        --sidebar: 228px;
    }

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

    .metric-card {
        padding: 16px;
        gap: 10px;
    }

    .metric-icon {
        width: 36px;
        height: 36px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-columns {
        grid-template-columns: minmax(0, 1.45fr) minmax(280px, .85fr);
    }

    .file-list.is-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .file-row {
        grid-template-columns: minmax(210px, 2fr) 94px 100px 124px;
    }

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

@media (max-width: 980px) {
    :root {
        --sidebar: 248px;
        --topbar: 68px;
    }

    .sidebar {
        width: min(290px, 84vw);
        transform: translateX(-105%);
        transition: transform .28s ease;
        box-shadow: 30px 0 60px rgba(10, 25, 40, .18);
    }

    .sidebar.is-open {
        transform: none;
    }

    .sidebar::after {
        width: min(290px, 84vw);
    }

    .sidebar-close {
        display: inline-grid !important;
    }

    .sidebar-scrim {
        position: fixed;
        z-index: 45;
        inset: 0;
        display: block;
        background: rgba(7, 20, 33, .45);
        backdrop-filter: blur(3px);
        transition: .25s ease;
    }

    .sidebar-scrim[hidden] {
        display: none !important;
    }

    .main-shell {
        margin-left: 0;
    }

    .topbar {
        padding: 0 18px;
    }

    .mobile-menu {
        display: inline-grid;
        margin-right: 8px;
    }

    .global-search {
        width: 210px;
    }

    .global-search kbd {
        display: none;
    }

    .content {
        padding: 20px 18px 32px;
    }

    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-columns {
        grid-template-columns: 1fr;
    }

    .activity-list {
        min-height: 0;
        max-height: 240px;
    }

    .file-list.is-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .login-screen {
        grid-template-columns: minmax(340px, .9fr) minmax(390px, 1.1fr);
    }

    .login-visual {
        padding: 32px;
    }

    .login-form-side {
        padding: 30px;
    }
}

@media (max-width: 760px) {
    :root {
        --topbar: 62px;
    }

    body {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .topbar {
        padding: 0 13px;
    }

    .topbar-context > span,
    .topbar-context i,
    .global-search,
    .notice-button,
    .top-upload {
        display: none;
    }

    .topbar-context strong {
        font-size: 11px;
    }

    .mobile-avatar {
        display: grid;
        width: 33px;
        height: 33px;
    }

    .content {
        padding: 14px 12px 100px;
    }

    .hero-card {
        min-height: 274px;
        border-radius: 16px;
    }

    .hero-copy {
        width: 100%;
        padding: 29px 25px;
    }

    .hero-copy h1 {
        margin-top: 15px;
        font-size: 27px;
    }

    .hero-copy p {
        max-width: 260px;
        font-size: 11px;
    }

    .hero-art {
        right: -53px;
        width: 220px;
        opacity: .23;
    }

    .hero-file-main {
        right: 20px;
    }

    .hero-file-back,
    .hero-index,
    .hero-dot-grid {
        display: none;
    }

    .hero-upload {
        margin-top: 22px;
    }

    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .metric-card {
        min-height: 94px;
        padding: 13px;
        gap: 9px;
        border-radius: 11px;
    }

    .metric-icon {
        width: 32px;
        height: 32px;
    }

    .metric-icon svg {
        width: 15px;
        height: 15px;
    }

    .metric-card div > strong {
        font-size: 19px;
    }

    .metric-card div > small {
        display: none;
    }

    .metric-decoration {
        display: none;
    }

    .overview-columns {
        gap: 12px;
    }

    .categories-panel,
    .activity-panel,
    .recent-panel {
        padding: 17px;
    }

    .panel-heading {
        margin-bottom: 14px;
    }

    .panel-heading h2 {
        font-size: 18px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .category-card {
        min-height: 89px;
        padding: 12px;
    }

    .category-copy span {
        max-width: 110px;
    }

    .recent-panel .file-row {
        display: grid;
        min-height: 66px;
        padding: 9px 2px;
        grid-template-columns: minmax(0, 1fr) 104px;
    }

    .compact-list .file-cell {
        display: none;
    }

    .compact-list .file-row-actions {
        opacity: 1;
    }

    .files-heading {
        min-height: 88px;
        padding: 4px 4px 17px;
    }

    .files-heading h1 {
        font-size: 26px;
    }

    .files-heading p {
        display: none;
    }

    .filter-button {
        display: flex;
        height: 36px;
        padding: 0 10px;
        align-items: center;
        gap: 5px;
        border: 1px solid #dfe3df;
        border-radius: 8px;
        color: #6f7c87;
        background: #fff;
        font-size: 9px;
    }

    .filter-button svg {
        width: 13px;
        height: 13px;
    }

    .filter-bar {
        min-height: 54px;
        padding: 8px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-search {
        width: 100%;
        min-width: 100%;
        min-height: 36px;
    }

    .select-wrap {
        height: 28px;
        padding-left: 4px;
        border-left: 0;
    }

    .filter-result {
        margin-left: auto;
        border-left: 0;
    }

    .file-panel {
        padding: 5px 9px;
    }

    .file-row {
        display: grid;
        min-height: 72px;
        padding: 9px 2px;
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 8px;
    }

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

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

    .file-row-actions {
        opacity: 1;
    }

    .file-action {
        width: 26px;
    }

    .file-type-icon {
        width: 37px;
        height: 40px;
    }

    .file-name strong {
        font-size: 10px;
    }

    .file-list.is-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .file-list.is-grid .file-row {
        min-height: 168px;
        padding: 14px;
    }

    .file-list.is-grid .file-type-icon {
        width: 40px;
        height: 44px;
    }

    .file-list.is-grid .file-identity {
        gap: 8px;
    }

    .file-list.is-grid .file-cell {
        margin-top: 12px;
        padding-top: 10px;
    }

    .file-list.is-grid .file-row-actions {
        right: 8px;
        bottom: 6px;
    }

    .mobile-nav {
        position: fixed;
        z-index: 40;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        left: 12px;
        display: flex;
        height: 62px;
        padding: 0 18px;
        align-items: center;
        justify-content: space-between;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 18px;
        background: rgba(15, 34, 52, .96);
        box-shadow: 0 17px 44px rgba(9, 25, 40, .27);
        backdrop-filter: blur(18px);
    }

    .mobile-nav button {
        display: flex;
        width: 46px;
        height: 48px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 3px;
        color: rgba(255, 255, 255, .36);
        background: transparent;
        font-size: 8px;
    }

    .mobile-nav button.is-active {
        color: #f2d7ae;
    }

    .mobile-nav button svg {
        width: 18px;
        height: 18px;
    }

    .mobile-nav .mobile-upload {
        width: 50px;
        height: 50px;
        margin-top: -27px;
        border: 4px solid var(--paper);
        border-radius: 50%;
        color: #fff;
        background: #c18c48;
        box-shadow: 0 9px 22px rgba(143, 95, 36, .28);
    }

    .mobile-nav .mobile-upload svg {
        width: 21px;
        height: 21px;
    }

    .toast-stack {
        right: 12px;
        bottom: calc(84px + env(safe-area-inset-bottom));
        left: 12px;
        width: auto;
    }

    .upload-modal {
        width: 100%;
        max-height: 92vh;
        margin-top: 8vh;
        border-radius: 18px 18px 0 0;
    }

    .modal-layer {
        align-items: end;
    }

    .modal-header {
        height: 72px;
        padding: 0 18px;
    }

    .modal-body {
        padding: 18px;
    }

    .share-modal-body {
        padding: 16px 18px;
    }

    .share-link-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .share-modal-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .share-modal-footer > div {
        width: 100%;
    }

    .share-revoke {
        align-self: flex-start;
    }

    .drop-zone {
        min-height: 145px;
        padding: 18px;
        text-align: center;
    }

    .drop-zone p {
        max-width: 260px;
        line-height: 1.6;
    }

    .upload-fields {
        grid-template-columns: 1fr;
    }

    .modal-footer {
        min-height: 69px;
        padding: 12px 18px;
    }

    .modal-footer > span {
        display: none;
    }

    .modal-footer > div {
        width: 100%;
    }

    .modal-footer button {
        flex: 1;
    }

    .preview-dialog {
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 0;
    }

    .preview-header {
        min-height: 67px;
        padding: 9px 11px;
        padding-top: calc(9px + env(safe-area-inset-top));
    }

    .preview-file-title {
        gap: 8px;
    }

    .preview-file-title .file-type-icon {
        width: 33px;
        height: 36px;
    }

    .preview-file-title h2 {
        max-width: 42vw;
        font-size: 10px;
    }

    .preview-actions {
        gap: 0;
    }

    .preview-actions .icon-button {
        width: 33px;
        height: 33px;
    }

    .preview-footer {
        padding: 9px 12px;
        padding-bottom: calc(9px + env(safe-area-inset-bottom));
        gap: 12px;
        overflow: auto;
    }

    .preview-meta-item {
        white-space: nowrap;
    }

    .preview-description {
        display: none;
    }

    .text-preview {
        width: 100%;
        padding: 20px;
        font-size: 11px;
    }

    .docx-preview-host {
        padding: 16px 10px;
    }

    .docx-preview-host .docx-wrapper {
        min-width: 0;
        align-items: center;
    }

    .confirm-dialog {
        width: calc(100vw - 32px);
    }

    .login-screen {
        display: block;
        overflow-y: auto;
        background:
            radial-gradient(circle at 90% 5%, rgba(215, 163, 91, .11), transparent 23%),
            #fbfaf7;
    }

    .login-visual {
        display: none;
    }

    .login-form-side {
        min-height: 100vh;
        padding: 35px 24px 70px;
        align-items: flex-start;
    }

    .login-form-wrap {
        margin-top: max(16px, 8vh);
    }

    .login-mobile-brand {
        display: flex;
        margin-bottom: 48px;
        align-items: center;
        gap: 13px;
    }

    .login-mobile-brand .brand-monogram {
        width: 45px;
        height: 45px;
        color: #31516a;
        border-color: #cfd8d5;
        background: #fff;
    }

    .login-mobile-brand div {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .login-mobile-brand strong {
        color: var(--ink);
        font-size: 13px;
        letter-spacing: .06em;
    }

    .login-mobile-brand small {
        color: #a1a9b0;
        font-size: 9px;
        letter-spacing: .12em;
    }

    .login-form-wrap h1 {
        font-size: 31px;
    }

    .login-copyright {
        right: 24px;
        bottom: calc(18px + env(safe-area-inset-bottom));
        left: 24px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
