/* Extracted from app.css for route-specific maintainability. */
/* 기술노트 (/tech) — 본문 영역과 이어지도록 카드 테두리 최소화 */
.technote-page {
    max-width: 100%;
    margin: 0;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    border: none;
    box-sizing: border-box;
}
.technote-topbar {
    background: #1a2744;
    padding: 12px 14px 14px;
    box-sizing: border-box;
}
.technote-top-sub { font-size: 10px; color: rgba(255, 255, 255, 0.45); line-height: 1; }
.technote-top-title { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.2; margin-top: 1px; }
.technote-top-titles { min-width: 0; }
.technote-hamb-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    flex-shrink: 0;
}
.technote-back-btn { color: #fff; }
.technote-back-btn svg, .technote-hamb-btn svg { color: #fff; }
.technote-top-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.technote-top-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
a.technote-back-link {
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}
.technote-back-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.technote-top-text {
    min-width: 0;
}
.technote-home-link {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1;
}
.technote-page-name {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    line-height: 1.3;
    margin-top: 1px;
}
.technote-hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}
.technote-hamburger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: #8fa8d4;
    border-radius: 2px;
}
.technote-topbar-titles {
    margin-bottom: 8px;
}
.technote-title {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
}
.technote-meta {
    font-size: 10px;
    color: #6b85b5;
    margin-top: 1px;
}
.technote-search-wrap {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-sizing: border-box;
}
.technote-search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    height: 38px;
    border-radius: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 13px;
    padding: 0 6px 0 14px;
    outline: none;
    box-sizing: border-box;
}
.technote-search-input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}
.technote-search-btn {
    flex: 0 0 auto;
    align-self: stretch;
    width: 42px;
    min-height: 38px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.65;
    box-sizing: border-box;
}
.technote-search-btn:hover {
    opacity: 1;
}
.technote-cat-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 0.5px solid #e8eaed;
    scrollbar-width: none;
    box-sizing: border-box;
}
.technote-cat-scroll::-webkit-scrollbar {
    display: none;
}
.technote-cat-chip {
    flex-shrink: 0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    border: 0.5px solid #e5e7eb;
    color: #6b7280;
    background: #f9fafb;
    white-space: nowrap;
    font-family: inherit;
}
.technote-cat-chip--active {
    background: #1a2744;
    color: #fff;
    border-color: #1a2744;
}
.technote-cat-chip--c-server {
    background: #eff6ff;
    color: #1e40af;
    border-color: #dbeafe;
}
.technote-cat-chip--c-server.technote-cat-chip--active {
    background: #1a2744;
    color: #fff;
    border-color: #1a2744;
}
.technote-cat-chip--c-hw {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}
.technote-cat-chip--c-hw.technote-cat-chip--active {
    background: #1a2744;
    color: #fff;
    border-color: #1a2744;
}
.technote-cat-chip--c-sw {
    background: #fefce8;
    color: #854d0e;
    border-color: #fef08a;
}
.technote-cat-chip--c-sw.technote-cat-chip--active {
    background: #1a2744;
    color: #fff;
    border-color: #1a2744;
}
.technote-cat-chip--c-pay {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}
.technote-cat-chip--c-pay.technote-cat-chip--active {
    background: #1a2744;
    color: #fff;
    border-color: #1a2744;
}
.technote-cat-chip--c-ops {
    background: #fdf4ff;
    color: #7e22ce;
    border-color: #e9d5ff;
}
.technote-cat-chip--c-ops.technote-cat-chip--active {
    background: #1a2744;
    color: #fff;
    border-color: #1a2744;
}
.technote-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #fff;
    border-bottom: 0.5px solid #e8eaed;
    box-sizing: border-box;
}
.technote-note-count {
    font-size: 12px;
    color: #6b7280;
}
.technote-note-count strong {
    color: #111827;
    font-weight: 500;
}
.technote-toolbar-right {
    display: flex;
    gap: 6px;
    align-items: center;
}
.technote-tool-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 9px;
    border-radius: 7px;
    font-size: 11px;
    color: #374151;
    background: #f3f4f6;
    border: 0.5px solid #d1d5db;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}
.technote-tool-btn--primary {
    background: #1a2744;
    color: #fff;
    border-color: #1a2744;
}
.technote-note-list {
    padding: 10px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    box-sizing: border-box;
    min-height: 120px;
}
.technote-note-card {
    background: #fff;
    border-radius: 11px;
    border: 0.5px solid #e5e7eb;
    padding: 12px 13px;
    cursor: pointer;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.technote-note-card:hover {
    border-color: #9ca3af;
}
.technote-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}
.technote-card-title {
    font-size: 13px;
    font-weight: 500;
    color: #1a56db;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}
.technote-card-date {
    font-size: 10px;
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 2px;
}
.technote-card-mid {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.technote-card-bot {
    display: flex;
    align-items: center;
    gap: 6px;
}
.technote-note-tag {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 5px;
}
.technote-tag--server {
    background: #eff6ff;
    color: #1e40af;
}
.technote-tag--hw {
    background: #fff7ed;
    color: #9a3412;
}
.technote-tag--sw {
    background: #fefce8;
    color: #854d0e;
}
.technote-tag--pay {
    background: #f0fdf4;
    color: #166534;
}
.technote-tag--ops {
    background: #fdf4ff;
    color: #7e22ce;
}
.technote-tag--def {
    background: #f1f5f9;
    color: #475569;
}
.technote-note-author {
    font-size: 10px;
    color: #9ca3af;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}
.technote-author-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 500;
    color: #1a56db;
    flex-shrink: 0;
}
.technote-empty {
    padding: 40px 16px;
    text-align: center;
}
.technote-empty-title {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}
.technote-empty-sub {
    font-size: 11px;
    color: #9ca3af;
}
.technote-table-hidden {
    display: none !important;
}

@media screen and (min-width: 801px) {
    #technote-route-panel.technote-route-visible {
        overflow: hidden !important;
    }
    #technote-route-panel .technote-page {
        height: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    #technote-route-panel .technote-page {
        background: #f0f2f5;
        min-height: 0;
    }
    #technote-route-panel .technote-topbar {
        padding: 12px 20px 10px;
    }
    #technote-route-panel .technote-top-head {
        margin-bottom: 8px;
    }
    #technote-route-panel .technote-hamburger {
        display: none !important;
    }
    #technote-route-panel .technote-search-wrap {
        margin-bottom: 8px;
    }
    #technote-route-panel .technote-cat-scroll {
        background: #1a2744;
        border-bottom: none;
        padding: 0 20px 12px;
    }
    #technote-route-panel .technote-cat-chip {
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(255, 255, 255, 0.15);
        color: rgba(255, 255, 255, 0.62);
    }
    #technote-route-panel .technote-cat-chip--active {
        background: #fff;
        color: #1a2744;
        border-color: #fff;
    }
    #technote-route-panel .technote-main-panels {
        display: flex;
        gap: 0;
        flex: 1;
        min-height: 0;
        background: #f0f2f5;
        overflow: hidden;
    }
    #technote-route-panel .technote-list-panel {
        width: 360px;
        flex-shrink: 0;
        background: #fff;
        border-right: 0.5px solid #e5e7eb;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }
    #technote-route-panel .technote-toolbar {
        padding: 10px 14px 8px;
        border-bottom: 0.5px solid #f3f4f6;
    }
    #technote-route-panel .technote-note-list {
        padding: 0;
        gap: 0;
        overflow-y: auto;
        flex: 1;
        min-height: 0;
    }
    #technote-route-panel .technote-note-card {
        border: none;
        border-bottom: 0.5px solid #f3f4f6;
        border-radius: 0;
        padding: 12px 14px;
        background: #fff;
    }
    #technote-route-panel .technote-note-card:hover {
        background: #f8faff;
        border-color: transparent;
    }
    #technote-route-panel .technote-note-card.technote-note-card--active {
        background: #eff6ff;
        border-right: 2.5px solid #1a56db;
    }
    #technote-route-panel .technote-card-title {
        color: #111827;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    #technote-route-panel .technote-note-card.technote-note-card--active .technote-card-title {
        color: #1a56db;
    }
    #technote-route-panel .technote-card-mid {
        -webkit-line-clamp: 1;
        margin-bottom: 6px;
    }
    #technote-route-panel .technote-detail-panel {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        background: #fff;
        min-height: 0;
        overflow: hidden;
    }
    #technote-route-panel .technote-pc-detail-head {
        padding: 14px 20px 12px;
        border-bottom: 0.5px solid #f3f4f6;
        flex-shrink: 0;
    }
    #technote-route-panel .technote-pc-detail-body {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 18px 20px;
    }
    #technote-route-panel .technote-pc-empty {
        flex: 1;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 10px;
        color: #9ca3af;
    }
    #technote-route-panel .technote-pc-empty-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        background: #f3f4f6;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #technote-route-panel .technote-pc-empty-title {
        font-size: 13px;
        color: #475569;
        font-weight: 500;
    }
    #technote-route-panel #tech-modal.modal--technote {
        display: none !important;
    }
}

/* ── 통합 자료실 /docs (NAS) — 모바일 카드형 UI */
#dashboard-stack.content-area:has(.docslab-page) {
    padding-bottom: 12px !important;
}
body:has(#dashboard-stack .docslab-page) .app-top-header {
    display: none !important;
}
body:has(#dashboard-stack .docslab-page) .metric-header-fixed {
    display: none !important;
}
body:has(#dashboard-stack .docslab-page) #dashboard-stack.content-area {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body:has(#dashboard-stack .docslab-page) #dashboard-content {
    padding: 0 !important;
}
.docslab-page {
    max-width: 720px;
    margin: 0 auto;
    background: #f4f5f7;
    border-radius: 20px;
    overflow: hidden;
    border: 0.5px solid #d1d5db;
    box-sizing: border-box;
}
.docslab-topbar {
    background: #1a2744;
    padding: 12px 14px 14px;
}
.docslab-topbar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.docslab-topbar-title {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
}
.docslab-topbar-meta {
    font-size: 10px;
    color: #6b85b5;
    margin-top: 1px;
    word-break: break-all;
}
.docslab-hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}
.docslab-hamburger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: #8fa8d4;
    border-radius: 2px;
}
.docslab-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.docslab-search-form {
    position: relative;
    flex: 1;
    min-width: 0;
}
.docslab-search-input {
    width: 100%;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    padding: 0 38px 0 14px;
    outline: none;
    box-sizing: border-box;
}
.docslab-search-input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}
.docslab-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    pointer-events: none;
    display: flex;
    align-items: center;
}
.docslab-search-submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.85;
}
.docslab-search-submit:hover {
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
}
.docslab-search-clear {
    font-size: 11px;
    color: #8fa8d4;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}
.docslab-search-clear:hover {
    color: #fff;
}
.docslab-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 9px 14px;
    background: #fff;
    border-bottom: 0.5px solid #e8eaed;
    overflow-x: auto;
    scrollbar-width: none;
}
.docslab-breadcrumb::-webkit-scrollbar {
    display: none;
}
.docslab-bc-item {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    text-decoration: none;
}
.docslab-bc-item:hover {
    color: #1a56db;
}
.docslab-bc-item--active {
    color: #1a56db;
    font-weight: 500;
    pointer-events: none;
}
.docslab-bc-sep {
    font-size: 10px;
    color: #d1d5db;
    flex-shrink: 0;
}
.docslab-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 0.5px solid #e8eaed;
    flex-wrap: wrap;
    gap: 8px;
}
.docslab-action-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.docslab-back-btn,
.docslab-refresh-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 11px;
    color: #374151;
    background: #f3f4f6;
    border: 0.5px solid #e5e7eb;
    text-decoration: none;
    box-sizing: border-box;
}
.docslab-action-right {
    display: flex;
    gap: 6px;
}
.docslab-view-btn {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.5px solid #e5e7eb;
    background: #f3f4f6;
    color: #374151;
    cursor: default;
    box-sizing: border-box;
}
    .docslab-view-btn a {
        display: inline-flex;
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
        color: inherit;
        text-decoration: none;
    }
.docslab-view-btn--active {
    background: #1a2744;
    border-color: #1a2744;
    color: #fff;
}
.docslab-file-list {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.docslab-tree-panel {
    display: none;
}
.docslab-sec-label {
    font-size: 10px;
    font-weight: 500;
    color: #9ca3af;
    padding: 4px 2px 6px;
    letter-spacing: 0.04em;
}
.docslab-folder-card {
    background: #fff;
    border-radius: 10px;
    border: 0.5px solid #e5e7eb;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.docslab-folder-card:hover {
    border-color: #9ca3af;
}
.docslab-folder-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.docslab-fi-yellow {
    background: #fef9c3;
    color: #d97706;
}
.docslab-fi-blue {
    background: #eff6ff;
    color: #2563eb;
}
.docslab-fi-green {
    background: #f0fdf4;
    color: #059669;
}
.docslab-fi-purple {
    background: #faf5ff;
    color: #7c3aed;
}
.docslab-folder-info {
    flex: 1;
    min-width: 0;
}
.docslab-folder-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.docslab-folder-meta {
    font-size: 10px;
    color: #9ca3af;
}
.docslab-folder-arrow {
    opacity: 0.35;
    flex-shrink: 0;
}
.docslab-file-card {
    background: #fff;
    border-radius: 10px;
    border: 0.5px solid #e5e7eb;
    padding: 10px 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}
.docslab-file-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f3f4f6;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.docslab-file-info {
    flex: 1;
    min-width: 0;
}
.docslab-file-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    word-break: break-all;
    margin-bottom: 2px;
}
.docslab-file-meta {
    font-size: 10px;
    color: #9ca3af;
}
.docslab-file-dl {
    font-size: 11px;
    font-weight: 500;
    color: #1a56db;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}
.docslab-alert {
    margin: 0 12px 8px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.45;
}
.docslab-alert--muted {
    background: #f9fafb;
    color: #6b7280;
    border: 0.5px solid #e5e7eb;
}
.docslab-alert--warn {
    background: #fffbeb;
    color: #a16207;
    border: 0.5px solid #fde68a;
}
.docslab-upload-section {
    background: #fff;
    border-radius: 12px;
    border: 0.5px solid #e5e7eb;
    margin: 0 12px 10px;
    overflow: hidden;
}
.docslab-upload-head {
    padding: 11px 13px;
    border-bottom: 0.5px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.docslab-upload-title {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}
.docslab-upload-path-badge {
    font-size: 10px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 5px;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.docslab-new-folder-row {
    display: flex;
    gap: 6px;
    padding: 10px 13px;
    border-bottom: 0.5px solid #f0f0f0;
    align-items: center;
}
.docslab-new-folder-input {
    flex: 1;
    height: 34px;
    border-radius: 8px;
    border: 0.5px solid #e5e7eb;
    font-size: 12px;
    padding: 0 10px;
    outline: none;
    color: #111827;
    background: #f9fafb;
    box-sizing: border-box;
    min-width: 0;
}
.docslab-new-folder-input::placeholder {
    color: #9ca3af;
}
.docslab-folder-create-btn {
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: #1a2744;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.docslab-upload-form-block {
    padding: 10px 13px 13px;
}
.docslab-upload-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
form.docslab-upload-form {
    margin: 0;
    padding: 0;
}
form.docslab-mkdir-form {
    display: flex;
    gap: 6px;
    padding: 10px 13px;
    border-bottom: 0.5px solid #f0f0f0;
    align-items: center;
    margin: 0;
    box-sizing: border-box;
}
.docslab-file-drop-wrap {
    border: 1.5px dashed #d1d5db;
    border-radius: 10px;
    padding: 16px 14px;
    text-align: center;
    background: #fafafa;
    box-sizing: border-box;
}
.docslab-file-drop-title {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 3px;
}
.docslab-file-drop-sub {
    font-size: 10px;
    color: #9ca3af;
}
.docslab-file-drop-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: #1a56db;
}
.docslab-file-input {
    width: 100%;
    font-size: 12px;
    box-sizing: border-box;
}
.docslab-file-input::file-selector-button {
    margin-right: 8px;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
    border: 0.5px solid #e5e7eb;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
}
.docslab-upload-submit {
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #1a56db;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
}
.docslab-footnote {
    padding: 0 14px 14px;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.5;
}

@media screen and (min-width: 801px) {
    #dashboard-stack.content-area:has(.docslab-page) {
        padding: 0 !important;
    }
    .docslab-page {
        max-width: none !important;
        width: 100% !important;
        height: calc(100vh - 88px);
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        display: flex;
        flex-direction: column;
        background: #f0f2f5;
    }
    .docslab-topbar {
        padding: 12px 20px 10px;
    }
    .docslab-hamburger {
        display: none !important;
    }
    .docslab-content-shell {
        flex: 1;
        min-height: 0;
        display: flex;
        overflow: hidden;
        background: #f0f2f5;
    }
    .docslab-tree-panel {
        width: 220px;
        flex-shrink: 0;
        background: #fff;
        border-right: 0.5px solid #e5e7eb;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    .docslab-tree-head {
        padding: 12px 14px 8px;
        border-bottom: 0.5px solid #f3f4f6;
        font-size: 11px;
        font-weight: 500;
        color: #374151;
    }
    .docslab-tree-scroll {
        flex: 1;
        overflow-y: auto;
        padding: 8px;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }
    .docslab-tree-item {
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 6px 8px;
        border-radius: 7px;
        text-decoration: none;
        color: #374151;
        font-size: 12px;
    }
    .docslab-tree-item:hover {
        background: #f3f4f6;
    }
    .docslab-tree-item--active {
        background: #eff6ff;
        color: #1a56db;
        font-weight: 500;
    }
    .docslab-tree-count {
        margin-left: auto;
        font-size: 10px;
        color: #9ca3af;
    }
    .docslab-main-panel {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        min-height: 0;
        background: #f8f9fb;
    }
    .docslab-breadcrumb,
    .docslab-action-bar {
        padding-left: 16px;
        padding-right: 16px;
    }
    .docslab-file-list {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 12px 16px;
    }
    .docslab-folder-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 8px;
        margin-bottom: 6px;
    }
    .docslab-folder-grid-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
    .docslab-folder-grid-card .docslab-folder-arrow {
        display: none;
    }
    .docslab-file-table-wrap {
        background: #fff;
        border: 0.5px solid #e5e7eb;
        border-radius: 10px;
        overflow: hidden;
    }
    .docslab-file-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 12px;
    }
    .docslab-file-table th {
        padding: 8px 12px;
        text-align: left;
        color: #9ca3af;
        font-weight: 500;
        background: #f9fafb;
        border-bottom: 0.5px solid #f0f0f0;
        white-space: nowrap;
    }
    .docslab-file-table td {
        padding: 9px 12px;
        border-bottom: 0.5px solid #f8f8f8;
        color: #374151;
        vertical-align: middle;
    }
    .docslab-file-table tbody tr:hover td {
        background: #f8fbff;
    }
    .docslab-file-table tbody tr:last-child td {
        border-bottom: none;
    }
    .docslab-file-table tbody tr .docslab-table-row-actions {
        opacity: 0;
        transition: opacity 0.12s ease;
    }
    .docslab-file-table tbody tr:hover .docslab-table-row-actions {
        opacity: 1;
    }
    .docslab-table-file-cell {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .docslab-table-file-icon {
        width: 28px;
        height: 28px;
        border-radius: 7px;
        background: #f3f4f6;
        color: #64748b;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .docslab-table-file-name {
        color: #111827;
        font-weight: 500;
        word-break: break-all;
    }
    .docslab-table-size,
    .docslab-table-date {
        color: #9ca3af;
        white-space: nowrap;
    }
    .docslab-table-download {
        font-size: 11px;
        font-weight: 500;
        color: #1a56db;
        text-decoration: none;
        white-space: nowrap;
    }
    .docslab-table-row-actions,
    .docslab-file-row-actions {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    .docslab-row-btn {
        width: 26px;
        height: 26px;
        border-radius: 6px;
        background: #f3f4f6;
        border: 0.5px solid #e5e7eb;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #374151;
        text-decoration: none;
    }
    .docslab-file-card .docslab-file-row-actions {
        opacity: 0;
        transition: opacity 0.12s ease;
    }
    .docslab-file-card:hover .docslab-file-row-actions {
        opacity: 1;
    }
    .docslab-head-check label,
    .docslab-row-check label {
        margin: 0;
        padding: 0;
        font-size: 0;
    }
    .docslab-upload-panel {
        width: 260px;
        flex-shrink: 0;
        margin: 0 !important;
        border-left: 0.5px solid #e5e7eb;
        border-right: none;
        border-top: none;
        border-bottom: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    .docslab-upload-form-block {
        flex: 0 0 auto;
        min-height: 0;
        overflow: hidden;
    }
}

.docslab-error-inner {
    padding: 16px 14px 20px;
    background: #fff;
}
.docslab-error-title {
    font-size: 14px;
    font-weight: 600;
    color: #b91c1c;
    margin-bottom: 8px;
}
.docslab-error-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 8px;
}
@media screen and (max-width: 800px) {
    /* /docs: 앱 공통 상단바 숨김 — 자료실 네이비 바가 상단부터(기술노트와 동일) */
    body:has(#dashboard-stack .docslab-page) .app-top-header {
        display: none !important;
    }
    /* /guidelines: 앱 공통 상단바 숨김 — 지침관리 네이비 바를 상단부터 */
    body:has(#guidelines-route-panel[style*="display: block"]) .app-top-header {
        display: none !important;
    }
    /* /guidelines: 패널 기본 패딩 제거(상단바 풀폭) */
    body:has(#guidelines-route-panel[style*="display: block"]) #guidelines-route-panel {
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
    }
    /* /guidelines: 상단 헤더/메트릭 예약 공간 제거 → 상단바를 최상단에 붙임 */
    body:has(#guidelines-route-panel[style*="display: block"]) #dashboard-stack.content-area {
        margin-top: env(safe-area-inset-top, 0px) !important;
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    body:has(#guidelines-route-panel[style*="display: block"]) .metric-header-fixed {
        display: none !important;
    }
    .metric-header-fixed.hidden-metric ~ #dashboard-stack.content-area:has(.docslab-page) {
        margin-top: env(safe-area-inset-top, 0px) !important;
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .docslab-page {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        /* 카드 테두리 상단이 네이비 바 위로 비치며 하얀 선처럼 보이는 현상 방지 */
        border-top: none !important;
    }
}

.regstat-perf-sec-head {
    padding: 4px 2px 6px;
}
.regstat-perf-sec-title {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}
.regstat-perf-card {
    background: #ffffff;
    border-radius: 11px;
    border: 0.5px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 8px;
    box-sizing: border-box;
}
.regstat-perf-row {
    display: flex;
    align-items: center;
    padding: 10px 13px;
    border-bottom: 0.5px solid #f3f4f6;
    gap: 10px;
    box-sizing: border-box;
}
.regstat-perf-row:last-child {
    border-bottom: none;
}
.regstat-perf-row--head {
    padding: 7px 13px;
    background: #f9fafb;
}
.regstat-perf-col-reg {
    width: 80px;
    flex-shrink: 0;
}
.regstat-perf-col-rate {
    flex: 1;
    text-align: center;
    min-width: 0;
}
.regstat-perf-col-avg {
    width: 70px;
    text-align: right;
    flex-shrink: 0;
}
.regstat-head-label {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 500;
}
.regstat-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 5px;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.regstat-tag-su {
    background: #e8f0fe;
    color: #1a56db;
}
.regstat-tag-yg {
    background: #ede9fe;
    color: #5b21b6;
}
.regstat-tag-hs {
    background: #ecfdf5;
    color: #065f46;
}
.regstat-tag-pt {
    background: #fff7ed;
    color: #9a3412;
}
.regstat-tag-ss {
    background: #fdf4ff;
    color: #86198f;
}
.regstat-tag-def {
    background: #f3f4f6;
    color: #475569;
}
.regstat-rate-bar-wrap {
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 3px;
}
.regstat-rate-bar {
    height: 100%;
    border-radius: 3px;
    min-width: 0;
}
.regstat-rate-num {
    font-size: 10px;
    color: #374151;
    font-weight: 500;
}
.regstat-avg-num {
    font-size: 12px;
    font-weight: 500;
    color: #111827;
}
.regstat-avg-sub {
    font-size: 10px;
    color: #9ca3af;
}
