.hoso-page {
    --hoso-primary: #0b77bd;
    --hoso-primary-dark: #075f98;
    --hoso-soft: #eef8ff;
    --hoso-surface: #ffffff;
    --hoso-panel: #f7fbff;
    --hoso-border: #d6e7f3;
    --hoso-text: #15324f;
    --hoso-muted: #64748b;
    --hoso-danger: #d33b35;
    --btck-red: #d33b35;
    min-height: calc(100vh - 158px);
    background: linear-gradient(180deg, #eef8ff 0, #f9fcff 210px, #ffffff 100%);
    padding: 18px 18px 24px;
}
.btck-note {
    display: grid;
    gap: 4px;
    margin: 0 14px 12px;
    border: 1px solid #cfe7dc;
    border-radius: 8px;
    background: #f1fbf6;
    color: #d33b35;
    font-size: 0.83rem;
    line-height: 1.45;
    padding: 10px 12px;
}

    .btck-note strong {
        color: var(--btck-red);
    }
.hoso-shell {
    display: grid;
    grid-template-columns: clamp(300px, 24vw, 360px) minmax(0, 1fr);
    height: calc(100vh - 190px);
    min-height: 560px;
    max-width: 1680px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--hoso-border);
    border-radius: 8px;
    background: var(--hoso-surface);
    box-shadow: 0 18px 44px rgba(15, 57, 91, 0.12);
}

.hoso-sidebar {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    border-right: 1px solid var(--hoso-border);
    background: var(--hoso-panel);
}

.hoso-sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--hoso-border);
    background: #ffffff;
}

.hoso-sidebar-header h1 {
    margin: 0;
    color: var(--hoso-text);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
}

.hoso-sidebar-header p {
    margin: 5px 0 0;
    color: var(--hoso-muted);
    font-size: 0.9rem;
}

.hoso-search {
    position: relative;
    display: block;
    margin: 14px;
}

.hoso-search input {
    width: 100%;
    height: 42px;
    border: 1px solid #c9dfef;
    border-radius: 8px;
    background: #ffffff;
    color: var(--hoso-text);
    font: inherit;
    font-size: 0.95rem;
    outline: 0;
    padding: 0 12px 0 40px;
}

.hoso-search input:focus {
    border-color: var(--hoso-primary);
    box-shadow: 0 0 0 3px rgba(11, 119, 189, 0.13);
}

.hoso-search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 18px;
    height: 18px;
    color: #5d89a7;
    transform: translateY(-50%);
}

.hoso-search svg,
.hoso-action-button svg,
.hoso-list-toggle svg,
.hoso-empty svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.hoso-status {
    margin: 0 14px 12px;
    border: 1px solid #f0c9c6;
    border-radius: 8px;
    background: #fff5f4;
    color: #9f211c;
    font-size: 0.9rem;
    padding: 10px 12px;
}

.hoso-list {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 0;
    overflow-y: auto;
    padding: 0 12px 16px;
}

.hoso-file-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #ffffff;
    color: var(--hoso-text);
    cursor: pointer;
    padding: 10px;
    text-align: left;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.hoso-file-item:hover,
.hoso-file-item:focus-visible {
    border-color: #a9d0ea;
    box-shadow: 0 8px 20px rgba(15, 57, 91, 0.08);
    outline: 0;
    transform: translateY(-1px);
}

.hoso-file-item.is-active {
    border-color: var(--hoso-primary);
    background: #eaf6ff;
    box-shadow: inset 3px 0 0 var(--hoso-primary);
}

.hoso-pdf-icon {
    display: inline-flex;
    width: 38px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #fff0ef;
    color: var(--hoso-danger);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0;
}

.hoso-file-name {
    display: block;
    color: var(--hoso-text);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.hoso-file-meta {
    display: block;
    margin-top: 4px;
    color: var(--hoso-muted);
    font-size: 0.82rem;
}

.hoso-viewer-panel {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    background: #eef2f5;
}

.hoso-viewer-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 66px;
    border-bottom: 1px solid var(--hoso-border);
    background: #ffffff;
    padding: 10px 14px 10px 18px;
}

.hoso-current-file {
    min-width: 0;
}

.hoso-current-file span {
    display: block;
    color: var(--hoso-muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hoso-current-file strong {
    display: block;
    margin-top: 3px;
    color: var(--hoso-text);
    font-size: 1.02rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hoso-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.hoso-action-button,
.hoso-list-toggle,
.hoso-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c7ddec;
    border-radius: 8px;
    background: #ffffff;
    color: var(--hoso-primary-dark);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    min-height: 38px;
    padding: 0 11px;
    text-decoration: none;
}

.hoso-action-button span,
.hoso-list-toggle span {
    width: 17px;
    height: 17px;
    margin-right: 7px;
}

.hoso-action-button:hover,
.hoso-action-button:focus-visible,
.hoso-list-toggle:hover,
.hoso-list-toggle:focus-visible,
.hoso-icon-button:hover,
.hoso-icon-button:focus-visible {
    border-color: var(--hoso-primary);
    background: var(--hoso-soft);
    color: var(--hoso-primary-dark);
    outline: 0;
}

.hoso-action-button:disabled,
.hoso-action-button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.48;
    pointer-events: none;
}

.hoso-viewer-body {
    position: relative;
    display: flex;
    min-height: 0;
    flex: 1;
    background: #dfe7ee;
}

.hoso-pdf-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #dfe7ee;
}

.hoso-empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    width: 100%;
    color: var(--hoso-muted);
    padding: 24px;
    text-align: center;
}

.hoso-empty-icon {
    display: inline-flex;
    width: 76px;
    height: 76px;
    align-items: center;
    justify-content: center;
    border: 1px solid #c9dfef;
    border-radius: 8px;
    background: #ffffff;
    color: var(--hoso-primary);
    box-shadow: 0 12px 28px rgba(15, 57, 91, 0.09);
}

.hoso-empty h2 {
    max-width: 430px;
    margin: 0;
    color: var(--hoso-text);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
}

.hoso-list-toggle,
.hoso-mobile-close {
    display: none;
}

.hoso-viewer-panel:fullscreen {
    background: #dfe7ee;
}

.hoso-viewer-panel:fullscreen .hoso-viewer-header {
    min-height: 58px;
}

@media (max-width: 991.98px) {
    .hoso-page {
        min-height: calc(100vh - 146px);
        padding: 12px;
    }

    .hoso-shell {
        display: block;
        height: calc(100vh - 170px);
        min-height: 540px;
    }

    .hoso-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1045;
        width: min(360px, 88vw);
        border-right: 1px solid var(--hoso-border);
        box-shadow: 18px 0 38px rgba(15, 57, 91, 0.18);
        transform: translateX(-105%);
        transition: transform 0.2s ease;
    }

    .hoso-page.is-list-open .hoso-sidebar {
        transform: translateX(0);
    }

    .hoso-mobile-close,
    .hoso-list-toggle {
        display: inline-flex;
    }

    .hoso-icon-button {
        width: 36px;
        height: 36px;
        flex: 0 0 auto;
        padding: 0;
    }

    .hoso-icon-button span {
        font-size: 1.45rem;
        line-height: 1;
    }

    .hoso-viewer-panel {
        height: 100%;
    }

    .hoso-viewer-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .hoso-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .hoso-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1040;
        background: rgba(15, 37, 56, 0.38);
    }
}

@media (max-width: 575.98px) {
    .hoso-page {
        padding: 8px;
    }

    .hoso-shell {
        height: calc(100vh - 154px);
        min-height: 500px;
    }

    .hoso-viewer-header {
        gap: 10px;
        padding: 10px;
    }

    .hoso-current-file strong {
        font-size: 0.95rem;
    }

    .hoso-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .hoso-action-button {
        min-width: 0;
        padding: 0 8px;
        font-size: 0.78rem;
    }

    .hoso-action-button span {
        margin-right: 5px;
    }
}
