:root {
    --c-primary: #003299;
    --c-primary-dark: #002676;
    --c-bg: #f4f6fb;
    --c-surface: #ffffff;
    --c-text: #16202e;
    --c-text-soft: #5b6572;
    --c-text-muted: #90979f;
    --c-border: #e3e7ee;
    --c-border-soft: #eef1f6;
    --c-danger: #e5484d;
    --c-badge-primary: #1d4ed8;
    --c-badge-success: #0f6e56;
    --c-badge-folder: #f9ab00;
    --c-badge-media: #a142f4;
    --brand-grad: radial-gradient(120% 90% at 100% 0%, rgba(74, 134, 255, .38), transparent 55%), linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    --radius: 12px;
    --radius-lg: 18px;
    --radius-pill: 999px;
    --shadow: 0 6px 20px rgba(16, 32, 60, .08);
    --transition: 160ms ease;
}

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

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: .95rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

a:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: -2px;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

.hero {
    padding: 18px 0 66px;
    color: #fff;
    background: var(--brand-grad);
    border-radius: 0 0 26px 26px;
}

.hero__brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 24px;
}

.hero__brand img {
    display: block;
    width: auto;
    height: 24px;
}

.hero__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: .8rem;
    font-weight: 500;
    white-space: nowrap;
}

.chip svg {
    flex: none;
    width: 15px;
    height: 15px;
    fill: currentColor;
    opacity: .85;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb a {
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    color: rgba(255, 255, 255, .78);
    transition: background var(--transition), color var(--transition);
}

.breadcrumb a:hover {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.breadcrumb__current {
    padding: 4px 9px;
    font-weight: 600;
}

.breadcrumb__sep {
    flex: none;
    width: 15px;
    height: 15px;
    fill: rgba(255, 255, 255, .55);
}

.content {
    flex: 1 0 auto;
    padding-bottom: 48px;
}

.panel {
    position: relative;
    z-index: 2;
    margin-top: -38px;
    overflow: hidden;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    background: var(--c-surface);
    box-shadow: var(--shadow);
}

.list__head,
.list__item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 150px;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
}

.list__head {
    height: 46px;
    border-bottom: 1px solid var(--c-border);
    color: var(--c-text-muted);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.list__head span:last-child {
    text-align: right;
}

.list__item {
    min-height: 56px;
    border-bottom: 1px solid var(--c-border-soft);
    transition: background var(--transition);
}

.list__item:last-child {
    border-bottom: 0;
}

.list__item:hover {
    background: var(--c-bg);
}

.list__name {
    display: flex;
    min-width: 0;
    align-items: center;
    font-weight: 600;
}

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

.list__date {
    color: var(--c-text-soft);
    font-size: .8rem;
    text-align: right;
    white-space: nowrap;
}

.icone {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.icone svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.icone--pasta {
    color: var(--c-badge-folder);
}

.icone--pdf {
    color: var(--c-danger);
}

.icone--imagem {
    color: var(--c-badge-media);
}

.icone--planilha {
    color: var(--c-badge-success);
}

.icone--documento {
    color: var(--c-badge-primary);
}

.icone--arquivo {
    color: var(--c-text-muted);
}

.aviso {
    padding: 56px 24px;
    text-align: center;
}

.aviso svg {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    fill: #dde2ec;
}

.aviso__titulo {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
}

.aviso__texto {
    max-width: 420px;
    margin: 0 auto;
    color: var(--c-text-soft);
}

.footer {
    flex: none;
    padding: 20px 16px;
    background: var(--c-primary);
    color: rgba(255, 255, 255, .75);
    font-size: .8rem;
    text-align: center;
}

.footer a {
    color: #fff;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .hero__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .panel {
        display: grid;
        gap: 12px;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }

    .list__head {
        display: none;
    }

    .list__item {
        grid-template-columns: 42px minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 1px 14px;
        min-height: 0;
        padding: 16px;
        border: 1px solid var(--c-border);
        border-radius: var(--radius);
        background: var(--c-surface);
        transition: border-color var(--transition), box-shadow var(--transition);
    }

    .list__item:hover,
    .list__item:active {
        border-color: var(--c-primary);
        background: var(--c-surface);
        box-shadow: var(--shadow);
    }

    .icone {
        grid-row: 1 / 3;
        width: 42px;
        height: 42px;
        border-radius: var(--radius);
        background: var(--c-bg);
        background: color-mix(in srgb, currentColor 10%, transparent);
    }

    .list__name {
        grid-column: 2;
        align-self: end;
    }

    .list__date {
        grid-column: 2;
        align-self: start;
        color: var(--c-text-soft);
        font-size: .8rem;
        text-align: left;
    }

    .aviso {
        padding: 44px 20px;
        border: 1px solid var(--c-border);
        border-radius: var(--radius-lg);
        background: var(--c-surface);
        box-shadow: var(--shadow);
    }
}