.acb-host-card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.acb-host-card > .card-body {
    padding: 0;
}

.acb-tool {
    --acb-primary: #1267d8;
    --acb-primary-dark: #0b4e9d;
    --acb-teal: #0f8f82;
    --acb-teal-dark: #0b756b;
    --acb-amber: #c77700;
    --acb-red: #d92d20;
    --acb-green: #138a5b;
    --acb-ink: #172033;
    --acb-muted: #667085;
    --acb-line: #d8e2ee;
    --acb-soft: #f5f8fc;
    --acb-soft-blue: #eef6ff;
    --acb-white: #fff;
    --acb-radius: 8px;
    --acb-shadow: 0 10px 24px rgba(22, 48, 80, .07);
    width: 100%;
    color: var(--acb-ink);
    background: linear-gradient(180deg, #fff 0%, #f7fafc 100%);
}

.acb-tool * {
    box-sizing: border-box;
}

.acb-tool button,
.acb-tool input,
.acb-tool select {
    font: inherit;
}

.acb-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    margin: 0;
    padding: 14px 18px;
    border-bottom: 1px solid #cddbeb;
    background: #f1f7ff;
    color: #1e4a78;
    font-size: 13px;
    line-height: 1.65;
}

.acb-alert i {
    color: var(--acb-primary);
    font-size: 18px;
    margin-top: 1px;
}

.acb-alert strong {
    display: block;
    color: #123b6e;
}

.acb-alert span {
    display: block;
}

.acb-engine-state {
    align-self: center;
    border: 1px solid #b8d6ff;
    border-radius: 999px;
    background: #fff;
    color: var(--acb-primary-dark);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.acb-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 14px 18px;
    background: #edf3f8;
    border-bottom: 1px solid var(--acb-line);
}

.acb-tab {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid #bfd0e5;
    border-radius: 8px;
    background: #fff;
    color: #0b4e9d;
    text-align: left;
    cursor: pointer;
    transition: background .2s, border-color .2s, box-shadow .2s, transform .2s, color .2s;
}

.acb-tab:hover {
    border-color: var(--acb-teal);
    color: var(--acb-teal);
    transform: translateY(-1px);
}

.acb-tab.active {
    background: linear-gradient(135deg, var(--acb-primary), var(--acb-primary-dark));
    border-color: var(--acb-primary);
    color: #fff;
    box-shadow: 0 10px 22px rgba(18, 103, 216, .18);
}

.acb-tab-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #e7f1ff;
    color: var(--acb-primary-dark);
    font-weight: 900;
}

.acb-tab.active .acb-tab-index {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.acb-tab b,
.acb-tab small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acb-tab b {
    font-size: 15px;
    font-weight: 900;
    color: inherit;
}

.acb-tab small {
    margin-top: 2px;
    font-size: 12px;
    color: currentColor;
    opacity: .78;
}

.acb-tab.is-done:not(.active) {
    border-color: rgba(15, 143, 130, .4);
    color: var(--acb-teal);
}

.acb-body {
    padding: 18px;
}

.acb-panel-tab {
    display: none;
}

.acb-panel-tab.active {
    display: block;
}

.acb-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
    gap: 16px;
    align-items: start;
}

.acb-layout-wide {
    grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
}

.acb-panel {
    border: 1px solid var(--acb-line);
    border-radius: var(--acb-radius);
    background: #fff;
    box-shadow: var(--acb-shadow);
    overflow: hidden;
}

.acb-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--acb-line);
    background: #f8fbff;
}

.acb-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #16233a;
    font-size: 15px;
    font-weight: 900;
}

.acb-title i {
    color: var(--acb-primary);
}

.acb-note {
    margin: 3px 0 0;
    color: var(--acb-muted);
    font-size: 12px;
    line-height: 1.55;
}

.acb-panel-body {
    padding: 16px;
}

.acb-drop {
    display: grid;
    gap: 8px;
    place-items: center;
    min-height: 210px;
    padding: 24px;
    border: 2px dashed #b9c8db;
    border-radius: 8px;
    background: linear-gradient(180deg, #fbfdff, #f3f8fc);
    cursor: pointer;
    text-align: center;
    transition: border-color .2s, background .2s, transform .2s;
}

.acb-drop.dragging,
.acb-drop:hover {
    border-color: var(--acb-primary);
    background: #eef6ff;
    transform: translateY(-1px);
}

.acb-drop input {
    display: none;
}

.acb-drop-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #e6f2ff;
    color: var(--acb-primary);
    font-size: 26px;
}

.acb-drop-main {
    color: #14233a;
    font-size: 16px;
    font-weight: 900;
}

.acb-drop-sub {
    color: var(--acb-muted);
    font-size: 13px;
    line-height: 1.6;
}

.acb-actions,
.acb-actions-inline,
.acb-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.acb-actions {
    margin-top: 14px;
}

.acb-nav {
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #edf1f6;
}

.acb-inline-tip {
    color: var(--acb-muted);
    font-size: 13px;
    line-height: 1.55;
}

.acb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #cfd8e6;
    border-radius: 7px;
    background: #fff;
    color: #24364b;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .2s, background .2s, color .2s, transform .2s, box-shadow .2s;
}

.acb-btn:hover {
    border-color: var(--acb-primary);
    color: var(--acb-primary-dark);
    transform: translateY(-1px);
}

.acb-btn:disabled {
    cursor: not-allowed;
    opacity: .58;
    transform: none;
}

.acb-btn-primary {
    border-color: var(--acb-primary);
    background: var(--acb-primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(18, 103, 216, .16);
}

.acb-btn-primary:hover {
    background: var(--acb-primary-dark);
    color: #fff;
}

.acb-btn-success {
    border-color: var(--acb-teal);
    background: var(--acb-teal);
    color: #fff;
}

.acb-btn-success:hover {
    background: var(--acb-teal-dark);
    color: #fff;
}

.acb-btn-danger {
    border-color: #efb7b7;
    color: var(--acb-red);
}

.acb-btn-warning {
    border-color: #f0c36d;
    color: #8a4f00;
    background: #fff8e6;
}

.acb-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.acb-stat,
.acb-summary-item,
.acb-analyze-box > div {
    border: 1px solid #e1e8f2;
    border-radius: 8px;
    background: #fbfdff;
    padding: 10px;
}

.acb-stat-value {
    color: #15233a;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.acb-stat-label {
    margin-top: 3px;
    color: var(--acb-muted);
    font-size: 12px;
}

.acb-file-list {
    display: grid;
    gap: 10px;
    max-height: 510px;
    overflow: auto;
}

.acb-file-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    border: 1px solid #e0e8f2;
    border-radius: 8px;
    background: #fff;
}

.acb-file-name,
.acb-result-name {
    color: #172033;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acb-file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.acb-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eef4fb;
    color: #40536a;
    font-size: 11px;
    font-weight: 800;
}

.acb-file-item audio,
.acb-preview-players audio,
.acb-result-audio audio {
    width: 100%;
    min-height: 36px;
}

.acb-empty,
.acb-more-note {
    border: 1px dashed #cad7e8;
    border-radius: 8px;
    padding: 14px;
    color: var(--acb-muted);
    background: #fbfdff;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.acb-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.acb-form-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.acb-wide {
    grid-column: 1 / -1;
}

.acb-field {
    display: grid;
    gap: 6px;
}

.acb-field label {
    color: #344054;
    font-size: 13px;
    font-weight: 900;
}

.acb-field input[type="text"],
.acb-field select {
    width: 100%;
    min-height: 40px;
    border: 1px solid #d7dfeb;
    border-radius: 7px;
    padding: 9px 10px;
    background: #fff;
    color: #172033;
    outline: none;
}

.acb-field input[type="text"]:focus,
.acb-field select:focus {
    border-color: var(--acb-primary);
    box-shadow: 0 0 0 3px rgba(18, 103, 216, .12);
}

.acb-range-field input[type="range"] {
    width: 100%;
    accent-color: var(--acb-primary);
}

.acb-range-legend {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--acb-muted);
    font-size: 12px;
}

.acb-range-legend b {
    color: var(--acb-primary-dark);
    font-size: 13px;
}

.acb-control-stack {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.acb-meter-panel {
    display: grid;
    gap: 12px;
    border: 1px solid #dce7f4;
    border-radius: 8px;
    padding: 14px;
    background: #f8fbff;
}

.acb-meter-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #344054;
    font-size: 13px;
    font-weight: 900;
}

.acb-meter-head b {
    color: var(--acb-primary-dark);
}

.acb-stage {
    position: relative;
    min-height: 86px;
    border: 1px solid #dce7f4;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(18, 103, 216, .10), rgba(15, 143, 130, .10)),
        repeating-linear-gradient(90deg, transparent 0, transparent 23px, rgba(102, 112, 133, .08) 24px);
    overflow: hidden;
}

.acb-stage::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: rgba(11, 78, 157, .28);
}

.acb-speaker {
    position: absolute;
    top: 50%;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #cbd9e8;
    color: #334155;
    font-weight: 900;
}

.acb-speaker-left {
    left: 12px;
}

.acb-speaker-right {
    right: 12px;
}

.acb-pan-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border-radius: 50%;
    background: var(--acb-teal);
    box-shadow: 0 0 0 8px rgba(15, 143, 130, .14);
    transition: left .18s ease;
}

.acb-meter-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 52px;
    gap: 9px;
    align-items: center;
    color: #42526b;
    font-size: 12px;
    font-weight: 800;
}

.acb-meter-row b {
    text-align: right;
}

.acb-meter-track {
    height: 10px;
    border-radius: 999px;
    background: #e8eef6;
    overflow: hidden;
}

.acb-meter-fill {
    height: 100%;
    width: 50%;
    border-radius: inherit;
    transition: width .2s ease;
}

.acb-meter-fill.left {
    background: var(--acb-primary);
}

.acb-meter-fill.right {
    background: var(--acb-teal);
}

.acb-quick-grid,
.acb-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.acb-quick,
.acb-check {
    border: 1px solid #dce5f0;
    border-radius: 8px;
    background: #fff;
    color: #172033;
}

.acb-quick {
    padding: 12px;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .2s;
}

.acb-quick:hover {
    border-color: var(--acb-primary);
    background: #f4f9ff;
    transform: translateY(-1px);
}

.acb-quick strong,
.acb-quick span,
.acb-check b,
.acb-check small {
    display: block;
}

.acb-quick strong,
.acb-check b {
    color: #172033;
    font-size: 13px;
    font-weight: 900;
}

.acb-quick span,
.acb-check small {
    margin-top: 4px;
    color: var(--acb-muted);
    font-size: 12px;
    line-height: 1.45;
}

.acb-check {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 12px;
    cursor: pointer;
}

.acb-check input {
    margin-top: 2px;
    accent-color: var(--acb-primary);
}

.acb-check input:disabled {
    cursor: not-allowed;
}

.acb-check:has(input:disabled) {
    background: #f7fafc;
}

.acb-preview-players {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.acb-preview-players > div {
    display: grid;
    gap: 6px;
    border: 1px solid #e0e8f2;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
}

.acb-preview-players span {
    color: #344054;
    font-size: 12px;
    font-weight: 900;
}

.acb-analyze-box {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.acb-analyze-box span,
.acb-summary-item span {
    display: block;
    color: var(--acb-muted);
    font-size: 12px;
}

.acb-analyze-box b,
.acb-summary-item b {
    display: block;
    margin-top: 5px;
    color: #172033;
    font-size: 15px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.acb-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.acb-progress-wrap {
    display: none;
    margin-top: 14px;
}

.acb-progress-track {
    height: 24px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef6;
}

.acb-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--acb-primary), var(--acb-teal));
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    transition: width .2s ease;
}

.acb-status {
    min-height: 24px;
    margin-top: 10px;
    color: var(--acb-muted);
    font-size: 13px;
    line-height: 1.6;
}

.acb-status.success {
    color: var(--acb-green);
}

.acb-status.error {
    color: var(--acb-red);
}

.acb-result-grid {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    max-height: 560px;
    overflow: auto;
}

.acb-result-card {
    display: grid;
    gap: 10px;
    border: 1px solid #e0e8f2;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
}

.acb-result-meta {
    margin: 4px 0 10px;
    color: var(--acb-muted);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.acb-error-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.acb-error-item {
    border: 1px solid #ffd4d0;
    border-radius: 8px;
    background: #fff7f6;
    color: #b42318;
    padding: 9px 10px;
    font-size: 12px;
    line-height: 1.55;
}

.acb-hidden {
    display: none !important;
}

@media (max-width: 1100px) {
    .acb-layout,
    .acb-layout-wide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .acb-alert {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .acb-engine-state {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .acb-tabs,
    .acb-stat-grid,
    .acb-summary,
    .acb-form-grid,
    .acb-form-grid-two,
    .acb-quick-grid,
    .acb-check-grid,
    .acb-analyze-box {
        grid-template-columns: 1fr;
    }

    .acb-body,
    .acb-panel-body {
        padding: 14px;
    }

    .acb-panel-head,
    .acb-nav {
        display: grid;
        justify-content: stretch;
    }

    .acb-actions,
    .acb-actions-inline,
    .acb-btn {
        width: 100%;
    }

    .acb-btn {
        min-width: 0;
    }

    .acb-meter-row {
        grid-template-columns: 48px minmax(0, 1fr) 46px;
    }
}
