body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    --content-width: 500px;
    margin: 0;
    padding: 12px;
}

.page-header {
    position: relative;
    width: 100%;
    min-height: 56px;
    margin-bottom: 20px;
    white-space: nowrap;
}

.header-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    max-width: 240px;
    width: auto;
    height: auto;
    max-height: 56px;
}

a {
    color: #023368;
    text-decoration: none;
}

p {
    margin: 10px 0;
}

h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

.page-title {
    color: #555;
    font-size: 20px;
    margin: 0;
    white-space: nowrap;
    text-align: center;
    line-height: 56px;
}

h3 {
    color: #777;
    font-size: 18px;
    margin-bottom: 10px;
}

h4 {
    color: #999;
    font-size: 16px;
    margin-bottom: 5px;
}

.pinform {
    text-align: center;
    width: min(360px, calc(100% - 24px));
    min-height: 80px;
    margin: 20px auto;
    padding: 18px 20px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.login-title {
    margin: 0 0 12px;
    font-size: 18px;
    color: #333;
}

.login-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pin-help {
    width: min(var(--content-width), calc(100% - 24px));
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
    color: #666;
}

.logout-wrap {
    width: min(var(--content-width), calc(100% - 24px));
    text-align: center;
    margin: 0 auto 20px;
}

.error-message {
    color: #c62828;
}

.folder-name {
    width: min(var(--content-width), calc(100% - 24px));
    box-sizing: border-box;
    margin: 18px auto 0;
    padding: 10px 14px;
    border: 1px solid #d6dde6;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, #f6f8fb 0%, #edf2f7 100%);
    color: #223043;
    font-weight: 600;
}

.file-list {
    list-style: none;
    padding: 0;
    width: min(var(--content-width), calc(100% - 24px));
    box-sizing: border-box;
    margin: 0 auto 20px;
    text-align: left;
    border: 1px solid #d6dde6;
    border-radius: 0 0 12px 12px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(22, 36, 56, 0.08);
    overflow: hidden;
}

.file-item {
    margin: 0;
    border-top: 1px solid #eef2f7;
}

.file-item:first-child {
    border-top: 0;
}

.file-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: #1f2f45;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.file-item a:hover {
    background: #f2f7ff;
    color: #0a58ca;
}

.file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 8px;
    background: #f3f6fa;
}

.file-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.footer {
    position: fixed;
    left: 16px;
    bottom: 12px;
    font-size: 10px;
}

input,
button {
    font-size: 16px;
}

@media (max-width: 900px) {
    body {
        font-size: 16px;
        padding: 10px;
    }

    .page-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 0;
        margin-bottom: 16px;
        white-space: normal;
        text-align: center;
    }

    .header-logo {
        position: static;
        transform: none;
        margin: 0 auto 8px;
        max-width: min(220px, 75vw);
        max-height: none;
    }

    .page-title {
        white-space: normal;
        line-height: 1.25;
        font-size: 22px;
        margin-top: 2px;
    }

    .pinform {
        width: 100%;
        max-width: 420px;
        padding: 16px;
        box-sizing: border-box;
    }

    .login-form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .login-form input,
    .login-form button,
    .logout-wrap button {
        min-height: 44px;
        width: 100%;
        box-sizing: border-box;
    }

    .footer {
        position: static;
        margin-top: 16px;
        text-align: center;
        font-size: 12px;
    }
}
