.current-tab-review-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    margin-left: 4px;
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.45);
    background: rgba(120, 53, 15, 0.45);
    color: #fde68a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.current-tab-review-btn:hover,
.current-tab-review-btn:focus-visible {
    background: rgba(251, 191, 36, 0.28);
    color: #fff;
}

.current-tab-review-btn.hidden {
    display: none;
}

#review-guide-modal .review-guide-dialog {
    width: min(1180px, calc(100vw - 24px));
    max-width: none;
    height: min(860px, calc(100vh - 28px));
    display: flex;
    flex-direction: column;
}

.review-guide-header {
    align-items: flex-start;
    gap: 12px;
}

.review-guide-header h2 {
    margin: 0;
}

.review-guide-subtitle {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 0.82rem;
}

.review-guide-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.review-guide-browser {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 220px;
    color: #94a3b8;
    font-size: 0.72rem;
}

.review-guide-browser select {
    height: 32px;
    max-width: 280px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #0f172a;
    color: #f8fafc;
    padding: 0 8px;
}

.review-guide-browser.hidden {
    display: none;
}

.review-guide-json-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 16px 10px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.45);
}

.review-guide-json-panel.hidden {
    display: none;
}

.review-guide-json-panel p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.4;
}

#review-guide-json-text {
    width: 100%;
    min-height: 140px;
    resize: vertical;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.78rem;
    line-height: 1.4;
}

.review-guide-json-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.review-guide-json-actions .form-feedback {
    margin: 0;
}

.review-guide-body {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.review-guide-flow-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.review-guide-flow-head h3 {
    margin-bottom: 4px;
}

.review-guide-col {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.35);
    overflow: hidden;
}

.review-guide-col-head {
    padding: 10px 12px 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.review-guide-col-head h3 {
    margin: 0 0 6px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.review-guide-col-head p,
.review-guide-empty {
    margin: 0;
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.4;
}

.review-guide-col-head input {
    width: 100%;
}

.review-guide-card-list,
.review-guide-step-list,
.review-guide-flow-list {
    overflow: auto;
    min-height: 0;
    padding: 8px;
}

.review-guide-card {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    margin: 0 0 6px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: #e2e8f0;
    text-align: left;
    cursor: pointer;
}

.review-guide-card.is-selected {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(14, 116, 144, 0.18);
}

.review-guide-card.is-included .review-guide-card-name {
    color: #f8fafc;
}

.review-guide-card-check {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #0f172a;
    background: transparent;
}

.review-guide-card.is-included .review-guide-card-check {
    background: #fbbf24;
    border-color: #fbbf24;
}

.review-guide-card-name {
    min-width: 0;
    font-size: 0.84rem;
    line-height: 1.3;
}

.review-guide-card-count {
    min-width: 22px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: #fde68a;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

.review-guide-step-form {
    display: grid;
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr) auto;
    gap: 8px 10px;
    align-items: start;
    padding: 8px 12px 0;
}

.review-guide-title-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    font-size: 0.78rem;
    color: #94a3b8;
}

.review-guide-editor {
    min-height: 0;
    background: #0f172a;
    color: #e2e8f0;
}

.review-guide-editor .ql-toolbar {
    border-color: rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.8);
}

.review-guide-editor .ql-container {
    border-color: rgba(148, 163, 184, 0.25);
    min-height: 46px;
    font-size: 0.9rem;
}

.review-guide-editor .ql-editor {
    min-height: 46px;
    color: #e2e8f0;
}

.review-guide-editor .ql-stroke {
    stroke: #e2e8f0;
}

.review-guide-editor .ql-fill {
    fill: #e2e8f0;
}

.review-guide-editor .ql-picker {
    color: #e2e8f0;
}

.review-guide-step-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    margin: 18px 0 0;
}

.review-guide-step-form .form-feedback {
    grid-column: 1 / -1;
    margin: 0 0 6px;
}

.review-guide-step {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.review-guide-step h4 {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.3;
}

.review-guide-step-row-actions {
    display: flex;
    flex-shrink: 0;
    gap: 2px;
    margin: 0;
}

.review-guide-step-preview {
    margin-top: 6px;
    color: #cbd5e1;
    font-size: 0.8rem;
    max-height: 72px;
    overflow: hidden;
}

.review-guide-step-preview p {
    margin: 0 0 4px;
}

.review-guide-flow-list {
    list-style: none;
    margin: 0;
}

.review-flow-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    padding: 5px 6px;
    border-radius: 8px;
    background: rgba(120, 53, 15, 0.22);
    border: 1px solid rgba(251, 191, 36, 0.22);
    cursor: grab;
}

.review-flow-item.is-dragging {
    opacity: 0.45;
}

.review-flow-index {
    width: 22px;
    height: 22px;
    margin-top: 0;
    flex-shrink: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fbbf24;
    color: #1c1917;
    font-size: 0.72rem;
    font-weight: 800;
}

.review-flow-text {
    flex: 1;
    min-width: 0;
}

.review-flow-text em {
    display: block;
    font-style: normal;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.35;
    color: #cbd5e1;
    white-space: normal;
    overflow: visible;
}

#review-guide-step-modal.modal-overlay {
    z-index: 8200;
}

#review-guide-step-modal .review-guide-step-dialog {
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
}

#review-guide-step-modal .review-guide-step-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    overflow: auto;
}

#review-guide-step-modal .review-guide-editor .ql-container,
#review-guide-step-modal .review-guide-editor .ql-editor {
    min-height: 180px;
}

#review-guide-step-modal .review-guide-step-actions {
    flex-direction: row;
    justify-content: flex-end;
    margin: 4px 0 0;
}

.review-flow-group {
    list-style: none;
    margin: 22px 4px 8px;
    padding-top: 4px;
    color: #f8fafc;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
}

.review-flow-group:first-child {
    margin-top: 2px;
}

.review-flow-move {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 2px;
}

#review-guide-modal .review-guide-icon-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    border-radius: 6px;
}

.review-guide-icon-btn svg {
    display: block;
}

html,
.review-player-page {
    height: 100%;
}

.review-player-page {
    margin: 0;
    overflow: hidden;
    background: #020617;
    color: #e2e8f0;
    font-family: "Segoe UI", Inter, sans-serif;
}

.review-player-blocked {
    margin: 24px;
    color: #fde68a;
}

.review-player-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 6px 10px;
    background: #0f172a;
    border-bottom: 1px solid rgba(251, 191, 36, 0.28);
    user-select: none;
}

.review-player-drag {
    width: 28px;
    height: 32px;
    border: 0;
    background: transparent;
    cursor: grab;
}

.review-player-drag span {
    display: block;
    width: 4px;
    height: 16px;
    margin: 0 auto;
    border-radius: 2px;
    background: rgba(226, 232, 240, 0.45);
}

.review-player-bar-title {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.review-player-bar-title strong {
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-player-bar-title span {
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 700;
}

.review-player-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    font-size: 0.78rem;
}

.review-player-tool.review-player-icon {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.review-player-tool.review-player-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.review-player-tool,
.review-player-nav-btn {
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #1e293b;
    color: #e2e8f0;
    font-weight: 650;
    cursor: pointer;
}

.review-player-close {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #e2e8f0;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.review-player-shell {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    height: calc(100% - 48px);
}

.review-player-outline {
    overflow: auto;
    padding: 14px 12px 24px;
    background: #0b1220;
    border-right: 1px solid rgba(148, 163, 184, 0.16);
}

.review-player-demand {
    display: block;
    width: 100%;
    margin: 10px 0 4px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fde68a;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.review-player-demand.is-open {
    background: rgba(251, 191, 36, 0.12);
    color: #fff;
}

.review-player-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 23, 0.72);
}

.review-player-modal[hidden] {
    display: none;
}

.review-player-modal-card {
    width: min(720px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: #0f172a;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.review-player-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.review-player-modal-head h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #f8fafc;
}

.review-player-editor {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-player-modal-card label,
.review-player-editor label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #cbd5e1;
    font-size: 0.85rem;
}

.review-player-modal-card input,
.review-player-modal-card textarea,
.review-player-editor input,
.review-player-editor textarea {
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #0f172a;
    color: #f8fafc;
    padding: 8px 10px;
    font: inherit;
}

.review-player-modal-card textarea,
.review-player-editor textarea {
    min-height: 180px;
    resize: vertical;
}

.review-player-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.review-player-edit-feedback {
    margin: 0;
    color: #fde68a;
    min-height: 1.2em;
}

.review-player-jump {
    display: block;
    width: 100%;
    margin: 0 0 4px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #cbd5e1;
    text-align: left;
    font-size: 0.88rem;
    cursor: pointer;
}

.review-player-jump.is-current {
    background: rgba(251, 191, 36, 0.18);
    color: #fff;
}

.review-player-stage {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 28px 40px 18px;
}

.review-player-kicker {
    margin: 0 0 8px;
    color: #fbbf24;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.review-player-stage h1 {
    margin: 0 0 18px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
    color: #f8fafc;
}

.review-player-content {
    flex: 1;
    min-height: 0;
    overflow: auto;
    font-size: 1.15rem;
    line-height: 1.55;
    color: #e2e8f0;
}

.review-player-content p,
.review-player-content ul,
.review-player-content ol {
    margin: 0 0 12px;
}

.review-player-content a {
    color: #7dd3fc;
}

.review-player-content img {
    max-width: 100%;
    height: auto;
}

.review-player-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
}

.review-player-nav-btn {
    min-width: 140px;
    height: 44px;
    font-size: 1rem;
}

.review-player-nav-btn-next {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #1c1917;
}

.review-player-nav-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

@media (max-width: 980px) {
    #review-guide-modal .review-guide-dialog {
        height: auto;
        max-height: calc(100vh - 16px);
    }

    .review-guide-body {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .review-guide-col {
        min-height: 220px;
    }
}
