/*
 * Analyzer workspace preview
 *
 * This is an intentionally small presentation layer. It leaves the existing
 * form IDs, upload controls, result containers, and analysis scripts intact
 * while giving the Analyzer a consistent workspace shell.
 */

body.analyzer {
    --analyzer-ink: #17253b;
    --analyzer-muted: #667892;
    --analyzer-line: #dbe5f0;
    --analyzer-soft: #f6f9fc;
    --analyzer-blue: #2468d4;
    --analyzer-blue-soft: #eaf2ff;
    --analyzer-teal: #148f8b;
    --analyzer-purple: #8364d8;
    --analyzer-font-body: var(--clash-font-body, 14px);
    --analyzer-font-small: var(--clash-font-small, 12px);
    --analyzer-font-section: var(--clash-font-section, 16px);
    --analyzer-font-title: var(--clash-font-title, 24px);
    background: #f5f8fc;
    color: var(--analyzer-ink);
}

body.analyzer main {
    display: grid !important;
    grid-template-columns: 232px minmax(0, 1fr);
    align-items: start;
    gap: 26px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 24px 30px 52px;
}

body.analyzer .sidebar-wrapper {
    width: 100%;
    min-width: 0;
}

body.analyzer #leftMenu {
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}

body.analyzer #leftMenu::before {
    display: block;
    margin: 0 8px 11px;
    color: var(--analyzer-muted);
    content: "ANALYSIS TOOLS";
    font-size: var(--analyzer-font-small);
    font-weight: 800;
    letter-spacing: .12em;
}

body.analyzer #leftMenu ul {
    display: grid;
    gap: 8px;
}

body.analyzer #leftMenu li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    box-sizing: border-box;
    margin: 0;
    padding: 10px 11px !important;
    border: 1px solid #e1e9f2 !important;
    border-radius: 13px;
    background: #f8fafc;
    color: var(--analyzer-ink);
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.analyzer #leftMenu li:last-child {
    border-bottom: 1px solid #e1e9f2 !important;
}

body.analyzer #leftMenu li:hover {
    border-color: #bdd3ed !important;
    background: #f1f6fc;
    color: var(--analyzer-ink);
    transform: translateY(-1px);
}

body.analyzer #leftMenu li.selected-menu-item,
body.analyzer #leftMenu li.selected,
body.analyzer #leftMenu li.current {
    border-color: #79aaf1 !important;
    background: var(--analyzer-blue-soft) !important;
    color: #175bb8 !important;
    box-shadow: 0 5px 16px rgba(36, 104, 212, .11);
    font-weight: 400;
}

body.analyzer .analyzer-tool-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--analyzer-blue);
}

body.analyzer .analyzer-tool-icon svg {
    display: block;
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

body.analyzer .analyzer-tool-icon--mirna { color: var(--analyzer-purple); }
body.analyzer .analyzer-tool-icon--rna { color: var(--analyzer-teal); }
body.analyzer .analyzer-tool-icon--curve { color: #d47b2c; }
body.analyzer .analyzer-tool-icon--status { color: #60758f; }

body.analyzer .analyzer-clash-peak-base {
    stroke: #b8c8da;
    stroke-width: 1.1;
}

body.analyzer .analyzer-clash-peak-area {
    fill: #dce9ff;
    stroke: var(--analyzer-blue);
    stroke-width: 1.5;
}

body.analyzer .analyzer-clash-peak-ray {
    fill: none;
    stroke: #4f89df;
    stroke-linecap: butt;
    stroke-width: .75;
}

body.analyzer .analyzer-tool-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

body.analyzer .analyzer-tool-copy strong {
    overflow: hidden;
    color: currentColor;
    font-size: var(--analyzer-font-body);
    font-weight: 750;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.analyzer .analyzer-tool-copy small {
    overflow: hidden;
    color: var(--analyzer-muted);
    font-size: var(--analyzer-font-small);
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.analyzer #leftMenu li.selected-menu-item .analyzer-tool-copy small,
body.analyzer #leftMenu li.selected .analyzer-tool-copy small {
    color: #4d6b96;
}

body.analyzer .analyzer-tool-arrow {
    color: #9aabc0;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    text-align: right;
}

body.analyzer #leftMenu li.selected-menu-item .analyzer-tool-arrow,
body.analyzer #leftMenu li.selected .analyzer-tool-arrow {
    color: var(--analyzer-blue);
}

body.analyzer .help-section {
    margin-top: 20px;
    padding: 16px 8px 0;
    border-top: 1px solid #e5ecf4;
}

body.analyzer .help-title {
    margin: 0 0 9px;
    color: var(--analyzer-muted);
    font-size: var(--analyzer-font-small);
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.analyzer .help-list {
    display: grid;
    gap: 7px;
}

body.analyzer .help-list li {
    margin: 0;
    padding: 0;
}

body.analyzer .help-list a {
    color: #276ac4;
    font-size: var(--analyzer-font-body);
    line-height: 1.35;
    text-decoration: none;
}

body.analyzer .help-list a:hover,
body.analyzer .help-list a:focus-visible {
    text-decoration: underline;
}

body.analyzer #formAndImageContainer {
    grid-column: 2;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    gap: 18px !important;
    box-sizing: border-box;
}

body.analyzer #formAndImageContainer.default-layout {
    display: block !important;
}

body.analyzer #formAndImageContainer:not(.default-layout) {
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
    align-items: start;
}

body.analyzer #formSectionContainer,
body.analyzer #imageContainer {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    box-sizing: border-box;
}

body.analyzer #formSectionContainer {
    flex: none !important;
}

body.analyzer #imageContainer {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 !important;
}

body.analyzer #formAndImageContainer.default-layout #imageContainer {
    display: block;
}

body.analyzer #formAndImageContainer.default-layout #default_imageContainer {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
}

body.analyzer .analyzer-heading-kicker {
    color: #57718f;
    font-size: var(--analyzer-font-small);
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1.2;
    text-transform: uppercase;
}

body.analyzer .analyzer-workspace-heading h1 {
    margin: 8px 0 8px;
    color: var(--analyzer-ink);
    font-size: var(--analyzer-font-title);
    font-weight: 780;
    letter-spacing: -.025em;
    line-height: 1.1;
}

body.analyzer .analyzer-workspace-heading > p {
    max-width: 650px;
    margin: 0;
    color: var(--analyzer-muted);
    font-size: var(--analyzer-font-body);
    line-height: 1.55;
}

body.analyzer .form-section:not(.job-status-panel) {
    box-sizing: border-box;
    padding: 0 24px 24px;
    border: 1px solid #dbe5f0;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(32, 66, 103, .07);
}

body.analyzer .analyzer-workspace-heading {
    margin: 0 -24px 22px;
    padding: 23px 24px 0;
    border-bottom: 0;
}

body.analyzer .analyzer-workspace-heading h1 {
    font-size: var(--analyzer-font-title);
}

body.analyzer .analyzer-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 22px 0 0;
    padding: 0 0 17px;
    list-style: none;
}

body.analyzer .analyzer-stepper li {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #91a1b5;
    font-size: var(--analyzer-font-small);
    font-weight: 650;
    white-space: nowrap;
}

body.analyzer .analyzer-stepper li:not(:last-child)::after {
    height: 1px;
    flex: 1 1 auto;
    margin: 0 7px;
    background: #dce6f1;
    content: "";
}

body.analyzer .analyzer-stepper li span {
    display: inline-flex;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #dce6f1;
    border-radius: 50%;
    background: #f7f9fc;
    color: #8a9bb0;
    font-size: var(--analyzer-font-small);
}

body.analyzer .analyzer-stepper li.is-active {
    color: var(--analyzer-blue);
}

body.analyzer .analyzer-stepper li.is-complete {
    color: #5c7899;
}

body.analyzer .analyzer-stepper li.is-complete .analyzer-step-number {
    border-color: #b9d1f6;
    background: #eef4ff;
    color: var(--analyzer-blue);
}

body.analyzer .analyzer-stepper li.is-active span {
    border-color: var(--analyzer-blue);
    background: var(--analyzer-blue);
    color: #ffffff;
}

body.analyzer .form-section form {
    color: var(--analyzer-ink);
}

body.analyzer .form-section form span[style*="color: red"] {
    color: #70829a !important;
}

body.analyzer .form-section input[type="text"],
body.analyzer .form-section input[type="email"],
body.analyzer .form-section input[type="number"],
body.analyzer .form-section select,
body.analyzer .form-section textarea {
    box-sizing: border-box;
    border: 1px solid #cbd9e8;
    border-radius: 9px;
    background: #ffffff;
    color: var(--analyzer-ink);
    font-size: 14px;
}

body.analyzer .form-section input[type="text"]:focus,
body.analyzer .form-section input[type="email"]:focus,
body.analyzer .form-section input[type="number"]:focus,
body.analyzer .form-section select:focus,
body.analyzer .form-section textarea:focus {
    border-color: #6fa3ed;
    box-shadow: 0 0 0 3px rgba(36, 104, 212, .12);
    outline: none;
}

body.analyzer .form-section button[type="submit"],
body.analyzer .form-section .custom-file-input button,
body.analyzer .form-section button[id*="Submit"],
body.analyzer .form-section button[id*="submit"] {
    border: 0;
    border-radius: 9px;
    background: var(--analyzer-blue);
    box-shadow: 0 5px 12px rgba(36, 104, 212, .18);
    color: #ffffff;
    font-weight: 700;
}

body.analyzer .form-section button[type="submit"]:hover,
body.analyzer .form-section .custom-file-input button:hover,
body.analyzer .form-section button[id*="Submit"]:hover,
body.analyzer .form-section button[id*="submit"]:hover {
    background: #185bbd;
}

body.analyzer .template-download a {
    border: 1px solid #cfe0f5;
    background: #edf5ff;
    color: #2465b9;
}

body.analyzer #imageContainer .image-section:not(#default_imageContainer) {
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    border: 1px solid #dbe5f0;
    border-radius: 17px;
    background: #f8fbfe;
}

body.analyzer .image-section img {
    width: 100%;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
    border-radius: 11px;
}

body.analyzer #clashV2Beta_imageContainer .clash-v2-report-preview {
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    border-color: #dbe5f0;
    border-radius: 12px;
}

@media (min-width: 981px) {
    body.analyzer #clashV2Beta_uploadForm section {
        grid-template-columns: 170px minmax(0, 1fr) !important;
        column-gap: 13px;
        row-gap: 6px;
    }

    body.analyzer #clashV2Beta_uploadForm #clashV2Beta_manualAdapterSettings section {
        grid-template-columns: 170px minmax(0, 1fr) !important;
    }

    body.analyzer #clashV2Beta_uploadForm .analyzer-umi-hint {
        margin-left: 183px;
    }

    body.analyzer #clashV2Beta_uploadForm .inline-choice {
        min-width: 0;
        align-items: center;
        gap: 7px 11px;
    }

    body.analyzer #clashV2Beta_uploadForm .inline-choice label {
        display: inline-flex;
        width: auto;
        align-items: center;
        margin: 0;
        white-space: nowrap;
    }
}

body.analyzer .job-status-panel {
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.analyzer .job-status-panel .analyzer-workspace-heading {
    margin: 0 0 22px;
    padding: 0 0 16px;
    border-bottom: 1px solid #e6edf5;
}

body.analyzer .job-status-panel h2 {
    border-bottom: 0;
    color: var(--analyzer-ink);
}

body.analyzer .job-status-content button {
    margin-left: 8px;
    border-radius: 9px;
    background: var(--analyzer-blue);
}

body.analyzer #formAndImageContainer:has(#jobStatus.active) {
    grid-template-columns: minmax(0, 760px) minmax(0, 1fr);
}

body.analyzer #formAndImageContainer:has(#jobStatus.active) #formSectionContainer {
    border-right: 0;
}

body.analyzer #formAndImageContainer:has(#jobStatus.active) #imageContainer {
    display: none;
}

@media (max-width: 980px) {
    body.analyzer main {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 22px 42px;
    }

    body.analyzer #formAndImageContainer {
        grid-column: 1;
    }

    body.analyzer #leftMenu ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.analyzer #formAndImageContainer:not(.default-layout) {
        display: flex !important;
        flex-direction: column;
    }

    body.analyzer #formAndImageContainer:not(.default-layout) #imageContainer {
        order: 2;
    }
}

@media (max-width: 620px) {
    body.analyzer main {
        padding: 16px 14px 34px;
    }

    body.analyzer #leftMenu ul {
        grid-template-columns: 1fr;
    }

    body.analyzer .form-section:not(.job-status-panel),
    body.analyzer .job-status-panel {
        padding-left: 17px;
        padding-right: 17px;
    }

    body.analyzer .analyzer-workspace-heading {
        margin-left: -17px;
        margin-right: -17px;
        padding-left: 17px;
        padding-right: 17px;
    }

    body.analyzer .analyzer-stepper li {
        font-size: 0;
    }

    body.analyzer .analyzer-stepper li span {
        font-size: 10px;
    }
}

/* Database-style three-step Analyzer flow */
body.analyzer #analyzerWorkspace {
    grid-column: 1;
    display: grid;
    gap: 18px;
    min-width: 0;
    align-content: start;
}

body.analyzer main {
    grid-template-columns: minmax(0, 1fr);
}

body.analyzer .sidebar-wrapper {
    display: none !important;
}

body.analyzer #formAndImageContainer {
    grid-column: 1;
}

body.analyzer #formAndImageContainer.analyzer-step-hidden {
    display: none !important;
}

body.analyzer .analyzer-wizard-progress {
    display: grid;
    grid-template-columns: auto minmax(40px, 1fr) auto minmax(40px, 1fr) auto;
    align-items: center;
    box-sizing: border-box;
    width: auto;
    max-width: 760px;
    min-height: 0;
    margin: 0 38px 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.analyzer .analyzer-wizard-step {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #93a2b6;
    font: inherit;
    text-align: left;
}

body.analyzer .analyzer-wizard-step:not(:disabled) {
    cursor: pointer;
}

body.analyzer .analyzer-wizard-step:not(:disabled):hover {
    color: var(--analyzer-ink);
}

body.analyzer .analyzer-wizard-step:focus-visible {
    outline: 3px solid rgba(36, 104, 212, .2);
    outline-offset: 2px;
}

body.analyzer .analyzer-wizard-number {
    display: inline-flex;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #d8e2ee;
    border-radius: 50%;
    background: #ffffff;
    color: #8a9bb0;
    font-size: 10px;
    font-weight: 750;
}

body.analyzer .analyzer-wizard-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

body.analyzer .analyzer-wizard-copy strong {
    overflow: hidden;
    color: currentColor;
    font-size: .78rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.analyzer .analyzer-wizard-copy small {
    display: none;
}

body.analyzer .analyzer-wizard-step.is-active,
body.analyzer .analyzer-wizard-step.is-complete {
    color: var(--analyzer-blue);
}

body.analyzer .analyzer-wizard-step.is-active .analyzer-wizard-number,
body.analyzer .analyzer-wizard-step.is-complete .analyzer-wizard-number {
    border-color: var(--analyzer-blue);
    background: var(--analyzer-blue);
    color: #ffffff;
}

body.analyzer .analyzer-wizard-line {
    height: 1px;
    background: #dbe5f0;
}

body.analyzer .analyzer-selection-context {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-height: 28px;
    box-sizing: border-box;
    padding: 0 3px;
    color: var(--analyzer-muted);
    font-size: var(--analyzer-font-body);
}

body.analyzer .analyzer-selection-context[hidden] {
    display: none !important;
}

body.analyzer .analyzer-selection-context strong {
    color: var(--analyzer-ink);
    font-weight: 750;
}

body.analyzer #analyzerChangeTool {
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--analyzer-blue);
    font: inherit;
    font-size: var(--analyzer-font-small);
    font-weight: 700;
    cursor: pointer;
}

body.analyzer #analyzerChangeTool:hover {
    text-decoration: underline;
}

body.analyzer .analyzer-selection-panel,
body.analyzer .analyzer-review-panel {
    display: block !important;
    min-height: 310px;
    box-sizing: border-box;
    padding: 34px 38px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.analyzer .analyzer-selection-panel[hidden],
body.analyzer .analyzer-review-panel[hidden] {
    display: none !important;
}

body.analyzer .analyzer-selection-panel h1,
body.analyzer .analyzer-review-panel h1 {
    margin: 9px 0 8px;
    color: var(--analyzer-ink);
    font-size: var(--analyzer-font-title);
    font-weight: 780;
    letter-spacing: -.03em;
    line-height: 1.1;
}

body.analyzer #analyzerSelectionPanel h1 {
    margin-top: 0;
}

body.analyzer #analyzerSelectionPanel {
    min-height: 0;
    padding-top: 0;
}

body.analyzer .analyzer-selection-panel > p,
body.analyzer .analyzer-review-panel > p {
    margin: 0;
    color: var(--analyzer-muted);
    font-size: var(--analyzer-font-body);
    line-height: 1.5;
}

body.analyzer .analyzer-tool-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    max-width: 1280px;
    margin-top: 17px;
}

body.analyzer .analyzer-tool-choice {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    box-sizing: border-box;
    padding: 10px 11px 10px 14px;
    border: 1px solid #dbe5f0;
    border-radius: 13px;
    background: #ffffff;
    color: var(--analyzer-ink);
    font: inherit;
    position: relative;
    text-align: left;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.analyzer .analyzer-tool-choice::before {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: -1px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--analyzer-blue);
    content: "";
}

body.analyzer .analyzer-tool-choice--mirna::before { background: var(--analyzer-purple); }
body.analyzer .analyzer-tool-choice--rna::before { background: var(--analyzer-teal); }
body.analyzer .analyzer-tool-choice--curve::before { background: #d4594c; }

body.analyzer .analyzer-tool-choice:hover,
body.analyzer .analyzer-tool-choice:focus-visible {
    border-color: #9db9e3;
    box-shadow: 0 6px 16px rgba(36, 104, 212, .12);
    outline: none;
    transform: translateX(2px);
}

body.analyzer .analyzer-choice-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 0;
    border-radius: 9px;
    background: #edf4ff;
    color: var(--analyzer-blue);
}

body.analyzer .analyzer-choice-icon svg {
    display: block;
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

body.analyzer .analyzer-tool-choice--mirna .analyzer-choice-icon {
    background: #f4edfb;
    color: var(--analyzer-purple);
}

body.analyzer .analyzer-tool-choice--rna .analyzer-choice-icon {
    background: #eaf8f5;
    color: var(--analyzer-teal);
}

body.analyzer .analyzer-tool-choice--curve .analyzer-choice-icon {
    background: #fff0ee;
    color: #d4594c;
}

body.analyzer .analyzer-curve-axis {
    fill: none;
    stroke: #27384c;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.analyzer .analyzer-curve-line {
    fill: none;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.analyzer .analyzer-curve-line--black { stroke: #263238; }
body.analyzer .analyzer-curve-line--green { stroke: #15966a; }
body.analyzer .analyzer-curve-line--blue { stroke: #2168d8; }
body.analyzer .analyzer-curve-line--red { stroke: #e5484d; }

body.analyzer .analyzer-choice-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

body.analyzer .analyzer-choice-copy strong {
    overflow: hidden;
    color: currentColor;
    font-size: var(--analyzer-font-body);
    font-weight: 750;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.analyzer .analyzer-choice-copy small {
    overflow: hidden;
    color: var(--analyzer-muted);
    font-size: var(--analyzer-font-small);
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.analyzer .analyzer-choice-action {
    display: inline-flex;
    min-width: 72px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f2f6fb;
    color: #315d9b;
    font-size: .65rem;
    font-weight: 760;
    transition: background-color .18s ease, color .18s ease;
}

body.analyzer .analyzer-tool-choice:hover .analyzer-choice-action,
body.analyzer .analyzer-tool-choice:focus-visible .analyzer-choice-action {
    background: var(--analyzer-blue);
    color: #ffffff;
}

body.analyzer .analyzer-utility-link {
    margin-top: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #58718f;
    font: inherit;
    font-size: var(--analyzer-font-body);
    font-weight: 700;
    cursor: pointer;
}

body.analyzer .analyzer-utility-link::before {
    margin-right: 6px;
    color: #8aa1b9;
    content: "↗";
}

body.analyzer .analyzer-utility-link:hover {
    color: var(--analyzer-blue);
    text-decoration: underline;
}

body.analyzer .analyzer-review-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

body.analyzer .analyzer-review-summary > div {
    display: grid;
    gap: 6px;
    padding: 16px 17px;
    border: 1px solid #dbe5f0;
    border-radius: 12px;
    background: #f8fbfe;
}

body.analyzer .analyzer-review-summary small {
    color: var(--analyzer-muted);
    font-size: var(--analyzer-font-small);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.analyzer .analyzer-review-summary strong {
    color: var(--analyzer-ink);
    font-size: var(--analyzer-font-body);
}

body.analyzer .analyzer-review-note {
    margin-top: 16px !important;
    color: #6e8199 !important;
    font-size: 12px !important;
}

body.analyzer .analyzer-review-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

body.analyzer .analyzer-workspace-help {
    margin-top: 2px;
    padding: 16px 2px 0;
    border-top: 1px solid #e5ecf4;
}

body.analyzer .analyzer-workspace-help .help-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

body.analyzer .analyzer-secondary-button,
body.analyzer .analyzer-primary-button {
    min-height: 38px;
    padding: 0 17px;
    border-radius: 9px;
    font: inherit;
    font-size: var(--analyzer-font-body);
    font-weight: 700;
    cursor: pointer;
}

body.analyzer .analyzer-secondary-button {
    border: 1px solid #cbd9e8;
    background: #ffffff;
    color: #55708e;
}

body.analyzer .analyzer-secondary-button:hover {
    border-color: #8bb5e8;
    background: #f4f8fd;
}

body.analyzer .analyzer-primary-button {
    border: 1px solid var(--analyzer-blue);
    background: var(--analyzer-blue);
    box-shadow: 0 5px 12px rgba(36, 104, 212, .18);
    color: #ffffff;
}

body.analyzer .analyzer-primary-button:hover {
    background: #185bbd;
}

@media (max-width: 980px) {
    body.analyzer .analyzer-wizard-progress {
        grid-template-columns: auto minmax(28px, 1fr) auto minmax(28px, 1fr) auto;
        margin-right: 26px;
        margin-left: 26px;
    }

    body.analyzer .analyzer-wizard-step {
        gap: 6px;
        padding: 4px 2px;
    }

    body.analyzer .analyzer-selection-panel,
    body.analyzer .analyzer-review-panel {
        padding: 27px 26px;
    }

    body.analyzer .analyzer-tool-choice-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    body.analyzer .analyzer-wizard-copy strong {
        font-size: 10px;
    }

    body.analyzer .analyzer-wizard-number {
        width: 23px;
        height: 23px;
        flex-basis: 23px;
        font-size: 10px;
    }

    body.analyzer .analyzer-wizard-progress {
        margin-right: 18px;
        margin-left: 18px;
    }

    body.analyzer .analyzer-wizard-copy strong {
        display: none;
    }

    body.analyzer .analyzer-choice-action {
        min-width: 0;
        padding-right: 9px;
        padding-left: 9px;
    }

    body.analyzer .analyzer-selection-panel,
    body.analyzer .analyzer-review-panel {
        padding: 24px 18px;
    }

    body.analyzer .analyzer-review-summary {
        grid-template-columns: 1fr;
    }
}

/* Configuration workspace: open layout (selected C variant). */
body.analyzer #formAndImageContainer:not(.default-layout) #formSectionContainer {
    border-right: 1px solid #e5ebf3;
    padding-right: 0;
}

body.analyzer #formAndImageContainer:not(.default-layout) .form-section:not(.job-status-panel) {
    padding-left: 0;
    padding-right: 26px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.analyzer #formAndImageContainer:not(.default-layout) .form-section:not(.job-status-panel) .analyzer-workspace-heading {
    margin-left: 0;
    margin-right: 0;
}

body.analyzer #formAndImageContainer:not(.default-layout) #imageContainer .image-section:not(#default_imageContainer) {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 980px) {
    body.analyzer #formAndImageContainer:not(.default-layout) #formSectionContainer {
        border-right: 0;
        padding-right: 0;
    }

    body.analyzer #formAndImageContainer:not(.default-layout) .form-section:not(.job-status-panel) {
        padding-right: 0;
    }
}
