* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f7fb;
    color: #18202a;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.container {
    width: min(100% - 40px, 1050px);
    margin: 0 auto;
}

.nav {
    background: #fff;
    border-bottom: 1px solid #e6e9ef;
}

.nav-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 22px;
    font-weight: 800;
}

nav {
    display: flex;
    gap: 20px;
    color: #59636f;
}

nav a:hover { color: #111827; }

.hero {
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #667085;
}

h1 {
    margin: 8px 0 15px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
}

h2 { margin-top: 0; }

.lead {
    max-width: 650px;
    color: #59636f;
    font-size: 18px;
}

.avatar {
    min-width: 180px;
    height: 180px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #111827;
    color: #fff;
    font-size: 72px;
    font-weight: 800;
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-block;
    border: 0;
    border-radius: 9px;
    padding: 11px 18px;
    background: #111827;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
}

.button:hover { opacity: .9; }

.button.secondary {
    background: #e9edf3;
    color: #18202a;
}

.button.danger { background: #b42318; }

.button.small {
    padding: 7px 12px;
    font-size: 14px;
}

.card {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 14px;
    padding: 28px;
    margin: 22px 0;
    box-shadow: 0 4px 18px rgba(16, 24, 40, .04);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 18px;
    margin: 22px 0 50px;
}

.grid .card { margin: 0; }

.page-head {
    padding: 55px 0 10px;
}

.page-head h1 { font-size: 44px; }

.file-list { display: grid; gap: 10px; }

.file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f4;
}

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

.file-row .muted {
    display: block;
    font-size: 13px;
}

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

.row-actions form { margin: 0; }

.muted { color: #667085; }

.narrow {
    width: min(100%, 480px);
    margin: 70px auto;
}

label {
    display: block;
    font-weight: 650;
    margin: 15px 0 7px;
}

input[type="text"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 11px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    margin-bottom: 12px;
}

.flash {
    margin-top: 20px;
    padding: 12px 15px;
    border-radius: 8px;
    background: #eef2f6;
}

.flash.error { background: #fef3f2; color: #912018; }
.flash.success { background: #ecfdf3; color: #067647; }

.small-text { font-size: 13px; }

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
    color: #667085;
    font-size: 14px;
}

.breadcrumb a:hover { color: #111827; }

.breadcrumb .sep { color: #c4c9d1; }

.up-row { margin-bottom: 14px; }

.badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fef3f2;
    color: #912018;
    font-size: 12px;
    font-weight: 650;
    vertical-align: middle;
}

.folder-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.folder-form input[type="text"] {
    margin-bottom: 0;
    flex: 1;
}

footer {
    padding: 35px 0;
    color: #667085;
    font-size: 13px;
}

@media (max-width: 700px) {
    .container { width: min(100% - 24px, 1050px); }

    .nav-inner {
        height: auto;
        padding: 15px 0;
        align-items: flex-start;
        gap: 12px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px 12px;
        font-size: 14px;
    }

    .hero {
        min-height: 0;
        padding: 60px 0;
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .avatar {
        min-width: 110px;
        width: 110px;
        height: 110px;
        font-size: 44px;
    }

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

    .file-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
