.oc-page .pm-drop { min-height: 360px; }
.oc-doc { gap: 14px; }

.oc-k { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 6px; background: var(--cc-soft); color: var(--cc-ink-2); font-size: .64rem; font-weight: 700; white-space: nowrap; }
.oc-k i { font-size: 10px; }
.oc-k.is-scan { background: rgba(6, 147, 139, .12); color: var(--cc-teal); }
.oc-k.is-text { background: rgba(22, 163, 74, .12); color: #15803D; }
.oc-k.is-mix { background: rgba(245, 158, 11, .14); color: #B45309; }
.oc-k.is-bad { background: rgba(239, 68, 68, .12); color: #DC2626; }
html:not(.cf-light) .oc-k.is-scan { color: var(--cc-bright); }
html:not(.cf-light) .oc-k.is-text { color: #4ADE80; }
html:not(.cf-light) .oc-k.is-mix { color: #FBBF24; }
html:not(.cf-light) .oc-k.is-bad { color: #F87171; }

.oc-page .ps-pass::before { content: none; }
.oc-pass-t { flex: 1 1 100%; font-size: .76rem; font-weight: 600; line-height: 1.45; color: var(--cc-ink-2); }
.oc-pass .pm-pass-in input.is-bad { border-color: #EF4444; }
.oc-pw-err { flex: 1 1 100%; font-size: .72rem; font-weight: 600; color: #EF4444; }
.oc-pw-err[hidden] { display: none; }

.oc-info { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border: 1px solid rgba(6, 147, 139, .25); border-radius: 14px; background: var(--cc-teal-soft); color: var(--cc-ink-2); font-size: .76rem; line-height: 1.5; }
.oc-info[hidden] { display: none; }
.oc-info > i { margin-top: 3px; font-size: 13px; color: var(--cc-teal); }
html:not(.cf-light) .oc-info > i { color: var(--cc-bright); }
.oc-info.is-warn { border-color: rgba(245, 158, 11, .3); background: rgba(245, 158, 11, .08); color: #92400E; }
.oc-info.is-warn > i { color: #D97706; }
html:not(.cf-light) .oc-info.is-warn { color: #FCD34D; }

.oc-setup { display: grid; gap: 14px; min-width: 0; }
.oc-setup[hidden] { display: none; }
.oc-grid .ps-pg:not(.is-on) .ps-pg-box img { opacity: .45; }
.oc-pg-tag { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 6px; background: rgba(22, 163, 74, .9); color: #fff; font-size: .6rem; font-weight: 700; letter-spacing: .02em; }
.oc-grid .ps-pg.is-kept .ps-pg-box { border-color: rgba(22, 163, 74, .55); }
.oc-grid .ps-pg.is-kept .ps-pg-chk { border-color: #16A34A; background: #16A34A; }
.oc-grid .ps-pg.is-kept .ps-pg-n { color: #16A34A; }

.oc-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.oc-chip { height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; border: 1px solid var(--cc-line); border-radius: 10px; background: var(--cc-card); color: var(--cc-ink-2); font: 600 .74rem 'Poppins', sans-serif; white-space: nowrap; cursor: pointer; transition: border-color .2s, background .2s, color .2s; -webkit-tap-highlight-color: transparent; }
.oc-chip:hover { border-color: rgba(6, 147, 139, .45); color: var(--cc-ink); }
.oc-chip.is-on { border-color: rgba(6, 147, 139, .45); background: var(--cc-teal-soft); color: var(--cc-teal); }
.oc-chip.is-on::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
html:not(.cf-light) .oc-chip.is-on { color: var(--cc-bright); }
.oc-more { position: relative; display: block; }
.oc-more select { width: 100%; height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--cc-line); border-radius: 11px; background: var(--cc-card); color: var(--cc-ink-2); font: 500 .8rem 'Poppins', sans-serif; cursor: pointer; outline: 0; -webkit-appearance: none; appearance: none; }
.oc-more select:focus { border-color: var(--cc-teal); box-shadow: 0 0 0 3px rgba(6, 147, 139, .15); }
.oc-more select option { color: #0F172A; background: #fff; }
.oc-more i { position: absolute; top: 50%; right: 13px; font-size: 10px; color: var(--cc-ink-3); transform: translateY(-50%); pointer-events: none; }
.pm-opts.is-locked { opacity: .5; pointer-events: none; }
#ocSkipW[hidden] { display: none; }
#ocDlPdf[hidden], #ocGo[hidden] { display: none; }

.oc-prog .pm-busy-card { max-width: 360px; }
.oc-prog-pg { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; width: 100%; max-height: 92px; margin-top: 6px; overflow-y: auto; scrollbar-width: thin; }
.oc-prog-pg:empty { display: none; }
.oc-pc { min-width: 26px; height: 22px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; border-radius: 6px; background: var(--cc-soft); color: var(--cc-ink-3); font: 600 .64rem 'Poppins', sans-serif; font-variant-numeric: tabular-nums; transition: background .2s, color .2s; }
.oc-pc.is-run { background: var(--cc-teal-soft); color: var(--cc-teal); box-shadow: inset 0 0 0 1.5px var(--cc-teal); }
.oc-pc.is-done { background: var(--cc-teal); color: #fff; }
.oc-pc.is-fail { background: rgba(239, 68, 68, .15); color: #DC2626; }
.oc-cancel { width: 100%; margin-top: 8px; }
.oc-prog .pm-busy-card > span#ocProgS { font-variant-numeric: tabular-nums; }

.oc-res { gap: 12px; }
.oc-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.oc-stat { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border: 1px solid var(--cc-line); border-radius: 8px; background: var(--cc-card); color: var(--cc-ink-2); font-size: .72rem; font-weight: 600; white-space: nowrap; }
.oc-stat i { font-size: 11px; color: var(--cc-teal); }
html:not(.cf-light) .oc-stat i { color: var(--cc-bright); }
.oc-stat.is-lang { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

.oc-view { position: relative; display: flex; flex-direction: column; height: min(78vh, 820px); min-height: 460px; overflow: hidden; border: 1px solid var(--cc-line); border-radius: 16px; background: var(--cc-soft); }
.oc-view[hidden] { display: none; }
.oc-view.is-full { position: fixed; inset: 0; z-index: 1150; height: auto; min-height: 0; border: 0; border-radius: 0; }
html.oc-lock-scroll, html.oc-lock-scroll body { overflow: hidden; }
.oc-top, .oc-top2 { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--cc-card); }
.oc-top2 { padding-top: 0; border-bottom: 1px solid var(--cc-line); }
.oc-nav { flex-shrink: 0; display: flex; align-items: center; gap: 2px; height: 38px; padding: 2px; border: 1px solid var(--cc-line); border-radius: 11px; background: var(--cc-card); }
.oc-pgno { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px; font-size: .74rem; font-weight: 600; color: var(--cc-ink-3); font-variant-numeric: tabular-nums; }
.oc-pgno input { width: 38px; height: 28px; padding: 0; border: 0; border-radius: 7px; outline: 0; background: var(--cc-soft); color: var(--cc-ink); text-align: center; font: 700 .76rem 'Poppins', sans-serif; }
.oc-pgno input:focus { box-shadow: 0 0 0 2px var(--cc-teal); }
.oc-ib { min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--cc-ink-2); font-size: 12px; cursor: pointer; transition: background .2s, color .2s, opacity .2s; -webkit-tap-highlight-color: transparent; }
.oc-ib:hover { background: var(--cc-teal-soft); color: var(--cc-teal); }
html:not(.cf-light) .oc-ib:hover { color: var(--cc-bright); }
.oc-ib:disabled { opacity: .35; pointer-events: none; }
.oc-pill { flex-shrink: 0; height: 38px; min-width: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid var(--cc-line); border-radius: 11px; background: var(--cc-card); color: var(--cc-ink); font: 600 .74rem 'Poppins', sans-serif; white-space: nowrap; cursor: pointer; transition: border-color .2s, background .2s, color .2s; -webkit-tap-highlight-color: transparent; }
.oc-pill i { font-size: 12px; }
.oc-pill:hover { border-color: rgba(6, 147, 139, .45); color: var(--cc-teal); }
.oc-pill.is-on { border-color: rgba(6, 147, 139, .45); background: var(--cc-teal-soft); color: var(--cc-teal); }
html:not(.cf-light) .oc-pill:hover, html:not(.cf-light) .oc-pill.is-on { color: var(--cc-bright); }
.oc-pill.oc-full { width: 38px; padding: 0; margin-left: auto; }
.oc-pill.oc-low.is-on { border-color: rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .1); color: #DC2626; }
html:not(.cf-light) .oc-pill.oc-low.is-on { color: #F87171; }
.oc-find { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 2px; height: 38px; padding: 0 3px 0 12px; border: 1px solid var(--cc-line); border-radius: 11px; background: var(--cc-soft); }
.oc-find:focus-within { border-color: var(--cc-teal); background: var(--cc-card); box-shadow: 0 0 0 3px rgba(6, 147, 139, .15); }
.oc-find > i { flex-shrink: 0; font-size: 12px; color: var(--cc-ink-3); }
.oc-find input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 8px; border: 0; outline: 0; background: transparent; color: var(--cc-ink); font: 500 .8rem 'Poppins', sans-serif; }
.oc-find input::-webkit-search-cancel-button { display: none; }
.oc-find-n { flex-shrink: 0; padding: 0 4px; font-size: .7rem; font-weight: 700; color: var(--cc-ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.oc-find-n.is-none { color: #EF4444; }
.oc-find .oc-ib { min-width: 28px; height: 28px; }
.oc-tabs { flex-shrink: 0; padding: 3px; }
.oc-tabs button { height: 30px; padding: 0 12px; font-size: .74rem; }
.oc-src { flex: 1 1 auto; min-width: 0; display: flex; overflow: hidden; }
.oc-tools { flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.oc-zoom { display: flex; align-items: center; gap: 2px; height: 38px; padding: 2px; border: 1px solid var(--cc-line); border-radius: 11px; background: var(--cc-card); }
.oc-zoom .oc-ib { min-width: 30px; height: 30px; }
.oc-zoom-t { min-width: 48px; height: 30px; padding: 0 4px; border: 0; border-radius: 8px; background: transparent; color: var(--cc-ink); font: 700 .72rem 'Poppins', sans-serif; cursor: pointer; }
.oc-zoom-t:hover { background: var(--cc-soft); }

.oc-body { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.oc-body.is-page .oc-tpane, .oc-body.is-text .oc-ppane { display: none; }
.oc-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.oc-scroll { position: relative; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 16px; }
.oc-pg { position: relative; margin: 0 auto; aspect-ratio: var(--ar, 0.707); background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .12), 0 6px 18px rgba(15, 23, 42, .08); }
.oc-pg img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .2s; }
.oc-pg.is-ld img { opacity: 1; }
.oc-pg::before { content: ''; position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border: 2px solid rgba(100, 116, 139, .25); border-top-color: var(--cc-teal); border-radius: 50%; animation: pmSpin .8s linear infinite; }
.oc-pg.is-ld::before { display: none; }
.oc-boxes { position: absolute; inset: 0; z-index: 2; }
.oc-boxes i { position: absolute; border-radius: 2px; cursor: pointer; }
.oc-view.show-boxes .oc-boxes i { background: rgba(6, 147, 139, .1); box-shadow: inset 0 0 0 1px rgba(6, 147, 139, .55); }
.oc-view.show-low .oc-boxes i.is-low { background: rgba(239, 68, 68, .16); box-shadow: inset 0 0 0 1.5px rgba(239, 68, 68, .85); }
@media (hover: hover) { .oc-view .oc-boxes i:hover { background: rgba(6, 147, 139, .14); box-shadow: inset 0 0 0 1px rgba(6, 147, 139, .7); } .oc-text span:hover { background: var(--cc-soft); } }
.oc-view .oc-boxes i.is-hit { background: rgba(250, 204, 21, .35); box-shadow: inset 0 0 0 1px rgba(202, 138, 4, .8); }
.oc-view .oc-boxes i.is-cur { z-index: 2; background: rgba(245, 158, 11, .4); box-shadow: inset 0 0 0 2px #F59E0B, 0 0 0 3px rgba(245, 158, 11, .25); }
.oc-view .oc-boxes i.is-sel { z-index: 3; background: rgba(6, 147, 139, .22); box-shadow: inset 0 0 0 2px var(--cc-teal); }

.oc-tpane { background: var(--cc-card); }
.oc-text { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px 26px; background: var(--cc-card); color: var(--cc-ink); font-size: .88rem; line-height: 1.75; overscroll-behavior: contain; scrollbar-width: thin; word-break: break-word; -webkit-user-select: text; user-select: text; }
.oc-ln { min-height: 1em; }
.oc-gap { height: .8em; }
.oc-text span { border-radius: 3px; cursor: pointer; transition: background .15s; }
.oc-view.show-low .oc-text span.is-low { background: rgba(239, 68, 68, .12); color: #B91C1C; text-decoration: underline wavy rgba(239, 68, 68, .6); text-underline-offset: 3px; }
html:not(.cf-light) .oc-view.show-low .oc-text span.is-low { color: #FCA5A5; }
.oc-text span.is-hit { background: rgba(250, 204, 21, .35); }
.oc-text span.is-cur { background: #F59E0B; color: #0F172A; }
.oc-text span.is-sel { background: var(--cc-teal-soft); box-shadow: 0 0 0 1.5px var(--cc-teal); }
.oc-empty { display: grid; justify-items: center; gap: 10px; margin: 40px auto; max-width: 280px; text-align: center; font-size: .8rem; line-height: 1.55; color: var(--cc-ink-3); }
.oc-empty i { font-size: 26px; opacity: .6; }

@media (min-width: 901px) {
    .oc-view.is-full .oc-tabs { display: none; }
    .oc-view.is-full .oc-body { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1px; background: var(--cc-line); }
    .oc-view.is-full .oc-body .oc-tpane, .oc-view.is-full .oc-body .oc-ppane { display: flex; }
    .oc-view.is-full .oc-ppane { background: var(--cc-soft); }
}

.oc-page .qg-toast { z-index: 1200; }

@media (max-width: 1180px) {
    .oc-bl { display: none; }
    .oc-tools .oc-pill { width: 38px; padding: 0; }
}
@media (max-width: 760px) {
    .oc-page .pm-drop { min-height: 230px; }
    .oc-chip { height: 36px; }
    .oc-more select, .oc-find input, .oc-pgno input { font-size: 16px; }
    .oc-view { height: 76vh; min-height: 440px; border-radius: 14px; }
    .oc-top { flex-wrap: wrap; padding: 7px 8px; gap: 6px; }
    .oc-find { order: 3; flex: 1 1 100%; }
    .oc-top2 { flex-wrap: wrap; padding: 0 8px 7px; gap: 6px; }
    .oc-src { order: 3; flex: 1 1 100%; }
    .oc-src:empty { display: none; }
    .oc-tools { margin-left: auto; gap: 4px; }
    .oc-zoom { display: none; }
    .oc-view.is-full .oc-zoom { display: flex; }
    .oc-scroll { padding: 10px; }
    .oc-text { padding: 14px 14px 22px; font-size: .9rem; }
    .oc-prog .pm-busy-card { max-width: 340px; }
    .oc-app.is-done .pm-dl { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .oc-app.is-done .pm-dl-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .oc-app.is-done .pm-dl-row .qg-btn-ghost { min-width: 0; height: 40px; padding: 0 6px; gap: 6px; font-size: .74rem; }
    .oc-app.is-done .pm-dl-row .qg-btn-ghost span { display: inline; }
    .oc-app.is-done .pm-dl .qg-btn-main { height: 46px; }
}
@media (max-width: 400px) {
    .oc-tabs button { padding: 0 9px; }
    .oc-tabs button i { display: none; }
}