/* Product shell built on Tabler's responsive Navbar, Offcanvas, Page and Card components. */
.downloads-header { max-width: 1120px; margin: auto; display: flex; align-items: center; justify-content: space-between; padding: 24px; gap: 16px; }
.downloads-brand { color: var(--text); text-decoration: none; }
.downloads-main { max-width: 1120px; margin: auto; padding: 28px 24px; }
.downloads-intro h1 { font-size: 32px; margin: 10px 0; letter-spacing: -.04em; }
.downloads-intro p { color: var(--muted); margin: 0 0 30px; }
.downloads-eyebrow { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.downloads-filters { display: flex; gap: 16px; align-items: end; margin-bottom: 16px; }
.downloads-filters label { display: grid; gap: 8px; font-size: 12px; color: var(--muted); }
.downloads-filters label:first-child { flex: 1; }
.downloads-filters select { min-width: 160px; }
.downloads-filters .muted { padding-bottom: 12px; white-space: nowrap; }
.downloads-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.download-card { padding: 20px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.download-card > .download-card-heading { gap: 12px; align-items: center; }
.download-card-heading > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.download-card-heading .badge { margin-top: 12px; white-space: normal; line-height: 1.5; }
.download-row-content { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 24px; align-items: center; }
.download-row-copy { min-width: 0; overflow-wrap: anywhere; }
.download-row-body { min-width: 0; }
.download-card-heading { display: flex; justify-content: space-between; width: 100%; text-align: left; padding: 0; margin-bottom: 0; border: 0; background: none; }
.download-card-heading h2 { font-size: 20px; margin: 8px 0 0; }
.download-card-heading:hover { background: none; }
.download-description { line-height: 1.7; font-size: 14px; margin: 0 0 6px; }
.download-hint { line-height: 1.7; font-size: 12px; color: var(--muted); margin: 0; }
.download-card-footer { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; text-align: right; overflow-wrap: anywhere; }
.download-card-footer [aria-disabled="true"] { color: var(--muted); pointer-events: none; opacity: .65; }
.downloads-footer { color: var(--muted); font-size: 12px; margin-top: 36px; }
.login-download { display: flex; }
.software-admin { padding: 20px; margin-bottom: 24px; }
.software-admin .panel-heading small { display: block; margin-top: 6px; font-weight: 400; }
.software-upload-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border: 0; padding: 20px 0 0; margin: 0; min-width: 0; }
.software-upload-fields label { display: grid; gap: 7px; font-size: 13px; min-width: 0; }
.software-upload-fields input, .software-upload-fields textarea { min-width: 0; width: 100%; }
.software-upload-fields textarea { border: 1px solid #cad7d2; border-radius: 9px; padding: 10px; font: inherit; resize: vertical; }
.software-upload-fields .upload-full { grid-column: 1 / -1; }
.software-upload-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#software-upload-progress { width: 100%; height: 10px; accent-color: var(--accent); margin-top: 18px; }
@media (max-width: 800px) { .download-card { grid-template-columns: 180px minmax(0, 1fr); gap: 18px; } .download-row-content { grid-template-columns: minmax(0, 1fr); gap: 12px; } .download-card-footer { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; } }
@media (max-width: 640px) {
  .downloads-filters { flex-wrap: wrap; } .downloads-filters label:first-child { flex-basis: 100%; }
  .downloads-header, .downloads-main { padding: 16px; }
  .downloads-header { flex-wrap: wrap; } .downloads-brand { min-width: 0; }
  .downloads-filters label { min-width: 0; } .downloads-filters input { min-width: 0; width: 100%; }
  .download-card { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }
  .download-card-heading h2 { font-size: 18px; } .download-card-footer { flex-wrap: wrap; }
  .download-card-footer .shell-download { min-height: 44px; }
  .software-upload-fields { grid-template-columns: minmax(0, 1fr); }
}
.center-shell { --tblr-sidebar-width: 232px; --sidebar-width: var(--tblr-sidebar-width); }
.center-shell > .page { min-height: 100vh; background: var(--tblr-bg-surface-secondary, var(--page)); }
.downloads-legacy .download-card { display: block; margin-bottom: 12px; }
.downloads-legacy .download-row-content { display: block; }
.downloads-legacy .download-row-body { margin-top: 16px; }
.downloads-legacy .download-card-footer { margin-top: 12px; }
.downloads-legacy .downloads-filters label { display: block; margin-right: 12px; }
.downloads-legacy .downloads-filters input, .downloads-legacy .downloads-filters select { display: block; margin-top: 8px; }
.app-sidebar { --bs-offcanvas-width: var(--tblr-sidebar-width); --tblr-navbar-bg: #fff; --tblr-navbar-color: #566760; display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; background: var(--tblr-navbar-bg); border-right: 1px solid var(--line); }
.app-sidebar .sidebar-brand.navbar-brand { width: 100%; display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 25px 20px; min-height: 86px; }
.sidebar-brand > div { min-width: 0; }
.sidebar-brand strong { display: block; font-size: 15px; white-space: nowrap; }
.sidebar-brand small { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.sidebar-brand .brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.sidebar-close { margin-left: auto; min-height: 0; border: 0; }
.app-sidebar .offcanvas-body { width: 100%; display: flex; flex-direction: column; padding: 0 14px 18px; min-height: 0; }
.sidebar-section-label { color: #85918c; font-size: 11px; letter-spacing: .12em; margin: 16px 12px 12px; }
.center-shell .module-nav { width: 100%; flex: 0 0 auto; margin: 10px 0 0; display: flex; flex-direction: column; gap: 4px; padding: 0; }
.nav-group { display: grid; gap: 3px; }
.nav-group + .nav-group { margin-top: 5px; padding-top: 5px; border-top: 1px solid #edf2ef; }
.nav-group-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 38px; padding: 8px 10px 8px 12px; border: 0; color: #7b8983; background: transparent; font-size: 12px; font-weight: 750; letter-spacing: .04em; text-align: left; }
.nav-group-toggle:hover { color: #087455; background: #f7faf9; }
.nav-group-toggle > span { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .16s ease; }
.nav-group-toggle[aria-expanded="false"] > span { transform: rotate(-45deg); }
.nav-submenu { display: grid; gap: 3px; }
.center-shell .module-nav .nav-tab { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 42px; padding: 9px 12px 9px 16px; text-align: left; border-radius: 9px; font-size: 13px; font-weight: 600; color: #566760; background: transparent; border: 1px solid transparent; }
.module-nav .nav-tab img { flex: 0 0 19px; width: 19px; height: 19px; margin-inline: 2.5px; opacity: .58; }
.module-nav .nav-step { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; color: #83918b; background: #edf3f0; font-size: 10px; font-weight: 800; }
.center-shell .module-nav .nav-tab:hover { background: #f2f7f5; color: var(--accent); }
.center-shell .module-nav .nav-tab.active { background: var(--accent-soft); color: #05694b; border-color: #cfebdf; }
.center-shell .module-nav .nav-group-toggle.active { color: #05694b; background: #f1f8f5; }
.module-nav .nav-tab.active img { opacity: .9; }
.module-nav .nav-tab.active .nav-step { color: #fff; background: var(--accent); }
.sidebar-footer { display: flex; align-items: center; gap: 7px; margin: auto 12px 0; padding-top: 22px; color: #8c9993; font-size: 11px; }
.sidebar-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #82b5a2; }
.correction-notice { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; background: #edf8f4; border: 1px solid #d2e9df; border-radius: 9px; font-size: 12px; line-height: 1.7; }
.correction-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0; }
.correction-counts { display: flex; flex-wrap: wrap; gap: 16px; }
.correction-counts > span { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--muted); }
.correction-counts strong { font-size: 19px; color: var(--text); }
.correction-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 12px; background: #f7faf9; border-radius: 8px; }
.correction-filters label, .correction-filters form { display: grid; gap: 5px; margin: 0; font-size: 12px; }
.correction-filters form { flex: 1; min-width: 180px; }
.correction-filters form > div { display: flex; gap: 6px; }
.correction-filters input { min-width: 0; }
.correction-filters select { min-height: 36px; }
#correction-status { min-height: 20px; margin: 10px 0; }
#correction-status.error { color: #b43b2c; }
.corrections-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); height: clamp(560px, calc(100dvh - 350px), 820px); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: white; }
.correction-library { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #f6faf8; border-right: 1px solid var(--line); }
#correction-list { flex: 1; overflow-y: auto; scrollbar-gutter: stable; padding: 10px; min-height: 0; }
.correction-list-item { display: grid; gap: 8px; width: 100%; padding: 12px; margin: 0 0 8px; border: 1px solid #e0e9e5; border-radius: 9px; background: white; text-align: left; font-size: 12px; line-height: 1.65; color: var(--text); }
.correction-list-item > span:last-child { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.correction-list-item.selected { border-color: #2da681; background: #eaf8f2; }
.correction-list-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; color: var(--muted); }
.correction-list-meta small { font-size: 10px; }
.correction-pagination { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 4px; padding: 10px; border-top: 1px solid var(--line); font-size: 11px; }
.correction-detail { overflow-y: auto; min-width: 0; padding: 20px; scrollbar-gutter: stable; }
.correction-detail-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 16px; }
.correction-detail h3 { font-size: 15px; margin: 0; }
.correction-detail h4 { font-size: 12px; margin: 12px 0 8px; }
.correction-detail .muted { font-size: 11px; }
.correction-original { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 12px; padding: 14px; border-left: 3px solid #78b89d; background: #f3f8f5; border-radius: 6px; font-size: 13px; line-height: 1.8; }
.correction-models { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 14px 0; }
.correction-models > section { border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 12px; min-width: 0; }
.correction-models p { margin: 8px 0; overflow-wrap: anywhere; line-height: 1.7; }
.correction-raw { margin: 8px 0; font-size: 11px; }
.correction-raw pre, .correction-detail details pre { max-height: 260px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; margin-top: 8px; }
.correction-legacy { padding: 10px; border: 1px solid #eed8a7; border-radius: 8px; background: #fff9ed; font-size: 12px; }
#correction-form { display: grid; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
#correction-form > label { display: grid; gap: 7px; font-size: 12px; }
.correction-action { display: grid; grid-template-columns: 135px minmax(0,1fr) auto; align-items: start; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.correction-action input, .correction-action select { min-width: 0; width: 100%; }
.correction-action textarea { grid-column: 1 / -1; }
#correction-form .correction-review-label { display: flex; align-items: flex-start; gap: 8px; line-height: 1.7; }
.correction-review-label input { margin-top: 2px !important; }
.correction-save-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.correction-save-row small { font-size: 11px; color: var(--muted); }
.correction-history { font-size: 12px; margin-top: 18px; }
.correction-history article { padding: 10px 0; border-bottom: 1px solid var(--line); }
.correction-history p { margin: 5px 0; }
@media (max-width: 1100px) { .corrections-layout { grid-template-columns: 220px minmax(0,1fr); } .correction-models { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 767px) { .corrections-layout { grid-template-columns: minmax(0,1fr); height: auto; } .correction-library { height: 270px; border-right: 0; border-bottom: 1px solid var(--line); } .correction-detail { overflow: visible; padding: 14px; } .correction-action { grid-template-columns: minmax(0,1fr) auto; } .correction-action select { grid-column: 1 / -1; } .correction-action textarea { grid-column: 1 / -1; } }
.sidebar-order-hint { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; gap: 3px 6px; padding: 3px 9px; border: 1px solid transparent; border-radius: 10px; color: #89958f; font-size: 11px; }
.sidebar-order-heading { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; }
#sidebar-order-title { font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.sidebar-order-heading #sidebar-order-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 28px; padding: 4px 7px; border: 1px solid transparent; border-radius: 6px; color: #647a70; background: transparent; font-size: 11px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.sidebar-order-heading #sidebar-order-toggle:hover { background: #eaf3ee; color: #087455; }
.sidebar-order-heading #sidebar-order-toggle:focus-visible { outline: 2px solid #4aad8f; outline-offset: 2px; }
.sidebar-order-heading #sidebar-order-toggle:disabled { opacity: .5; cursor: wait; }
.sidebar-order-done-icon { display: none; }
.sidebar-order-hint.is-editing { padding-block: 8px; border-color: #d6e9df; color: #698476; background: #f0f8f4; }
.sidebar-order-hint.is-editing #sidebar-order-title { color: #316e55; }
.sidebar-order-hint.is-editing #sidebar-order-toggle { border-color: #cbded2; color: #087455; background: #fff; box-shadow: 0 1px 2px #214e3510; }
.sidebar-order-hint.is-editing .sidebar-order-sort-icon { display: none; }
.sidebar-order-hint.is-editing .sidebar-order-done-icon { display: block; }
.sidebar-order-hint:not(.is-editing):not(.has-error) #sidebar-order-status { display: none; }
#sidebar-order-status { line-height: 1.6; }
.sidebar-order-hint.has-error #sidebar-order-status { color: #ad4d32; }
#sidebar-order-retry { border: 0; padding: 1px 3px; background: transparent; color: var(--accent); font-size: 11px; text-decoration: underline; }
.sidebar-sortable .nav-tab, .sidebar-sortable .nav-group-toggle { cursor: grab; user-select: none; -webkit-touch-callout: none; }
.sidebar-sort-grip { display: none; flex-shrink: 0; pointer-events: none; }
.sidebar-sort-mode .nav-tab, .sidebar-sort-mode .nav-group-toggle { position: relative; }
.sidebar-sort-mode .nav-submenu { min-height: 40px; }
.sidebar-sort-mode .nav-submenu:not(:has(.nav-tab)) { border: 1px dashed #cbded2; border-radius: 8px; }
.sidebar-sort-mode .nav-submenu:not(:has(.nav-tab))::before { content: "拖动应用到这里"; align-self: center; text-align: center; color: #7b8983; font-size: 11px; pointer-events: none; }
.sidebar-sort-mode .sidebar-sort-grip { display: block; position: absolute; top: 50%; right: 8px; transform: translateY(-50%); color: #a2b6aa; }
.sidebar-sort-mode .nav-group-toggle .sidebar-sort-grip { right: 29px; width: 12px; }
.center-shell .sidebar-sort-mode .nav-tab { padding-right: 29px; border-color: #e3ece7; background: #fafcfb; }
.center-shell .sidebar-sort-mode .nav-tab.active { background: var(--accent-soft); border-color: #cfebdf; }
.sidebar-sort-mode .nav-tab:hover .sidebar-sort-grip, .sidebar-sort-mode .nav-group-toggle:hover .sidebar-sort-grip { color: #4e8b70; }
@media (pointer: coarse) { .sidebar-order-heading #sidebar-order-toggle { min-height: 36px; padding-inline: 10px; } }
.module-nav .sidebar-sort-chosen { outline: 2px solid #4aad8f; outline-offset: -2px; border-radius: 9px; cursor: grabbing; }
.module-nav .sidebar-sort-ghost { opacity: .3; background: var(--accent-soft); }
.module-nav .sidebar-sort-drag { opacity: .95 !important; background: #fff; box-shadow: 0 8px 24px #183f2e26; cursor: grabbing; }
.center-shell .app-header { width: 100%; margin-left: 0; backdrop-filter: none; background: #fff; }
.center-shell .header-main { width: 100%; margin: 0; min-height: 74px; padding: 12px 26px; gap: 16px; }
.shell-page-title { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 750; white-space: nowrap; }
.shell-download { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 13px; border: 1px solid #cde5da; border-radius: 9px; color: #087455; text-decoration: none; font-size: 13px; font-weight: 650; white-space: nowrap; background: #f5faf7; }
.shell-download:hover { background: var(--accent-soft); border-color: #9ccbb7; }
.shell-download img { width: 16px; height: 16px; }
.shell-menu-button { display: none; padding: 8px; border: 1px solid var(--line); background: #fff; border-radius: 9px; }
.shell-menu-button img { display: block; width: 22px; height: 22px; }
.center-shell .workspace { width: auto; max-width: none; margin: 0; padding: 24px 26px 48px; container-type: inline-size; }
.center-shell .header-brand-group { flex-wrap: nowrap; }
.center-shell .center-instance { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@container (max-width: 900px) {
  .center-shell .broadcaster-grid, .center-shell .asr-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 992px) {
  .app-sidebar.offcanvas-lg { position: fixed; top: 0; bottom: 0; left: 0; width: var(--sidebar-width); z-index: 30; display: flex; flex-direction: column; }
  .app-sidebar.offcanvas-lg .offcanvas-body { flex: 1; overflow-y: auto; background: #fff !important; }
  .sidebar-close { display: none; }
}
@media (max-width: 1199.98px) and (min-width: 992px) {
  .center-shell { --tblr-sidebar-width: 208px; --sidebar-width: var(--tblr-sidebar-width); }
  .app-sidebar .sidebar-brand.navbar-brand { padding-inline: 14px; }
  .center-shell .center-instance { max-width: 150px; }
  .center-shell .header-main, .center-shell .workspace { padding-inline: 18px; }
}
@media (max-width: 991.98px) {
  .app-sidebar.offcanvas-lg { width: min(292px, calc(100vw - 48px)); }
  .center-shell .workspace { padding: 18px; }
  .center-shell .header-main { padding: 12px 18px; }
  .shell-menu-button { display: block; }
}
@media (max-width: 640px) {
  .center-shell .header-main { flex-wrap: wrap; gap: 10px; }
  .center-shell .header-actions { flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin-left: auto; }
  .center-shell .center-instance { max-width: 170px; font-size: 10px; }
  .center-shell .workspace { padding: 12px; }
  .shell-page-title { font-size: 17px; }
}
