.lb-browser { color: #30463f; font: 14px/1.6 system-ui, -apple-system, sans-serif; }
.lb-browser button, #library-navigation button { font: inherit; }
.lb-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 25px; margin-bottom: 28px; color: #8d9891; font-size: 12px; }
.lb-breadcrumb button { padding: 0; border: 0; background: none; color: #7a8980; }
.lb-breadcrumb button:hover { color: #30463f; }
.lb-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.lb-header h1, .lb-detail h1 { margin: 0 0 10px; color: #30463f; font: 600 clamp(26px, 3vw, 36px)/1.3 system-ui, sans-serif; letter-spacing: -.04em; }
.lb-header p, .lb-detail-heading p { margin: 0; color: #8a958d; font-size: 13px; }
.lb-toolbar { display: flex; align-items: center; gap: 12px; }
.lb-search { display: flex; align-items: center; gap: 8px; width: 230px; height: 40px; padding: 0 12px; background: #f0f1ed; border: 1px solid transparent; border-radius: 9px; color: #89978e; }
.lb-search:focus-within { border-color: #a7bbb0; background: white; }
.lb-search input { min-width: 0; width: 100%; background: transparent; border: 0; outline: none; color: #30463f; font: inherit; }
.lb-search input::placeholder { color: #9aa59e; }
.lb-search kbd { flex-shrink: 0; font: 10px system-ui; color: #98a098; }
.lb-add-menu { position: relative; flex-shrink: 0; }
.lb-add-menu > summary { padding: 9px 16px; color: #fff; background: #4e6a60; border-radius: 9px; cursor: pointer; list-style: none; font-weight: 600; }
.lb-add-menu > summary::-webkit-details-marker, .lb-menu > summary::-webkit-details-marker { display: none; }
.lb-menu { position: absolute; right: 13px; top: 12px; z-index: 2; }
.lb-menu > summary { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: #ffffffb3; color: #78877c; list-style: none; cursor: pointer; opacity: 0; font-size: 20px; line-height: 1; }
.lb-domain:hover .lb-menu > summary, .lb-source:hover .lb-menu > summary, .lb-menu:focus-within > summary, .lb-menu[open] > summary { opacity: 1; }
.lb-menu-panel { position: absolute; right: 0; top: calc(100% + 7px); min-width: 172px; padding: 6px; border: 1px solid #e4e8e0; border-radius: 10px; background: #fff; box-shadow: 0 12px 35px #30463f17; z-index: 10; }
.lb-menu-panel button, .lb-menu-panel label { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 6px; background: transparent; color: #42564b; cursor: pointer; font: inherit; text-align: left; white-space: nowrap; }
.lb-menu-panel button:hover, .lb-menu-panel label:hover { background: #f0f4ee; }
.lb-section { margin-bottom: 36px; }
.lb-section h2 { margin: 0; font: 600 15px/1.5 system-ui; color: #465d50; }
.lb-section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.lb-section-title > span { font-size: 11px; color: #96a095; }
.lb-domain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 16px; }
.lb-domain { position: relative; border: 1px solid var(--tone-border, #dce5d9); border-radius: 12px; background: var(--tone-bg, #edf3eb); transition: transform .16s, box-shadow .16s; }
.lb-domain[data-tone="0"] { --tone-bg: #edf3eb; --tone-border: #d7e3d4; --tone-text: #49634f; --tone-muted: #778f7c; }
.lb-domain[data-tone="1"] { --tone-bg: #f5ece6; --tone-border: #ead9cf; --tone-text: #76584b; --tone-muted: #9b7a6b; }
.lb-domain[data-tone="2"] { --tone-bg: #ebf1f5; --tone-border: #d6e1e9; --tone-text: #4f6675; --tone-muted: #78909f; }
.lb-domain[data-tone="3"] { --tone-bg: #f1edf4; --tone-border: #e1d8e8; --tone-text: #665873; --tone-muted: #8d7d99; }
.lb-domain:hover { transform: translateY(-3px); box-shadow: 0 8px 20px #30463f09; }
.lb-domain-main { display: flex; flex-direction: column; align-items: start; gap: 13px; width: 100%; min-height: 155px; padding: 22px; border: 0; border-radius: inherit; background: transparent; color: var(--tone-text, #465c4d); text-align: left; }
.lb-domain-symbol { display: grid; place-items: center; width: 34px; height: 34px; background: #ffffffb0; border: 1px solid #ffffff; border-radius: 9px; font: 600 16px Georgia, serif; }
.lb-domain-main strong { font-size: 16px; font-weight: 600; }
.lb-domain-main small { display: flex; justify-content: space-between; width: 100%; color: var(--tone-muted, #92a08f); font-size: 11px; }
.lb-domain-add { display: flex; flex-direction: column; gap: 11px; align-items: center; justify-content: center; min-height: 155px; border: 1px dashed #e2c8b6; border-radius: 12px; background: #fcf5ef; color: #9a725d; }
.lb-domain-add span { font-size: 24px; font-weight: 300; }
.lb-domain-add strong { font-size: 12px; font-weight: 400; }
.lb-domain-add:hover { background: #f8e9dd; border-color: #c99679; color: #805744; }
.lb-source-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 18px; }
.lb-source { position: relative; min-width: 0; background: var(--source-bg, #fffefb); border: 1px solid var(--source-border, #e5e8e0); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.lb-source[data-tone="0"] { --source-bg: #fbfdf9; --source-border: #dce8d9; }
.lb-source[data-tone="1"] { --source-bg: #fffaf7; --source-border: #edddd4; }
.lb-source[data-tone="2"] { --source-bg: #f9fcfe; --source-border: #dce7ee; }
.lb-source[data-tone="3"] { --source-bg: #fcf9fd; --source-border: #e6ddeb; }
.lb-source:hover { border-color: #b9c6b8; box-shadow: 0 5px 20px #30463f08; }
.lb-source-main { display: flex; align-items: stretch; gap: 18px; width: 100%; min-height: 166px; padding: 22px; border: 0; border-radius: inherit; background: transparent; color: inherit; text-align: left; }
.lb-cover { position: relative; display: grid; place-items: center; flex: 0 0 74px; height: 106px; border-radius: 5px 9px 9px 5px; overflow: hidden; background: #f3e8d6; color: #987958; box-shadow: inset 5px 0 #00000005; }
.lb-cover.is-video { background: #e3edf3; color: #688397; }
.lb-cover > span { z-index: 1; font-size: 23px; }
.lb-cover i { position: absolute; width: 110px; height: 110px; border: 1px solid #ffffffa6; border-radius: 50%; left: 24px; top: 44px; }
.lb-cover::after { content: ''; position: absolute; width: 70px; height: 70px; border: 1px solid #ffffffa6; border-radius: 50%; left: 44px; top: 64px; }
.lb-source-info { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding-right: 8px; }
.lb-source-info > strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 15px; line-height: 1.6; font-weight: 600; }
.lb-source-info > small { color: #718077; font-size: 11px; }
.lb-source-info .lb-kind, .lb-kind { font-size: 10px; color: #6f8377; letter-spacing: .04em; }
.lb-source-info .lb-location { margin-top: auto; font-size: 10px; color: #87968e; }
.lb-progress { height: 3px; border-radius: 3px; background: #edf1e9; overflow: hidden; }
.lb-progress i { display: block; height: 100%; background: #82ad8c; border-radius: inherit; }
.lb-resume-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.lb-resume { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: #f7eadc; border: 1px solid #ecd9c6; border-radius: 12px; color: #765847; text-align: left; }
.lb-resume > span:nth-child(2) { display: grid; gap: 5px; min-width: 0; }
.lb-resume small { color: #987968; font-size: 11px; }
.lb-resume strong { font-size: 14px; font-weight: 600; }
.lb-resume-play { display: grid; flex-shrink: 0; place-items: center; width: 38px; height: 38px; background: #fff8ef; border: 1px solid #ead6c0; border-radius: 50%; font-size: 12px; }
.lb-resume-arrow { margin-left: auto; color: #a67d64; }
.lb-empty { padding: 40px 20px; text-align: center; color: #9aa69b; }
.lb-empty > span { font-size: 30px; }
.lb-empty p { margin: 12px 0; font-size: 13px; }
.lb-empty button { border: 0; border-radius: 7px; padding: 9px 16px; background: #eaf0e5; color: #536d55; }
.lb-upload-status { display:flex; align-items:center; gap:14px; margin:0 0 24px; padding:12px 14px; border:1px solid #dce5d8; border-radius:10px; background:#f7faf5; color:#52685a; }
.lb-upload-status > div { display:grid; gap:2px; min-width:0; }
.lb-upload-status strong { font-size:13px; font-weight:600; }
.lb-upload-status small { overflow:hidden; color:#7c8b80; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.lb-upload-status progress { flex:1; min-width:120px; height:6px; accent-color:#4e6a60; }
.lb-upload-status button { margin-left:auto; padding:7px 12px; border:0; border-radius:7px; background:#e7eee3; color:#4e6755; cursor:pointer; white-space:nowrap; }
.lb-upload-status.is-success { border-color:#cfe2d1; background:#f2f8f1; }
.lb-upload-status.is-failed { border-color:#ead2c8; background:#fff8f5; color:#875d50; }
.lb-upload-status.is-failed button { background:#f1dfd6; color:#82574a; }
.lb-detail-tools { display:flex; align-items:center; gap:12px; margin:0 0 22px; padding:12px 14px; border:1px solid #dce5d8; border-radius:10px; background:#f7faf5; color:#7b8b80; font-size:12px; }
.lb-detail-tools button { padding:8px 14px; border:0; border-radius:7px; background:#4e6a60; color:#fff; cursor:pointer; }
.lb-processing-confirm,.lb-processing-dialog { width:min(520px,calc(100% - 32px)); padding:0; border:1px solid #dce5d8; border-radius:16px; color:#425849; background:#fffefb; box-shadow:0 24px 70px #23322222; }
.lb-processing-confirm::backdrop,.lb-processing-dialog::backdrop { background:#25332a55; }
.lb-processing-confirm form,.lb-processing-dialog form { display:grid; gap:18px; padding:28px; }
.lb-processing-confirm small,.lb-processing-dialog small { color:#8b998b; font-size:11px; letter-spacing:.08em; }
.lb-processing-confirm h2,.lb-processing-dialog h2 { margin:0; font-size:22px; }
.lb-processing-confirm p { margin:0; color:#718077; line-height:1.8; }
.lb-processing-dialog label { display:grid; gap:8px; color:#64766a; font-size:12px; }
.lb-processing-dialog input { width:100%; box-sizing:border-box; padding:10px 12px; border:1px solid #dce5d6; border-radius:7px; color:#30463f; background:#f7faf5; font:inherit; }
.lb-processing-status { display:grid; gap:7px; padding:14px; border-radius:9px; background:#f3f6ef; color:#65766a; font-size:12px; }
.lb-processing-status p { margin:0; }
.lb-processing-confirm footer,.lb-processing-dialog footer { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:9px; }
.lb-processing-confirm footer button,.lb-processing-dialog footer button { padding:9px 14px; border:0; border-radius:7px; background:#edf2e8; color:#526c52; cursor:pointer; }
.lb-processing-confirm footer .is-primary,.lb-processing-dialog footer [data-processing-structure] { background:#4e6a60; color:#fff; }
#library-navigation { font: 13px/1.5 system-ui; color: #66796b; }
.lb-nav-main { display: grid; gap: 6px; margin-bottom: 34px; }
.lb-nav-main button, .lb-nav-folder { display: flex; align-items: center; gap: 11px; width: 100%; min-width: 0; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: #738476; text-align: left; }
.lb-nav-main button small, .lb-nav-folder small { margin-left: auto; color: #9ba69a; font-size: 10px; }
.lb-nav-main button.is-active, .lb-nav-folder.is-active { background: #e2e9de; color: #46604b; font-weight: 600; }
.lb-nav-folder[data-tone="0"] { color: #66806c; }
.lb-nav-folder[data-tone="1"] { color: #916d5c; }
.lb-nav-folder[data-tone="2"] { color: #668195; }
.lb-nav-folder[data-tone="3"] { color: #807091; }
.lb-nav-main button:hover, .lb-nav-folder:hover { background: #e8ede4; }
.lb-nav-folder[data-tone="1"]:is(:hover, .is-active) { background: #f5ece6; color: #76584b; }
.lb-nav-folder[data-tone="2"]:is(:hover, .is-active) { background: #ebf1f5; color: #4f6675; }
.lb-nav-folder[data-tone="3"]:is(:hover, .is-active) { background: #f1edf4; color: #665873; }
.lb-nav-label { display: flex; align-items: center; justify-content: space-between; margin: 0 12px 12px; color: #99a597; font-size: 10px; letter-spacing: .06em; }
.lb-nav-label button { padding: 0 3px; border: 0; background: transparent; color: #7f937c; font-size: 18px !important; }
.lb-nav-folder > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-tree > summary { display: flex; align-items: center; list-style: none; }
.lb-tree > summary::-webkit-details-marker { display: none; }
.lb-tree > summary > span { width: 12px; flex-shrink: 0; cursor: pointer; color: #9cac98; }
.lb-tree[open] > summary > span { transform: rotate(90deg); }
.lb-tree > div { margin-left: 15px; padding-left: 3px; border-left: 1px solid #dce3d7; }
.lb-tree-list > .lb-nav-folder { padding-left: 24px; }
.lb-detail.lo-library-detail { margin: 0; padding: 0; border: 0; }
.lb-detail-heading { display: flex; align-items: center; gap: 24px; margin: 18px 0 36px; }
.lb-detail-heading > div { min-width: 0; flex: 1; }
.lb-book-settings { align-self: flex-start; width: 38px; height: 38px; border: 1px solid #dce5d8; border-radius: 9px; background: #fffefb; color: #4e6a60; font-size: 20px; cursor: pointer; }
.lb-book-state { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: -12px 0 24px; color: #708276; font-size: 12px; }
.lb-book-state .is-error { color: #a24f46; }
.lb-book-icons { display: flex; gap: 7px; }
.lb-book-icons button,.lb-unit-note { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid #dce5d8; border-radius: 7px; background: #fffefb; color: #4e6a60; cursor: pointer; font-size: 16px; }
.lb-book-icons button:disabled { color: #b9c3b8; cursor: default; }
.lb-unit-row { display: flex; align-items: center; border-bottom: 1px solid #e7ece3; }
.lb-detail .lb-unit-row .lo-library-unit { flex: 1; min-width: 0; border-bottom: 0; }
.lb-unit-note { margin: 0 12px; }
.lb-start-unit { margin: 10px 14px 16px; padding: 8px 12px; border: 1px solid #dce5d8; border-radius: 7px; background: #fffefb; color: #4e6a60; cursor: pointer; }
.lb-processing-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.lb-processing-actions button,.lb-processing-actions a { display: grid; justify-items: center; gap: 4px; padding: 11px 4px; border: 1px solid #dce5d8; border-radius: 9px; background: #f7faf5; color: #4e6a60; cursor: pointer; text-align: center; text-decoration: none; font: inherit; font-size: 12px; }
.lb-processing-actions span { font-size: 20px; line-height: 1.1; }
.lb-processing-actions button:disabled { opacity: .5; cursor: default; }
.lb-processing-actions button[data-processing-structure]:disabled { opacity: 1; color: #6f8174; background: #e9efe6; }
.lb-detail-icon { display: grid; place-items: center; flex-shrink: 0; width: 70px; height: 86px; background: #f3e8d6; border-radius: 8px; color: #987958; font-size: 26px; }
.lb-detail-icon.is-video { color: #688397; background: #e3edf3; }
.lb-detail .lo-library-course .course-directory { border: 1px solid #e4e8e0; box-shadow: none; }
.lb-detail .course-summary-main { display: none; }
.lb-detail .course-summary { justify-content: flex-end; padding: 12px 22px; }
.lb-detail .lo-library-group header h2 { font: 600 16px system-ui; margin: 0; }
.lb-group-number { color: #a9b4a5; font-size: 12px; margin-right: 16px; }
.lb-detail .lo-library-unit { padding: 15px 14px; background: transparent; border: 0; border-bottom: 1px solid #e7ece3; border-radius: 0; color: #485c4c; }
.lb-detail .lo-library-unit:hover { background: #f0f4eb; }
.lb-detail .lo-library-unit small { color: #94a18f; }
.lb-move-dialog { width: min(440px, calc(100% - 32px)); padding: 28px; border: 1px solid #dce5d8; border-radius: 14px; color: #425849; box-shadow: 0 24px 70px #23322222; }
.lb-move-dialog::backdrop { background: #25332a55; }
.lb-move-dialog h2 { font-size: 20px; }
.lb-move-dialog p { color: #8b998b; font-size: 13px; }
.lb-move-dialog label { display: grid; gap: 10px; font-size: 12px; }
.lb-move-dialog select { width: 100%; padding: 12px; color: #4c6150; background: #f6f8f2; border: 1px solid #dce5d6; border-radius: 7px; }
.lb-move-dialog footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.lb-move-dialog footer button { padding: 9px 18px; border: 0; background: #edf2e8; color: #526c52; border-radius: 7px; }
.lb-move-dialog footer button[type=submit] { background: #4e6a60; color: white; }
.lb-ocr-status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 28px; padding: 16px 18px; border: 1px solid #dce5d8; border-radius: 12px; background: #f7faf5; }
.lb-ocr-status p { flex: 1 1 240px; margin: 0; color: #64766a; font-size: 12px; }
.lb-ocr-status progress { flex: 1 1 180px; height: 6px; accent-color: #4e6a60; }
.lb-ocr-status button { padding: 8px 14px; border: 0; border-radius: 7px; background: #e7eee3; color: #4e6755; }
.lb-ocr-dialog { width: min(520px, calc(100% - 32px)); padding: 0; border: 1px solid #dce5d8; border-radius: 16px; color: #425849; background: #fffefb; box-shadow: 0 24px 70px #23322222; }
.lb-ocr-dialog::backdrop { background: #25332a55; }
.lb-ocr-dialog form { display: grid; gap: 22px; padding: 28px; }
.lb-ocr-dialog header small { color: #8b998b; font-size: 11px; letter-spacing: .08em; }
.lb-ocr-dialog h2 { margin: 5px 0 0; font-size: 22px; }
.lb-ocr-dialog label { display: grid; gap: 14px; }
.lb-ocr-dialog label span { display: flex; justify-content: space-between; color: #637568; font-size: 13px; }
.lb-ocr-dialog output { color: #30463f; font-weight: 650; }
.lb-ocr-dialog input[type="range"] { width: 100%; accent-color: #4e6a60; }
.lb-ocr-dialog p { margin: 0; color: #7b8b80; font-size: 12px; line-height: 1.7; }
.lb-ocr-dialog [data-ocr-range] { color: #425849; font-weight: 600; }
.lb-ocr-dialog footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.lb-ocr-dialog footer button { padding: 9px 18px; border: 0; border-radius: 7px; background: #edf2e8; color: #526c52; }
.lb-ocr-dialog footer button[type="submit"] { background: #4e6a60; color: white; }
@media (hover: none) { .lb-menu > summary { opacity: 1; } }
@media (max-width: 1100px) { .lb-header { align-items: flex-start; flex-direction: column; } .lb-toolbar { width: 100%; } .lb-search { flex: 1; } }
@media (max-width: 800px) { .lb-nav-main { display: flex; margin-bottom: 16px; } .lb-nav-main button { width: auto; } .lb-tree-list { max-height: 200px; overflow: auto; } .lb-nav-label { margin-bottom: 6px; } .lb-source-grid { grid-template-columns: minmax(0, 1fr); } .lb-domain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lb-domain-main { padding: 16px; } .lb-detail-heading { gap: 16px; } .lb-detail h1 { font-size: 26px; } .lb-detail .lo-library-group header { gap: 14px; flex-wrap: wrap; } .lb-menu > summary { opacity: 1; } }
