.dir-page {
    width: 100%;
}

.dir-page .card {
    align-items: stretch;
}

.dir-page h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.75rem;
    color: var(--text-color);
}

.dir-path {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.dir-path a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.dir-path a:hover {
    text-decoration: underline;
}

.dir-status {
    margin: 0;
    color: var(--text-color);
}

.dir-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.dir-list {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.dir-list th,
.dir-list td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--card-border);
    vertical-align: middle;
    text-align: left;
}

.dir-list th {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.7;
}

.dir-list tbody tr:hover {
    background: var(--hover-color);
}

.dir-list a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.dir-list td:first-child {
    white-space: nowrap;
}

.dir-list a:hover {
    text-decoration: underline;
}

.dir-size,
.dir-date {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.dir-size {
    text-align: right;
}

.dir-list th:nth-child(2),
.dir-list td:nth-child(2) {
    text-align: right;
}

@media (max-width: 700px) {
    .dir-list,
    .dir-list tbody,
    .dir-list tr {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .dir-list thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .dir-list tr {
        padding: 10px 0;
        border-bottom: 1px solid var(--card-border);
    }

    .dir-list td {
        display: inline;
        padding: 0;
        border: none;
        white-space: normal;
    }

    .dir-list td:first-child {
        display: block;
        white-space: normal;
        overflow-wrap: anywhere;
        margin-bottom: 2px;
    }

    .dir-list td:nth-child(2) {
        text-align: left;
    }

    .dir-list td:nth-child(2)::after {
        content: " · ";
        white-space: pre;
    }
}
