body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Expressway', sans-serif;
    font-size: 12px;
    background: linear-gradient(165deg, #b8d4e8 0%, #c5d8e6 40%, #d4dce8 100%);
    color: #FFF;
}

div, input, button, form, span, h1, h2, a {
    box-sizing: border-box;
}

#main {
    position: relative;
    width: 100%;
    height: 100%;
}

#list {
    position: fixed;
    width: calc(100% - 24px);
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    top: 12px;
    background: linear-gradient(180deg, #143a5c 0%, #0c2848 100%);
    padding: 0 0 20px;
    border-radius: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    bottom: 52px;
    height: auto;
    box-shadow: 0 8px 28px rgba(8, 24, 48, 0.45);
    border: 1px solid rgba(80, 140, 190, 0.25);
}

#page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 20px 20px 16px;
    border-radius: 10px 10px 0 0;
}

#page-header.page-header--text-only {
    display: block;
    padding: 24px 20px 12px;
}

#page-header-img {
    flex-shrink: 0;
    width: 140px;
    height: 100px;
    object-fit: contain;
    object-position: center right;
    display: block;
}

#headline {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.headline-line {
    display: block;
}

.headline-title {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
    color: #FFF;
    text-shadow: 0 1px 5px rgba(8, 28, 52, 0.65);
    letter-spacing: 0.06em;
}

.headline-sub {
    font-size: 21px;
    font-weight: normal;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(8, 28, 52, 0.58);
    letter-spacing: 0.04em;
    margin-top: 3px;
}

.section {
    margin-bottom: 8px;
}

.section-label {
    font-size: 13px;
    margin: 0 20px 10px;
    color: #d8e8f4;
    letter-spacing: 0.02em;
    font-weight: bold;
}

.section-items {
    margin-bottom: 8px;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    line-height: 1.4;
    color: #FFF;
    background-color: rgba(90, 130, 165, 0.88);
    margin: 0 20px 10px;
    padding: 10px 12px;
    border-radius: 6px;
    transition: background-color 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.list-item:hover {
    background-color: #6a96b8;
}

.item-title {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.item-actions {
    display: flex;
    flex-shrink: 0;
    gap: 6px;
}

.action-btn {
    font-family: inherit;
    font-size: 11px;
    border: none;
    border-radius: 5px;
    padding: 6px 10px;
    cursor: pointer;
    color: #FFF;
    text-decoration: none;
    background-color: #2a9d8f;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 6px rgba(12, 40, 60, 0.35);
    white-space: nowrap;
}

.action-btn:hover {
    background-color: #38b8a8;
}

.download-btn {
    background-color: rgba(70, 110, 145, 0.9);
}

.download-btn:hover {
    background-color: rgba(95, 135, 170, 0.95);
}

.error-msg {
    padding: 10px 20px;
    color: #ffdddd;
    font-size: 13px;
}

#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #143a5c 0%, #0c2848 100%);
    padding: 14px 20px;
    text-align: center;
    color: #cce0f0;
    font-size: 12px;
    box-shadow: 0 -3px 14px rgba(8, 24, 48, 0.45);
    border-top: 1px solid rgba(80, 140, 190, 0.25);
}

@media (max-width: 640px) {
    body {
        font-size: 14px;
    }

    #list {
        width: calc(100% - 16px);
        top: 8px;
        border-radius: 8px;
        bottom: 48px;
        padding-bottom: 14px;
    }

    #page-header {
        padding: 14px 14px 12px;
        border-radius: 8px 8px 0 0;
        gap: 12px;
    }

    #page-header-img {
        width: 112px;
        height: 80px;
    }

    .headline-title {
        font-size: 21px;
    }

    .headline-sub {
        font-size: 17px;
    }

    .list-item {
        margin: 0 14px 8px;
        padding: 10px;
        flex-wrap: wrap;
    }

    .item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .action-btn {
        font-size: 12px;
        padding: 8px 12px;
    }

    .section-label {
        margin: 0 14px 10px;
    }

    #footer {
        padding: 12px 16px;
        font-size: 11px;
    }
}

@media (max-width: 400px) {
    #page-header-img {
        width: 96px;
        height: 68px;
    }

    .headline-title {
        font-size: 18px;
    }

    .headline-sub {
        font-size: 16px;
    }

    .item-title {
        font-size: 13px;
    }
}

@font-face {
    font-family: Expressway;
    src: url(expressway.ttf);
}