/*
 * PR Studio shared form styling contract.
 *
 * This file is intentionally separate from the larger admin/front-end layout
 * stylesheet so automated QA can verify the reusable form system directly.
 */
/* v0.5.151 PR Studio global visual-language tokens.
 * Semantic hues are reserved for workflow meaning; explanatory content uses neutrals. */
:where(.prstudio-shortcode,.prstudio-admin-wrap,.prstudio-dialog,.prstudio-company-builder){
    --prstudio-required:#b77900;
    --prstudio-required-bg:#fff4ce;
    --prstudio-optional:#2271b1;
    --prstudio-optional-bg:#eef6ff;
    --prstudio-passed:#1a7f37;
    --prstudio-passed-bg:#edf8ef;
    --prstudio-error:#b42318;
    --prstudio-error-bg:#fff1f0;
    --prstudio-neutral-border:#c3c4c7;
    --prstudio-neutral-strong:#646970;
    --prstudio-neutral-flag-bg:#f5f6f7;
    --prstudio-neutral-reason-bg:#eceff1;
    --prstudio-section-bg:#f6f7f7;
}
.prstudio-section-stack{display:grid;gap:20px;margin:20px 0}
.prstudio-section-panel{box-sizing:border-box;margin:0;padding:18px;border:1px solid var(--prstudio-neutral-border,#c3c4c7);border-radius:6px;background:var(--prstudio-section-bg,#f6f7f7)}
.prstudio-section-panel> :first-child{margin-top:0}
.prstudio-section-panel> :last-child{margin-bottom:0}

.prstudio-form-section {
    margin: 22px 0;
    padding: 20px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.prstudio-form-section legend {
    padding: 0 8px;
    font-size: 1.2em;
    font-weight: 600;
}

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

.prstudio-field-wide {
    grid-column: 1 / -1;
}

.prstudio-field label {
    display: block;
    margin-bottom: 6px;
}

.prstudio-field input[type="text"],
.prstudio-field input[type="email"],
.prstudio-field input[type="url"],
.prstudio-field input[type="tel"],
.prstudio-field input[type="number"],
.prstudio-field input[type="search"],
.prstudio-field input[type="password"],
.prstudio-field input[type="date"],
.prstudio-field select,
.prstudio-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    color: #2c3338;
    font: inherit;
}

.prstudio-field input[type="text"],
.prstudio-field input[type="email"],
.prstudio-field input[type="url"],
.prstudio-field input[type="tel"],
.prstudio-field input[type="number"],
.prstudio-field input[type="search"],
.prstudio-field input[type="password"],
.prstudio-field input[type="date"],
.prstudio-field select {
    min-height: 42px;
}

.prstudio-field input:focus,
.prstudio-field select:focus,
.prstudio-field textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

.prstudio-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 10px 0;
}

.prstudio-choice {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    margin: 0 !important;
}

.prstudio-required {
    color: #d63638;
}

.prstudio-field-error input,
.prstudio-field-error select,
.prstudio-field-error textarea {
    border-color: #d63638;
}

.prstudio-field-message {
    margin: 5px 0 0;
    color: #b32d2e;
}

.prstudio-field-warning input,
.prstudio-field-warning select,
.prstudio-field-warning textarea {
    border-color: #dba617 !important;
}

.prstudio-field-warning-message {
    color: #8a5a00;
}

.prstudio-field-help {
    margin: 7px 0 0;
    color: #50575e;
    font-size: .94em;
    line-height: 1.5;
}

.prstudio-live-validation {
    min-height: 1.35em;
    margin: 5px 0 0;
    color: #50575e;
    font-size: .92em;
}

.prstudio-live-validation:empty {
    min-height: 0;
    margin: 0;
}

.prstudio-live-validation-error {
    color: #b32d2e;
    font-weight: 600;
}

.prstudio-field-live-error input[type="url"] {
    border-color: #d63638;
    box-shadow: 0 0 0 1px #d63638;
}

.prstudio-word-count {
    white-space: nowrap;
    font-weight: 600;
}

.prstudio-conditional-field[hidden] {
    display: none !important;
}

.prstudio-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 22px 0;
}

@media (max-width: 760px) {
    .prstudio-form-grid {
        grid-template-columns: 1fr;
    }

    .prstudio-field-wide {
        grid-column: auto;
    }
}

/* v0.4.8 Press Release Builder usability system */
.prstudio-field-importance,
.prstudio-label-word-range {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.78em;
    font-weight: 600;
    line-height: 1.4;
    vertical-align: middle;
}
.prstudio-field-importance {
    padding: 0.1rem 0.45rem;
    border: 1px solid currentColor;
    border-radius: 999px;
}
.prstudio-importance-required { color: #614200; background: var(--prstudio-required-bg,#fff4ce); border-color: var(--prstudio-required,#b77900); }
.prstudio-importance-recommended { color: #0a4b78; background: var(--prstudio-optional-bg,#eef6ff); border-color: var(--prstudio-optional,#2271b1); }
.prstudio-importance-optional { color: #0a4b78; background: var(--prstudio-optional-bg,#eef6ff); border-color: var(--prstudio-optional,#2271b1); }
.prstudio-importance-decision { color: #614200; background: var(--prstudio-required-bg,#fff4ce); border-color: var(--prstudio-required,#b77900); }
.prstudio-requirement-badge { white-space: normal; text-align: center; }
.prstudio-label-word-range { color: #5f6368; }
.prstudio-collapsible-section,
.prstudio-inline-details {
    margin: 1.25rem 0;
    padding: 1rem 1.15rem;
    border: 1px solid #c8d0d9;
    border-radius: 6px;
    background: #fff;
}
.prstudio-collapsible-section > summary,
.prstudio-inline-details > summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}
.prstudio-collapsible-section > summary span,
.prstudio-inline-details > summary span {
    color: #5f6368;
    font-size: 0.9rem;
}
.prstudio-inline-details {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}
.prstudio-quote-repeater,
.prstudio-quote-row {
    width: 100%;
}
.prstudio-quote-row {
    box-sizing: border-box;
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid #c8d0d9;
    border-radius: 6px;
    background: #fff;
}
.prstudio-quote-row-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.prstudio-link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #315c8c;
    cursor: pointer;
    text-decoration: underline;
}
.prstudio-validation-links {
    margin: 0.5rem 0 0 1.25rem;
}
.prstudio-validation-links a {
    text-decoration: underline;
}

/* v0.5.0 AI generation and immutable-version interface */
.prstudio-generation-panel,.prstudio-current-version{margin-top:2rem;padding:1.5rem;border:1px solid #d9e1ea;border-radius:10px;background:#fff}
.prstudio-stage-list{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.5rem;list-style:none;margin:1.25rem 0;padding:0}
.prstudio-stage-list li{padding:.75rem .5rem;border:1px solid #d9e1ea;border-radius:6px;text-align:center;font-size:.9rem}
.prstudio-stage-complete{background:#f1f7f3}.prstudio-stage-current{background:#eef5ff;border-color:#6f9bd1!important;font-weight:700}.prstudio-stage-pending{opacity:.65}
.prstudio-generation-message{font-size:1.05rem;font-weight:600}.prstudio-readiness-list{margin-left:1.25rem}.prstudio-readiness-blocked{border-left:4px solid #b84a4a;padding-left:1rem}.prstudio-readiness-ready{border-left:4px solid #43865b;padding-left:1rem}
.prstudio-generated-release{max-width:850px;margin:1.5rem auto;padding:1.5rem;border:1px solid #e1e5e9;background:#fff}.prstudio-release-subheadline{font-size:1.1rem}.prstudio-generated-release blockquote{border-left:4px solid #ccd6e0;margin:1.25rem 0;padding-left:1rem}
.prstudio-review-note{margin:.75rem 0;padding:1rem;border-left:4px solid #75879a;background:#f7f9fb}.prstudio-note-critical,.prstudio-note-error{border-left-color:#b52f2f}.prstudio-note-warning{border-left-color:#b87918}
.prstudio-ai-editor-actions,.prstudio-eeat-actions,.prstudio-version-history{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #d9e1ea}.prstudio-ai-candidate{margin-top:1rem;padding:1rem;border:1px solid #b8c8d8;background:#f6f9fc}.prstudio-is-processing{opacity:.92}
@media(max-width:800px){.prstudio-stage-list{grid-template-columns:1fr 1fr}.prstudio-stage-list li{text-align:left}}

/* v0.5.4 quote/testimonial certification and photo controls */
.prstudio-quote-photo-field {
    padding: 1rem;
    border: 1px solid #d7dee6;
    border-radius: 6px;
    background: #f8fafc;
}
.prstudio-quote-photo-preview {
    margin: 0.5rem 0 0.75rem;
}
.prstudio-quote-photo-preview img {
    display: block;
    width: 160px;
    height: 160px;
    max-width: 100%;
    object-fit: cover;
    border: 1px solid #c8d0d9;
    border-radius: 6px;
}
.prstudio-real-person-certification {
    padding: 1rem;
    border-left: 4px solid #315c8c;
    background: #f5f8fc;
}

/* v0.5.5 rich-text and inline field editor contract */
.prstudio-field .wp-editor-wrap { width: 100%; }
.prstudio-inline-action-status { min-height: 1.4em; }

/* v0.5.5 lightweight link-enabled field editor */
.prstudio-lightweight-editor {
    width: 100%;
}
.prstudio-lightweight-editor-toolbar {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
}
.prstudio-lightweight-editor-surface {
    box-sizing: border-box;
    width: 100%;
    min-height: calc(4.5em + 22px);
    padding: 10px 12px;
    overflow: auto;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    font-family: inherit;
    line-height: 1.5;
}
.prstudio-lightweight-editor-surface:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

/* v0.5.7 focused validation workflow and word-range feedback */
.prstudio-validation-focus-mode .prstudio-validation-hidden-section,
.prstudio-validation-focus-mode .prstudio-validation-hidden-field {
    display: none !important;
}
.prstudio-validation-focus-mode .prstudio-validation-focus-section,
.prstudio-validation-focus-mode .prstudio-validation-focus-field {
    display: block;
}
.prstudio-word-count-outside-range {
    font-weight: 700;
    text-decoration: underline;
}
.prstudio-top-validation-notice .prstudio-validation-links,
.prstudio-validation-focus-help {
    scroll-margin-top: 24px;
}

/* v0.5.17 instructions and durable generation progress */
.prstudio-release-instructions{margin-bottom:1.5rem;padding:1.25rem;border:1px solid #d9e1ea;border-radius:10px;background:#fff}
.prstudio-release-instructions .prstudio-builder-header{align-items:flex-start;margin-bottom:.75rem}
.prstudio-release-instructions [hidden]{display:none!important}
.prstudio-release-instructions p:last-child{margin-bottom:0}
.prstudio-generation-activity{display:flex;align-items:flex-start;gap:.8rem;margin:1rem 0}
.prstudio-generation-spinner{display:inline-block;width:1.4rem;height:1.4rem;flex:0 0 1.4rem;border:3px solid #d9e1ea;border-top-color:#2767a5;border-radius:50%;animation:prstudio-generation-spin .85s linear infinite}
.prstudio-generation-meta{margin:.15rem 0 0;color:#596575;font-size:.9rem}
.prstudio-generation-activity .prstudio-generation-message{margin:0}
.prstudio-is-processing .prstudio-generation-progress{position:relative}
@keyframes prstudio-generation-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.prstudio-generation-spinner{animation-duration:2s}}

/* v0.5.20 source-grounded assisted editing workspace */
.prstudio-release-editing-workspace{display:grid;gap:1.25rem}
.prstudio-working-release-preview{min-width:0;border:0;background:transparent;padding:0}
.prstudio-working-preview-intro{margin:0 0 .85rem;padding:0;border:0;background:transparent}
.prstudio-working-preview-intro .prstudio-builder-header{margin:0;padding:0;border:0;background:transparent}
.prstudio-working-release-preview .prstudio-generated-release{max-width:820px}
.prstudio-editing-instructions{padding:1rem 1.25rem;border:1px solid #d9e1ea;background:#f7f9fb;border-radius:6px}
.prstudio-editing-instructions h3{margin-top:0}
.prstudio-editing-instructions ol{margin-bottom:0}
.prstudio-editing-block{scroll-margin-top:1.5rem}
.prstudio-editing-block-focused{outline:3px solid rgba(39,103,165,.2);border-color:#2767a5}
.prstudio-option-tabs{display:flex;flex-wrap:wrap;gap:.4rem;margin:1rem 0 0;border-bottom:1px solid #c9d3dd}
.prstudio-option-tab{appearance:none;margin:0 0 -1px;padding:.65rem .9rem;border:1px solid #c9d3dd;border-bottom-color:#c9d3dd;border-radius:5px 5px 0 0;background:#eef3f7;color:#1d2327;cursor:pointer;font:inherit;font-weight:600}
.prstudio-option-tab.is-active{background:#fff;border-bottom-color:#fff;color:#174f84}
.prstudio-option-tab:focus{outline:2px solid #2767a5;outline-offset:2px}
.prstudio-option-panel{padding:1rem;border:1px solid #c9d3dd;border-top:0;background:#fff}
.prstudio-option-panel[hidden]{display:none!important}
.prstudio-option-panel blockquote{margin:0 0 1rem;padding-left:1rem;border-left:4px solid #75879a}
.prstudio-create-improvement{margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid #d9e1ea}
.prstudio-create-improvement h4{margin-top:0}
.prstudio-manual-edit{margin-top:1rem}
.prstudio-manual-edit summary{cursor:pointer;font-weight:600}
.prstudio-manual-edit [data-prstudio-manual-form]{display:grid;gap:.85rem;margin-top:1rem}
.prstudio-manual-edit label{display:grid;gap:.35rem}
.prstudio-manual-edit input,.prstudio-manual-edit textarea{width:100%}
.prstudio-guidance-over-limit{color:#b32d2e;font-weight:700}
.prstudio-complete-improvement{border:0;border-left:4px solid #2767a5;border-radius:0;padding-left:12px;margin:16px 0}
.prstudio-editing-finalize{position:static;z-index:auto;box-shadow:none}
.prstudio-note-key{display:block;padding:.75rem;border-left:4px solid #75879a;background:#f7f9fb}
.prstudio-note-key.prstudio-note-critical{border-left-color:#b52f2f}
.prstudio-note-key.prstudio-note-warning{border-left-color:#b87918}
.prstudio-note-key.prstudio-note-info{border-left-color:#75879a}
.prstudio-review-note-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
.prstudio-review-note-heading>div{display:flex;flex-wrap:wrap;gap:.4rem}
.prstudio-note-severity,.prstudio-note-category,.prstudio-note-section{display:inline-block;padding:.2rem .45rem;border-radius:3px;background:#e8eef4;font-size:.82rem;font-weight:600}
.prstudio-review-note h4{margin:.8rem 0 .4rem}
.prstudio-release-notes{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #d9e1ea}
@media(max-width:720px){.prstudio-review-note-heading{display:block}.prstudio-review-note-heading .prstudio-status{display:inline-block;margin-top:.6rem}}

/* v0.5.21 numbered Press Release workflow and transparent Step 1 instructions */
.prstudio-release-instructions {
    margin: 0 0 1.25rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.prstudio-release-instructions .prstudio-builder-header {
    align-items: flex-start;
    margin-bottom: .55rem;
}
.prstudio-release-instructions h3 { margin: 0; }
.prstudio-release-instructions [hidden] { display: none !important; }
.prstudio-release-instructions p:last-child { margin-bottom: 0; }

.prstudio-release-workflow {
    width: 100%;
    max-width: 1672px;
    margin: 1.25rem auto 2rem;
}
.prstudio-release-workflow figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    isolation: isolate;
}
.prstudio-release-workflow picture,
.prstudio-release-workflow img {
    display: block;
    width: 100%;
    height: auto;
}
.prstudio-workflow-base { position: relative; z-index: 1; }
.prstudio-workflow-foreground {
    position: absolute;
    z-index: 4;
    inset: 0;
    pointer-events: none;
}

/* v0.5.79: one CSS layer owns every card edge in every visual state. */
.prstudio-workflow-highlight {
    --prstudio-workflow-card-fill: #fff;
    position: absolute;
    z-index: 2;
    display: block;
    box-sizing: border-box;
    border: 2px solid #b7cef3;
    border-radius: 20px;
    background: var(--prstudio-workflow-card-fill);
    box-shadow: none;
    overflow: visible;
    pointer-events: none;
    transition: background-color .18s ease, border-color .18s ease;
}
/* This is a background-colored top-edge mask, not another border owner. */
.prstudio-workflow-highlight::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    z-index: 1;
    width: 86px;
    height: 16px;
    transform: translateX(-50%);
    background: var(--prstudio-workflow-card-fill);
    pointer-events: none;
}
.prstudio-workflow-overlay {
    position: absolute;
    z-index: 5;
    display: block;
    box-sizing: border-box;
    border: 0;
    border-radius: 20px;
    outline: 0;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
    cursor: default;
    pointer-events: none;
    user-select: none;
}
.prstudio-workflow-card-copy {
    position: absolute;
    top: 42.5%;
    right: 4%;
    bottom: 4.5%;
    left: 4%;
    z-index: 2;
    display: grid;
    grid-template-rows: 3.05em 4px minmax(0, 1fr);
    row-gap: .62em;
    align-items: start;
    box-sizing: border-box;
    color: #071a58;
    text-align: center;
    pointer-events: none;
}
.prstudio-workflow-card-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 0;
    margin: 0;
    font-size: clamp(.78rem, 1.45vw, 1.55rem);
    font-weight: 800;
    line-height: 1.08;
    text-align: center;
}
.prstudio-workflow-card-title > span {
    display: block;
    width: 100%;
    white-space: nowrap;
}
.prstudio-workflow-card-divider {
    display: block;
    align-self: center;
    justify-self: center;
    width: 25%;
    max-width: 64px;
    height: 4px;
    margin: 0;
    border-radius: 999px;
    background: #ef9d00;
}
.prstudio-workflow-card-description {
    display: block;
    align-self: start;
    width: 100%;
    max-height: 100%;
    overflow: hidden;
    font-size: clamp(.62rem, 1.2vw, 1.05rem);
    line-height: 1.3;
    font-weight: 400;
    text-align: center;
    overflow-wrap: normal;
}

/* Complete vector connectors sit between cards and are never clipped by card layers. */
.prstudio-workflow-arrow {
    position: absolute;
    top: 59.6%;
    z-index: 3;
    display: block;
    width: 2.7%;
    min-width: 28px;
    max-width: 46px;
    height: 24px;
    transform: translateY(-50%);
    overflow: visible;
    pointer-events: none;
}
.prstudio-workflow-arrow > span {
    position: absolute;
    top: 8px;
    left: 0;
    display: block;
    width: calc(100% - 15px);
    height: 8px;
    border-radius: 4px 0 0 4px;
    background: #1768d5;
}
.prstudio-workflow-arrow > span::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -15px;
    width: 0;
    height: 0;
    transform: translateY(-50%);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 16px solid #1768d5;
}
.prstudio-workflow-arrow-1 { left: 18.55%; }
.prstudio-workflow-arrow-2 { left: 38.43%; }
.prstudio-workflow-arrow-3 { left: 58.33%; }
.prstudio-workflow-arrow-4 { left: 78.36%; }

/* v0.5.103: workflow cards are informational status indicators, not links or buttons. */
.prstudio-workflow-overlay:hover,
.prstudio-workflow-overlay:focus,
.prstudio-workflow-overlay:active {
    outline: 0;
    text-decoration: none;
}
.prstudio-workflow-highlight.is-current {
    --prstudio-workflow-card-fill: #fff5dc;
    border: 5px solid #e6a000;
    background: var(--prstudio-workflow-card-fill);
    box-shadow: none;
}
.prstudio-workflow-current-label {
    position: absolute;
    top: 52px;
    left: 50%;
    right: auto;
    bottom: auto;
    z-index: 6;
    display: inline-block;
    max-width: calc(100% - 18px);
    padding: .28rem .55rem;
    transform: translateX(-50%);
    border: 2px solid #6f4d00;
    border-radius: 999px;
    background: #fff8de;
    color: #4c3500;
    font-size: clamp(.66rem, .92vw, .82rem);
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.prstudio-length-status { margin: 1rem 0; padding: .85rem 1rem; border: 1px solid #c9d3dd; border-radius: 6px; background: #f7f9fb; }
.prstudio-length-status dl { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin: 0; }
.prstudio-length-status dl>div { display: flex; gap: .4rem; }
.prstudio-length-status dt { font-weight: 700; }
.prstudio-length-status dd { margin: 0; }
.prstudio-adjust-release-length { border-left: 4px solid #dba617; padding-left: 12px; }

/* Equal desktop rectangles within the 1672 x 941 artwork. */
.prstudio-workflow-highlight-step-1,.prstudio-workflow-overlay-step-1 { left: 1.675%; top: 31.031%; width: 16.328%; height: 60.361%; }
.prstudio-workflow-highlight-step-2,.prstudio-workflow-overlay-step-2 { left: 21.651%; top: 31.031%; width: 16.148%; height: 60.361%; }
.prstudio-workflow-highlight-step-3,.prstudio-workflow-overlay-step-3 { left: 41.388%; top: 31.031%; width: 16.208%; height: 60.361%; }
.prstudio-workflow-highlight-step-4,.prstudio-workflow-overlay-step-4 { left: 61.423%; top: 31.031%; width: 16.148%; height: 60.361%; }
.prstudio-workflow-highlight-step-5,.prstudio-workflow-overlay-step-5 { left: 81.519%; top: 31.031%; width: 16.208%; height: 60.361%; }

@media (max-width: 980px) {
    .prstudio-release-workflow { margin: 1rem auto 1.5rem; }
    .prstudio-release-workflow figure { border-radius: 6px; }
    .prstudio-workflow-highlight,.prstudio-workflow-overlay { left: 6.376%; width: 87.141%; height: 14.035%; border-radius: 18px; }
    .prstudio-workflow-highlight::before { top: -7px; width: 92px; height: 16px; }
    .prstudio-workflow-highlight-step-1,.prstudio-workflow-overlay-step-1 { top: 11.579%; }
    .prstudio-workflow-highlight-step-2,.prstudio-workflow-overlay-step-2 { top: 29.474%; }
    .prstudio-workflow-highlight-step-3,.prstudio-workflow-overlay-step-3 { top: 47.368%; }
    .prstudio-workflow-highlight-step-4,.prstudio-workflow-overlay-step-4 { top: 65.263%; }
    .prstudio-workflow-highlight-step-5,.prstudio-workflow-overlay-step-5 { top: 83.158%; }
    .prstudio-workflow-card-copy {
        top: 54%;
        right: 7%;
        bottom: 4.5%;
        left: 7%;
        grid-template-rows: 2.65em 3px minmax(0, 1fr);
        row-gap: .42em;
    }
    .prstudio-workflow-card-title { font-size: clamp(.78rem, 3vw, 1.35rem); line-height: 1.08; }
    .prstudio-workflow-card-divider { width: 12%; max-width: 72px; height: 3px; }
    .prstudio-workflow-card-description { font-size: clamp(.64rem, 2.3vw, 1rem); line-height: 1.2; }
    .prstudio-workflow-current-label { top: 39px; font-size: clamp(.6rem, 2.3vw, .78rem); }
    .prstudio-workflow-arrow {
        left: 50%;
        width: 28px;
        min-width: 0;
        max-width: none;
        height: 54px;
        transform: translate(-50%, -50%);
    }
    .prstudio-workflow-arrow > span {
        top: 0;
        left: 10px;
        width: 8px;
        height: 34px;
        border-radius: 4px 4px 0 0;
    }
    .prstudio-workflow-arrow > span::after {
        top: auto;
        right: auto;
        bottom: -16px;
        left: 50%;
        transform: translateX(-50%);
        border-top: 16px solid #1768d5;
        border-right: 12px solid transparent;
        border-bottom: 0;
        border-left: 12px solid transparent;
    }
    .prstudio-workflow-arrow-1 { top: 27.544%; }
    .prstudio-workflow-arrow-2 { top: 45.439%; }
    .prstudio-workflow-arrow-3 { top: 63.333%; }
    .prstudio-workflow-arrow-4 { top: 81.228%; }
    .prstudio-length-status dl { display: grid; gap: .45rem; }
}

/* v0.5.28 guided Step 4 workspace */
.prstudio-step4-progress-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:.75rem;
    margin:1rem 0;
}
.prstudio-step4-progress-grid>div{
    display:grid;
    gap:.2rem;
    min-height:5.2rem;
    padding:.9rem;
    border:1px solid #c9d3dd;
    border-radius:6px;
    background:#f7f9fb;
}
.prstudio-step4-progress-grid strong{font-size:1.25rem;line-height:1.2;color:#174f84}
.prstudio-step4-progress-grid span{color:#50575e}
.prstudio-step4-jump-links{display:flex;flex-wrap:wrap;gap:.55rem 1rem}
.prstudio-step4-jump-links a{font-weight:700}
.prstudio-release-section-workspace{display:grid;gap:1rem;scroll-margin-top:1.5rem}
.prstudio-release-section-workspace>.prstudio-builder-header{margin-bottom:0}
.prstudio-editing-instructions{padding:1rem;border-left:4px solid #2767a5;background:#f7f9fb}
.prstudio-editing-instructions h4{margin-top:0}
.prstudio-editing-instructions ol{margin-bottom:0}
details.prstudio-editing-block{padding:0;overflow:hidden;scroll-margin-top:1.5rem}
.prstudio-editing-block-summary{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:1rem;
    padding:1rem 1.1rem;
    cursor:pointer;
    list-style:none;
    background:#f7f9fb;
}
.prstudio-editing-block-summary::-webkit-details-marker{display:none}
.prstudio-editing-block-summary::before{content:'▸';flex:0 0 auto;margin-top:.05rem;font-size:1.15rem;color:#174f84}
details.prstudio-editing-block[open]>.prstudio-editing-block-summary::before{content:'▾'}
.prstudio-editing-block-summary>span:first-of-type{display:grid;gap:.2rem;flex:1}
.prstudio-editing-block-summary strong{font-size:1.08rem}
.prstudio-editing-block-summary small{color:#50575e;font-weight:400;line-height:1.4}
.prstudio-editing-block-content{padding:0 1.1rem 1.1rem}
.prstudio-block-review-issues{margin:1rem 0;padding:1rem;border-left:4px solid #b87918;background:#fff8e8}
.prstudio-block-review-issues h4{margin-top:0}
.prstudio-block-review-issue{padding:.75rem 0;border-top:1px solid rgba(184,121,24,.25)}
.prstudio-block-review-issue:first-of-type{padding-top:0;border-top:0}
.prstudio-block-review-issue:last-child{padding-bottom:0}
.prstudio-block-review-issue p{margin:.3rem 0}
.prstudio-block-review-issue.is-focused{outline:2px solid #2767a5;outline-offset:4px}
.prstudio-full-release-improvements{scroll-margin-top:1.5rem}
.prstudio-full-release-improvements>summary{cursor:pointer;list-style:none}
.prstudio-full-release-improvements>summary::-webkit-details-marker{display:none}
.prstudio-full-release-improvements>summary span{display:grid;gap:.25rem}
.prstudio-full-release-improvements>summary strong{font-size:1.15rem}
.prstudio-full-release-improvements>summary small{color:#50575e;font-weight:400}
.prstudio-full-release-improvements>summary::before{content:'▸';float:left;margin-right:.55rem;color:#174f84}
.prstudio-full-release-improvements[open]>summary::before{content:'▾'}
.prstudio-full-release-improvements-content{display:grid;gap:1.25rem;margin-top:1rem;padding-top:1rem;border-top:1px solid #d9e1ea}
.prstudio-full-release-improvements-content>section{padding:1rem;border:1px solid #d9e1ea;border-radius:6px;background:#fff}
.prstudio-full-release-improvements-content>section h3{margin-top:0}
#prstudio-review-issues,#prstudio-finish-step4{scroll-margin-top:1.5rem}
@media(max-width:900px){.prstudio-step4-progress-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
    .prstudio-step4-progress-grid{grid-template-columns:1fr}
    .prstudio-editing-block-summary{display:grid}
    .prstudio-editing-block-summary .prstudio-status{justify-self:start}
}

/* v0.5.28 focused Step 4 modal editors and test intake controls */
.prstudio-test-intake-panel{border-left:4px solid #b87918}
.prstudio-test-intake-panel [data-prstudio-test-intake-status]{font-weight:600}
.prstudio-section-editor-card{display:grid;gap:.7rem}
.prstudio-section-editor-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
.prstudio-section-editor-card-heading h4{margin:0 0 .2rem;font-size:1.08rem}
.prstudio-section-editor-card-heading p,.prstudio-section-editor-preview,.prstudio-section-editor-meta{margin:0}
.prstudio-section-editor-card-heading p,.prstudio-section-editor-meta{color:#50575e}
.prstudio-section-editor-preview{max-width:72ch}
.prstudio-section-editor-card .prstudio-button{justify-self:start}
.prstudio-block-editor-dialog{
    width:min(960px,calc(100vw - 2rem));
    max-width:960px;
    max-height:calc(100vh - 2rem);
    margin:auto;
    padding:0;
    border:1px solid #9eacba;
    border-radius:0;
    background:#fff;
    color:#1d2327;
    box-shadow:0 18px 70px rgba(0,0,0,.32);
}
.prstudio-block-editor-dialog::backdrop{background:rgba(20,32,45,.62)}
.prstudio-block-editor-dialog-shell{display:flex;flex-direction:column;max-height:calc(100vh - 2rem)}
.prstudio-block-editor-dialog-header{
    position:sticky;
    top:0;
    z-index:2;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:1rem;
    padding:1.1rem 1.25rem;
    border-bottom:1px solid #d9e1ea;
    background:#fff;
}
.prstudio-block-editor-dialog-header h3{margin:.1rem 0 .25rem}
.prstudio-block-editor-dialog-header p{margin:0;color:#50575e}
.prstudio-dialog-eyebrow{text-transform:uppercase;letter-spacing:.055em;font-size:.76rem;font-weight:700;color:#174f84!important}
.prstudio-dialog-close{appearance:none;display:grid;place-items:center;width:2.5rem;height:2.5rem;flex:0 0 2.5rem;padding:0;border:1px solid #9eacba;border-radius:50%;background:#fff;color:#1d2327;font-size:1.8rem;line-height:1;cursor:pointer}
.prstudio-dialog-close:hover,.prstudio-dialog-close:focus{border-color:#174f84;outline:3px solid rgba(39,103,165,.25);outline-offset:2px}
.prstudio-block-editor-dialog-content{overflow:auto;padding:0 1.25rem 1.25rem}
.prstudio-block-editor-dialog-footer{position:sticky;bottom:0;z-index:2;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.65rem;padding:1rem 1.25rem;border-top:1px solid #d9e1ea;background:#f7f9fb}
.prstudio-block-editor-dialog .prstudio-option-panel{max-height:none}
.prstudio-block-editor-dialog[open]{animation:prstudio-dialog-in .16s ease-out}
@keyframes prstudio-dialog-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.prstudio-block-editor-dialog[open]{animation:none}}
@media(max-width:640px){
    .prstudio-section-editor-card-heading{display:grid}
    .prstudio-section-editor-card-heading .prstudio-status{justify-self:start}
    .prstudio-block-editor-dialog{width:100%;max-width:none;height:100%;max-height:none;border:0;border-radius:0}
    .prstudio-block-editor-dialog-shell{height:100%;max-height:none}
    .prstudio-block-editor-dialog-content{flex:1;padding:0 .9rem 1rem}
    .prstudio-block-editor-dialog-header,.prstudio-block-editor-dialog-footer{padding:.85rem .9rem}
    .prstudio-block-editor-dialog-footer{display:grid}
}

/* v0.5.29 unified Step 4 tabbed rewrite editor */
.prstudio-block-editor-dialog-content{padding-top:1rem}
.prstudio-block-editor-dialog .prstudio-option-tabs{margin-top:0}
.prstudio-option-panel{position:relative;display:grid;gap:.85rem}
.prstudio-option-panel-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding-bottom:.75rem;border-bottom:1px solid #e1e7ed}
.prstudio-option-panel-toolbar>strong{font-size:1rem;line-height:1.4}
.prstudio-select-version{flex:0 0 auto;min-width:7.25rem}
.prstudio-select-version.is-selected{box-shadow:inset 0 0 0 2px rgba(255,255,255,.45)}
.prstudio-select-version[aria-pressed="true"]::before{content:"✓";margin-right:.35rem;font-weight:800}
.prstudio-option-content{max-width:76ch}
.prstudio-option-content>:first-child{margin-top:0}
.prstudio-option-content>:last-child{margin-bottom:0}
.prstudio-option-summary{margin:.1rem 0 0}
.prstudio-remove-rewrite{justify-self:start}
.prstudio-active-review-context{margin:1rem 0 0}
.prstudio-active-review-context[hidden]{display:none!important}
.prstudio-review-recommendation{padding:1rem;border-left:4px solid #dba617;background:#fff8df;border-radius:4px}
.prstudio-review-recommendation h4{margin:0 0 .55rem}
.prstudio-review-recommendation p{margin:.45rem 0}
.prstudio-review-recommendation .prstudio-button{margin-top:.55rem}
.prstudio-unified-editor-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem;margin:1rem 0 0;padding:1rem 0 0;border-top:1px solid #d9e1ea}
.prstudio-unified-editor-actions .prstudio-button{min-height:2.1rem;padding:.42rem .72rem;font-size:.9rem}
.prstudio-unified-editor-actions [data-prstudio-rewrite-limit]{color:#50575e;font-size:.9rem}
.prstudio-rewrite-form,.prstudio-manual-rewrite-form{display:grid;gap:.75rem}
.prstudio-rewrite-form>p,.prstudio-manual-rewrite-form>p{margin:0}
.prstudio-manual-rewrite-form label{display:grid;gap:.35rem}
.prstudio-manual-rewrite-form textarea{width:100%;min-height:9rem;resize:vertical}
.prstudio-manual-rewrite-form input{width:100%}
.prstudio-draft-option-panel{background:#fbfcfd}
.prstudio-original-confirmation .prstudio-button{margin-top:.35rem}
.prstudio-editing-finalize{position:static!important}
.prstudio-editing-finalize .prstudio-form-actions{align-items:center}
.prstudio-release-notes .prstudio-button-async,
.prstudio-section-editor-card .prstudio-button-async,
.prstudio-block-editor-dialog .prstudio-button-async,
.prstudio-editing-finalize .prstudio-button-async{min-height:2.1rem;padding:.42rem .72rem;font-size:.9rem;line-height:1.25}
@media(max-width:640px){
    .prstudio-option-panel-toolbar{display:grid}
    .prstudio-select-version{justify-self:start}
    .prstudio-unified-editor-actions{display:grid}
    .prstudio-unified-editor-actions .prstudio-button{width:100%}
}

/* v0.5.30 two-column Step 4 review workspace and source-information editor */
.prstudio-step4-two-column{
    display:grid;
    grid-template-columns:minmax(0,46fr) minmax(360px,54fr);
    align-items:start;
    gap:1.25rem;
    scroll-margin-top:1.5rem;
}
.prstudio-step4-editing-column{min-width:0}
/* The 46% controls column is intentionally narrower than a full-page editor.
   Do not split Current/Suggested wording into another pair of narrow columns. */
.prstudio-step4-editing-column .prstudio-standard-contextual-comparison,
.prstudio-step4-editing-column .prstudio-standard-comparison-grid{grid-template-columns:minmax(0,1fr)}
.prstudio-step4-editing-column .prstudio-standard-contextual-comparison>section,
.prstudio-step4-editing-column .prstudio-standard-comparison-grid>section{min-width:0}
.prstudio-step4-view-tabs{
    display:flex;
    gap:.45rem;
    margin:0 0 .85rem;
    padding:.35rem;
    border:1px solid #c9d3dd;
    border-radius:8px;
    background:#eef3f7;
}
.prstudio-step4-view-tab{
    appearance:none;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:.5rem;
    min-height:2.7rem;
    flex:1 1 0;
    padding:.55rem .8rem;
    border:1px solid transparent;
    border-radius:6px;
    background:transparent;
    color:#1d2327;
    cursor:pointer;
    font:inherit;
    font-weight:700;
}
.prstudio-step4-view-tab:hover{background:#fff}
.prstudio-step4-view-tab.is-active{
    border-color:#2767a5;
    background:#fff;
    color:#174f84;
    box-shadow:0 1px 3px rgba(0,0,0,.08);
}
.prstudio-step4-view-tab:focus-visible{outline:3px solid rgba(39,103,165,.32);outline-offset:2px}
.prstudio-view-count{
    display:inline-grid;
    place-items:center;
    min-width:1.65rem;
    min-height:1.65rem;
    padding:0 .35rem;
    border-radius:999px;
    background:#dce8f4;
    color:#174f84;
    font-size:.82rem;
}
.prstudio-step4-view-tab.is-active .prstudio-view-count{background:#174f84;color:#fff}
.prstudio-step4-view-panel[hidden]{display:none!important}
.prstudio-step4-view-panel>.prstudio-release-notes{margin-top:0;padding-top:0;border-top:0}
.prstudio-step4-view-panel>.prstudio-release-notes>.prstudio-builder-header,
.prstudio-step4-view-panel .prstudio-release-section-workspace>.prstudio-builder-header{margin-top:0}
.prstudio-step4-two-column .prstudio-working-release-preview{
    position:sticky;
    top:1rem;
    min-width:0;
    margin:0;
    max-height:calc(100vh - 2rem);
    overflow:hidden;
}
.prstudio-working-preview-scroll{
    max-height:calc(100vh - 12rem);
    overflow:auto;
    padding-right:.35rem;
    overscroll-behavior:contain;
}
.prstudio-working-preview-scroll [data-prstudio-preview-block]{
    margin-inline:-.35rem;
    padding-inline:.35rem;
    border-radius:4px;
    transition:background-color .25s ease,box-shadow .25s ease;
}
.prstudio-working-preview-scroll [data-prstudio-preview-block].is-updated{
    background:#fff3bd;
    box-shadow:0 0 0 3px rgba(219,166,23,.32);
}
.prstudio-section-editor-card{margin:0}
.prstudio-release-section-workspace{gap:.8rem}
.prstudio-block-editor-dialog-footer [data-prstudio-open-next-issue][hidden]{display:none!important}
.prstudio-issue-decision-status:not(:empty){
    margin:.75rem 0 0;
    padding:.65rem .75rem;
    border-left:4px solid #2d7a3e;
    background:#edf8ef;
    font-weight:700;
}
.prstudio-source-editor-dialog .prstudio-option-content{max-width:none}
.prstudio-source-revision-form{display:grid;gap:.9rem}
.prstudio-source-revision-form>label{display:grid;gap:.35rem}
.prstudio-source-revision-form input[type="text"],
.prstudio-source-revision-form input[type="email"],
.prstudio-source-revision-form input[type="tel"],
.prstudio-source-revision-form select,
.prstudio-source-revision-form textarea{width:100%}
.prstudio-source-revision-form textarea{min-height:9rem;resize:vertical}
.prstudio-source-revision-form .prstudio-checkbox-label{
    display:flex;
    align-items:flex-start;
    gap:.55rem;
    padding:.7rem;
    border:1px solid #c9d3dd;
    border-radius:5px;
    background:#f7f9fb;
}
.prstudio-source-revision-form .prstudio-checkbox-label input{flex:0 0 auto;margin-top:.2rem}
.prstudio-source-revision-form>[data-prstudio-workspace-action="revise_source"]{justify-self:start}
@media(prefers-reduced-motion:reduce){
    .prstudio-working-preview-scroll [data-prstudio-preview-block]{transition:none}
}
@media(max-width:840px){
    .prstudio-step4-two-column{grid-template-columns:1fr}
    .prstudio-step4-two-column .prstudio-working-release-preview{
        position:static;
        max-height:none;
    }
    .prstudio-working-preview-scroll{max-height:none;overflow:visible;padding-right:0}
}
@media(max-width:520px){
    .prstudio-step4-view-tabs{display:grid}
    .prstudio-step4-view-tab{width:100%}
}

/* Step 4 completion guidance */
.prstudio-finish-task .prstudio-form-actions{margin-top:.7rem}
.prstudio-finish-task .description{margin:.45rem 0 0}

/* v0.5.34 focused Step 4 workspace and test-data safeguards */
.prstudio-step4-progress-compact { margin: 0 0 1rem; }
.prstudio-step4-progress-compact .prstudio-step4-progress-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prstudio-source-correction-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.prstudio-source-correction-columns > section { border:1px solid #d7e2f2; border-radius:10px; padding:1rem; background:#fff; }
.prstudio-source-correction-columns label { display:grid; gap:.35rem; }
.prstudio-source-correction-columns input,
.prstudio-source-correction-columns textarea,
.prstudio-source-correction-columns select { box-sizing:border-box; width:100%; max-width:100%; }
.prstudio-source-current-field { padding:.55rem 0; border-bottom:1px solid #e9eef6; }
.prstudio-source-current-field:last-child { border-bottom:0; }
.prstudio-source-current-field p { margin:.25rem 0 0; white-space:pre-wrap; }
.prstudio-minor-correction-form label { display:block; margin:0 0 .8rem; }
.prstudio-minor-correction-form label span { display:block; font-weight:700; margin-bottom:.3rem; }
.prstudio-test-data-banner { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin:0 0 1rem; padding:.9rem 1rem; border:2px solid #b42318; border-radius:8px; background:#fff1f0; color:#7a271a; }
.prstudio-test-data-banner[hidden] { display:none; }
.prstudio-test-data-banner strong { font-size:1.05rem; letter-spacing:.02em; }
@media (max-width: 980px) {
  .prstudio-source-correction-columns { grid-template-columns:1fr; }
  .prstudio-step4-progress-compact .prstudio-step4-progress-grid { grid-template-columns:1fr; }
  .prstudio-test-data-banner { align-items:flex-start; flex-direction:column; }
}


/* v0.5.38: one shared workspace with Standard and Expert presentation modes. */
.prstudio-editing-mode-switch { margin: 1rem 0; }
.prstudio-editing-mode-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
.prstudio-editing-mode-option { border:1px solid #cad6e4; border-radius:10px; padding:.9rem; background:#fff; }
.prstudio-editing-mode-option.is-active { border:2px solid #1768d5; background:#f4f8ff; }
.prstudio-editing-mode-option p { margin:.35rem 0 0; }
.prstudio-standard-step4-grid { display:grid; gap:1rem; }
.prstudio-standard-actions { display:flex; flex-wrap:wrap; gap:.6rem; }
.prstudio-standard-suggestions { display:grid; gap:.75rem; }
.prstudio-standard-suggestion { border:1px solid #d7e0ea; border-radius:8px; padding:.8rem; background:#fff; }
.prstudio-working-release-fingerprint { font-size:.88rem; color:#56616f; }
@media (max-width:760px){ .prstudio-editing-mode-options{grid-template-columns:1fr;} }

/* v0.5.38 Standard Mode comparison controls */
.prstudio-standard-suggestions { display:grid; gap:1rem; }
.prstudio-standard-suggestion-card .prstudio-section-editor-preview { margin:.55rem 0; }
.prstudio-standard-comparison-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:1rem; align-items:stretch; }
.prstudio-standard-comparison-grid > section { border:1px solid #cbd8e6; border-radius:10px; padding:1rem; background:#fff; display:flex; flex-direction:column; gap:.85rem; }
.prstudio-standard-comparison-grid > section .prstudio-button { align-self:flex-start; margin-top:auto; }
.prstudio-standard-manual-edit { margin-top:1rem; border-top:1px solid #d8e0e8; padding-top:1rem; }
.prstudio-standard-manual-edit > summary { cursor:pointer; font-weight:700; color:#164f82; }
@media (max-width: 782px) {
    .prstudio-standard-comparison-grid { grid-template-columns:1fr; }
}
.prstudio-standard-optional-issues { margin-top:1rem; border-top:1px solid #d8e0e8; padding-top:.8rem; }
.prstudio-standard-optional-issues > summary { cursor:pointer; font-weight:700; color:#164f82; }
.prstudio-standard-optional-issues .prstudio-release-notes { margin-top:.8rem; }

/* v0.5.38 Standard Mode clarity and persistent final-review results. */
.prstudio-standard-suggestion-card .prstudio-section-editor-card-heading h4{
    font-size:clamp(1.3rem,2vw,1.75rem);
    line-height:1.18;
    font-weight:700;
}
.prstudio-standard-suggestion-card .prstudio-section-editor-card-heading .prstudio-status{
    flex:0 0 auto;
    min-width:max-content;
    white-space:nowrap;
    text-align:center;
}
.prstudio-standard-suggestion-card.is-decision-saved .prstudio-section-editor-preview--recommendation{display:none}
.prstudio-eeat-fingerprints{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:.75rem;
    margin:1rem 0;
}
.prstudio-eeat-fingerprint{
    padding:.75rem;
    border:1px solid #d7e0ea;
    border-radius:8px;
    background:#f8fafc;
}
.prstudio-eeat-result{
    margin-top:1rem;
    padding:1rem;
    border:1px solid #b8c8d8;
    border-radius:8px;
    background:#f6f9fc;
}
.prstudio-eeat-result h4{margin-top:0}
.prstudio-eeat-result-group{margin-top:1rem}
.prstudio-eeat-result-group h5{margin:0 0 .4rem;font-size:1.05rem}
.prstudio-eeat-result-meta{color:#56616f;font-size:.9rem}
.prstudio-ai-operation-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}
@media(max-width:760px){.prstudio-eeat-fingerprints{grid-template-columns:1fr}}

/* v0.5.72 local Step 4 complete-release improvement progress and recovery */
.prstudio-release-improvement-progress{display:flex;align-items:flex-start;gap:.8rem;margin-top:1rem;padding:1rem;border:1px solid #72aee6;border-radius:6px;background:#f0f6fc;color:#135e96}
.prstudio-release-improvement-progress p{margin:0}
.prstudio-release-improvement-progress p+p{margin-top:.25rem}
.prstudio-release-improvement-is-running{position:relative}


/* v0.5.75 Step 4 completion-flow QA structural verification */
.prstudio-improvement-elapsed{font-variant-numeric:tabular-nums;font-weight:600;color:#174f84}
.prstudio-recommendation-explanation{margin:.25rem 0 0;padding:.8rem .9rem;border-top:3px solid #72aee6;border-radius:0 0 6px 6px;background:#f0f6fc;color:#263746}
.prstudio-recommendation-explanation h5{margin:0 0 .35rem;font-size:.95rem;color:#174f84}
.prstudio-recommendation-explanation p{margin:0;font-size:.94rem;line-height:1.5}
.prstudio-standard-comparison-grid .prstudio-recommendation-explanation{margin-top:auto}
.prstudio-step4-next-action[hidden]{display:none!important}
.prstudio-step4-next-action{margin-top:1rem}
.prstudio-step4-next-action>.prstudio-card{margin:0}

/* v0.5.79 Step 5 current-review clarity and finding transparency. */
.prstudio-review-history,
.prstudio-final-finding-index {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #d7dde5;
    border-radius: 6px;
    background: #f7f9fb;
}
.prstudio-review-history summary,
.prstudio-final-finding-index summary {
    cursor: pointer;
    font-weight: 700;
}
.prstudio-final-finding-index ol {
    margin: 0.75rem 0 0 1.25rem;
}
.prstudio-final-finding-index li + li {
    margin-top: 0.4rem;
}
.prstudio-final-finding .prstudio-flagged-wording {
    margin: 0.85rem 0;
    padding: 0.75rem 0.9rem;
    border-left: 4px solid #9aa1aa;
    background: #f3f4f5;
    line-height: 1.5;
}
.prstudio-final-finding .prstudio-flagged-wording mark {
    background: #e5e7e9;
    color: inherit;
    padding: 0.08em 0.2em;
}

/* v0.5.79 compact-phone containment: preserve every description inside the fixed mobile artwork cards. */
@media (max-width: 480px) {
    .prstudio-workflow-card-copy {
        top: 49%;
        right: 7%;
        bottom: 4%;
        left: 7%;
        grid-template-rows: 2.25em 3px minmax(0, 1fr);
        row-gap: .26em;
    }
    .prstudio-workflow-card-title {
        font-size: clamp(.68rem, 3vw, .78rem);
        line-height: 1.04;
    }
    .prstudio-workflow-card-description {
        font-size: clamp(.55rem, 2.25vw, .7rem);
        line-height: 1.12;
    }
    .prstudio-workflow-current-label {
        top: 32px;
        padding: .18rem .42rem;
        font-size: .58rem;
    }
}


/* Administrator-only PDF review reference: intentionally outside the bordered workflow panel. */
.prstudio-pdf-review-reference {
    box-sizing: border-box;
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto 12px;
    padding: 0;
    color: #b42318;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
    text-align: left;
    overflow-wrap: anywhere;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.prstudio-pdf-review-reference code {
    color: inherit;
    font-weight: 600;
}
@media (max-width: 640px) {
    .prstudio-pdf-review-reference {
        width: min(100% - 20px, 1320px);
        font-size: 12px;
    }
}

/* Resolver-backed unavailable workflow destinations. Visual state only; card geometry is unchanged. */
.prstudio-workflow-overlay.is-disabled {
    cursor: default;
    opacity: .48;
    filter: grayscale(1);
}
.prstudio-workflow-highlight.is-disabled {
    --prstudio-workflow-card-fill: #f1f3f5;
    background: var(--prstudio-workflow-card-fill);
}
.prstudio-workflow-overlay.is-disabled .prstudio-workflow-card-copy {
    pointer-events: none;
}
.prstudio-workflow-completion-panel {
    scroll-margin-top: 1rem;
}

/* v0.5.98 print/PDF workflow rendering: use desktop geometry at print widths. */
@media print {
    .prstudio-release-workflow {
        width: 100% !important;
        max-width: none !important;
        margin: 12pt auto 18pt !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .prstudio-release-workflow figure {
        overflow: hidden !important;
        border-radius: 6px !important;
    }
    .prstudio-workflow-highlight,
    .prstudio-workflow-overlay {
        top: 31.031% !important;
        height: 60.361% !important;
        border-radius: 14px !important;
    }
    .prstudio-workflow-highlight-step-1,
    .prstudio-workflow-overlay-step-1 { left: 1.675% !important; width: 16.328% !important; }
    .prstudio-workflow-highlight-step-2,
    .prstudio-workflow-overlay-step-2 { left: 21.651% !important; width: 16.148% !important; }
    .prstudio-workflow-highlight-step-3,
    .prstudio-workflow-overlay-step-3 { left: 41.388% !important; width: 16.208% !important; }
    .prstudio-workflow-highlight-step-4,
    .prstudio-workflow-overlay-step-4 { left: 61.423% !important; width: 16.148% !important; }
    .prstudio-workflow-highlight-step-5,
    .prstudio-workflow-overlay-step-5 { left: 81.519% !important; width: 16.208% !important; }
    .prstudio-workflow-card-copy {
        top: 42.5% !important;
        right: 4% !important;
        bottom: 4.5% !important;
        left: 4% !important;
        grid-template-rows: 3.05em 3px minmax(0, 1fr) !important;
        row-gap: .5em !important;
    }
    .prstudio-workflow-card-title {
        font-size: 10pt !important;
        line-height: 1.08 !important;
    }
    .prstudio-workflow-card-divider {
        width: 25% !important;
        max-width: 48px !important;
        height: 3px !important;
    }
    .prstudio-workflow-card-description {
        font-size: 6.5pt !important;
        line-height: 1.18 !important;
    }
    .prstudio-workflow-current-label {
        top: 30px !important;
        padding: 2px 5px !important;
        font-size: 6.5pt !important;
    }
    .prstudio-workflow-arrow {
        top: 59.6% !important;
        width: 2.7% !important;
        min-width: 18px !important;
        max-width: 32px !important;
        height: 18px !important;
        transform: translateY(-50%) !important;
    }
    .prstudio-workflow-arrow-1 { left: 18.55% !important; }
    .prstudio-workflow-arrow-2 { left: 38.43% !important; }
    .prstudio-workflow-arrow-3 { left: 58.33% !important; }
    .prstudio-workflow-arrow-4 { left: 78.36% !important; }
    .prstudio-workflow-arrow > span {
        top: 6px !important;
        left: 0 !important;
        width: calc(100% - 11px) !important;
        height: 6px !important;
        border-radius: 3px 0 0 3px !important;
    }
    .prstudio-workflow-arrow > span::after {
        top: 50% !important;
        right: -11px !important;
        border-top-width: 9px !important;
        border-bottom-width: 9px !important;
        border-left-width: 12px !important;
    }
}

/* v0.5.101 consolidated Step 4 tabs, full-width progress, bounded operations, and secondary source revision. */
.prstudio-step4-progress-wide{margin:1rem 0}
.prstudio-step4-progress-grid-five{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.prstudio-step4-guided-workflow{display:grid;gap:1rem;min-width:0}
.prstudio-step4-guided-tabs{
    display:grid;
    grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr) minmax(0,1fr);
    gap:.5rem;
    align-items:stretch;
    margin:0 0 1rem;
    padding:0;
    border:0;
    border-bottom:1px solid #cbd5e1;
    border-radius:0;
    background:transparent;
}
.prstudio-step4-guided-tab{
    appearance:none;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:.35rem;
    min-width:0;
    min-height:48px;
    margin:0;
    padding:.75rem .4rem;
    border:1px solid #cbd5e1;
    border-bottom:0;
    border-radius:8px 8px 0 0;
    background:#f8fafc;
    color:#1f2937;
    cursor:pointer;
    font:inherit;
    font-size:clamp(.76rem,.9vw,.88rem);
    font-weight:700;
    line-height:1.15;
    text-align:center;
    white-space:normal;
    overflow-wrap:anywhere;
}
.prstudio-step4-guided-tab:hover:not(:disabled),
.prstudio-step4-guided-tab:focus-visible:not(:disabled){background:#eef6ff}
.prstudio-step4-guided-tab:focus-visible{outline:2px solid #2271b1;outline-offset:2px}
.prstudio-step4-guided-tab.is-active{
    position:relative;
    top:1px;
    border-color:#cbd5e1;
    background:#fff;
    color:#135e96;
    box-shadow:none;
}
.prstudio-step4-guided-tab.is-complete:not(.is-active){background:#edf8ef;color:#1e5b2c}
.prstudio-step4-guided-tab.is-locked,
.prstudio-step4-guided-tab:disabled{cursor:not-allowed;opacity:.56}
.prstudio-step4-guided-tab.is-active .prstudio-view-count{background:#174f84;color:#fff}
.prstudio-step4-guided-panel[hidden]{display:none!important}
.prstudio-step4-guided-panel>.prstudio-card:first-child{margin-top:0}
.prstudio-guided-skip-action{margin:1rem 0 0}
.prstudio-advanced-section-editing{margin-top:1rem}
.prstudio-advanced-section-editing>summary{cursor:pointer;list-style:none}
.prstudio-advanced-section-editing>summary::-webkit-details-marker{display:none}
.prstudio-advanced-section-editing>summary span{display:grid;gap:.2rem}
.prstudio-advanced-section-editing>summary strong{font-size:1.08rem}
.prstudio-advanced-section-editing>summary small{color:#50575e;font-weight:400}
.prstudio-advanced-section-editing>summary::before{content:'▸';float:left;margin-right:.55rem;color:#174f84}
.prstudio-advanced-section-editing[open]>summary::before{content:'▾'}
.prstudio-advanced-section-editing-content{display:grid;gap:1rem;margin-top:1rem;padding-top:1rem;border-top:1px solid #d9e1ea}
.prstudio-full-release-operation [aria-busy="true"],
.prstudio-release-improvement-is-running [data-prstudio-adjust-release-length],
.prstudio-release-improvement-is-running [data-prstudio-create-release-improvement]{cursor:wait}
.prstudio-revise-source-secondary:not(.prstudio-step2-compact-revision){padding:.9rem 1rem}
.prstudio-revise-source-secondary .prstudio-link-button{font-weight:700;text-align:left}
.prstudio-revise-source-secondary .description{margin:.55rem 0 0;color:#646970}
@media(max-width:900px){
    .prstudio-step4-progress-grid-five{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:720px){
    .prstudio-step4-progress-grid-five{grid-template-columns:1fr!important}
    .prstudio-step4-guided-tabs{grid-template-columns:1fr;border-bottom:0}
    .prstudio-step4-guided-tab{
        width:100%;
        justify-content:space-between;
        border:1px solid #cbd5e1;
        border-radius:8px;
        font-size:.9rem;
        text-align:left;
        white-space:normal;
    }
    .prstudio-step4-guided-tab.is-active{top:0}
}
@media print{
    .prstudio-step4-progress-wide{break-inside:avoid}
    .prstudio-step4-guided-tabs{grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr) minmax(0,1fr);break-inside:avoid}
    .prstudio-step4-guided-tab{font-size:7.5pt;white-space:normal}
    .prstudio-step4-guided-panel[hidden]{display:none!important}
}

/* v0.5.110 Step 4 recommendation freshness and matching guidance counters */
[data-prstudio-guidance-label]{display:block;margin-bottom:.35rem;font-weight:600}
[data-prstudio-guidance-label].prstudio-guidance-over-limit{color:#b32d2e}
.prstudio-recommendation-stale-label{margin:.5rem 0;color:#7a4b00}
.prstudio-option-stale,.prstudio-option-current{margin:.65rem 0}
.prstudio-stale-recommendations .prstudio-button{margin-top:.35rem}


/* v0.5.112 company AI credit status and insufficient-credit recovery. */
.prstudio-credit-indicator{margin:0 0 16px;padding:9px 12px;border:1px solid #d8dde3;border-radius:6px;background:#fff;font-size:.92rem;line-height:1.4}
.prstudio-credit-indicator.is-low{border-color:#d9a72e;background:#fffaf0}
.prstudio-credit-indicator.is-exhausted{border-color:#b32d2e;background:#fff5f5}
.prstudio-credit-indicator a{font-weight:600}
.prstudio-credit-blocked{margin:14px 0;padding:16px;border:1px solid #b32d2e;border-radius:7px;background:#fff7f7}
.prstudio-credit-blocked h3{margin:0 0 8px;font-size:1.05rem}
.prstudio-credit-blocked p:last-child{margin-bottom:0}
.prstudio-credit-cost-hint{display:inline-block;margin-left:10px;vertical-align:middle}

/* v0.5.126 — Standard Step 4 per-section decisions */
.prstudio-standard-direct-actions{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.prstudio-standard-actions-note{margin-top:.55rem}
.prstudio-standard-bulk-actions{margin-top:2.5rem;padding-top:.25rem}
.prstudio-step4-final-intro{margin:0 0 1.25rem;padding:0;border:0;background:transparent}
.prstudio-step4-final-intro h3{margin:0 0 .5rem;padding:0;border:0;background:transparent}

/* v0.5.127 consolidated Step 1 setup/source controls and Step 5 guided progression */
.prstudio-release-setup{margin:1.1rem 0 1.35rem}
.prstudio-release-setup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem 1rem;margin:.8rem 0 0}
.prstudio-release-setup-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:.7rem;padding:.85rem;border:1px solid #d9e1ea;border-radius:6px;background:#fff}
.prstudio-release-setup-item dt{font-weight:700;color:#50575e}
.prstudio-release-setup-item dd{grid-column:1 / -1;margin:0;font-size:1rem;overflow-wrap:anywhere}
.prstudio-release-setup-item .prstudio-button{grid-column:2;grid-row:1 / span 2;align-self:center}
.prstudio-release-setup-dialog{width:min(720px,calc(100vw - 2rem));max-width:720px;max-height:calc(100vh - 2rem);margin:auto;padding:0;border:1px solid #9eacba;border-radius:0;background:#fff;color:#1d2327;box-shadow:0 18px 70px rgba(0,0,0,.32)}
.prstudio-release-setup-dialog::backdrop{background:rgba(20,32,45,.62)}
.prstudio-release-setup-dialog .prstudio-release-setup-form{box-sizing:border-box;padding:1.25rem 1.5rem}
.prstudio-reference-list,.prstudio-research-source-list{display:grid;gap:.75rem}
.prstudio-reference-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:.55rem}
.prstudio-research-assistance{grid-column:1 / -1;width:100%;box-sizing:border-box}
.prstudio-research-operation-status:not(:empty){margin-top:.9rem}
.prstudio-research-suggestions{margin-top:1rem;padding-top:1rem;border-top:1px solid #d9e1ea}
.prstudio-reference-row input[type="url"]{min-width:0}
.prstudio-reference-status{white-space:nowrap}
.prstudio-research-source-row{padding:1rem;border:1px solid #d9e1ea;border-radius:6px;background:#fff}
.prstudio-research-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem 1rem}
.prstudio-research-source-grid .prstudio-field-wide{grid-column:1 / -1}
.prstudio-research-suggestions{display:grid;gap:.85rem}
.prstudio-research-suggestion{padding:1rem;border:1px solid #d9e1ea;border-radius:6px;background:#fff}
.prstudio-research-suggestion-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:.75rem}
.prstudio-guided-phase-complete{margin:1rem 0;padding:.85rem 1rem;border:1px solid #b7c9b7;border-radius:6px;background:#f5faf5;font-weight:600}
.prstudio-step5-sequence{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.6rem;margin:1rem 0 1.35rem;padding:0;list-style:none}
.prstudio-step5-sequence li{padding:.75rem;border:1px solid #d9e1ea;border-radius:6px;background:#fff}
.prstudio-step5-sequence li.is-current{border-width:2px;font-weight:700}
.prstudio-step5-sequence li.is-complete{font-weight:600}
@media(max-width:782px){
    .prstudio-release-setup-grid,.prstudio-research-source-grid{grid-template-columns:1fr}
    .prstudio-reference-row{grid-template-columns:1fr auto}
    .prstudio-reference-status{grid-column:1 / -1}
    .prstudio-step5-sequence{grid-template-columns:1fr}
}
@media(max-width:520px){
    .prstudio-release-setup-item{grid-template-columns:1fr}
    .prstudio-release-setup-item .prstudio-button{grid-column:1;grid-row:auto;justify-self:start}
    .prstudio-reference-row{grid-template-columns:1fr}
}

/* v0.5.135 Step 1 guided section navigation and persistent progress */
.prstudio-step1-guided-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 286px);
    gap: 24px;
    align-items: start;
}
.prstudio-step1-guided-main { min-width: 0; }
.prstudio-step1-progress-card {
    position: sticky;
    top: 56px;
    z-index: 8;
    box-sizing: border-box;
    max-height: calc(100vh - 76px);
    overflow: auto;
    padding: 16px;
    border: 1px solid #c3c4c7;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.prstudio-step1-progress-card.is-collapsed {
    max-height: none;
    overflow: visible;
}
.prstudio-step1-progress-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.prstudio-step1-progress-heading > div { min-width: 0; }
.prstudio-step1-progress-heading strong,
.prstudio-step1-progress-heading small { display: block; }
.prstudio-step1-progress-heading small { margin-top: 3px; color: #50575e; }
.prstudio-step1-progress-label { margin: 14px 0 6px; color: #50575e; font-size: .9em; }
.prstudio-step1-progress-card .prstudio-progress { display: block; margin: 6px 0 12px; }
.prstudio-step1-progress-card p { margin: 10px 0; }
.prstudio-step1-progress-sections {
    margin: 14px 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #e2e4e7;
}
.prstudio-step1-progress-sections li {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px solid #e2e4e7;
    font-size: .9em;
}
.prstudio-step1-progress-sections li small { color: #646970; white-space: nowrap; }
.prstudio-step1-progress-sections li.is-current span { font-weight: 700; }
.prstudio-step1-progress-sections li.is-current small { color: #2271b1; font-weight: 700; }
.prstudio-step1-progress-sections li.is-reviewed small { color: #2d6a3f; }
.prstudio-step1-section-kicker {
    margin: 4px 0 8px;
    color: #50575e;
    font-size: .94em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.prstudio-step1-guided-section { margin-top: 8px; }
.prstudio-step1-guided-section legend .prstudio-field-importance { font-size: .65em; }
.prstudio-step1-navigation { justify-content: space-between; margin-bottom: 8px; }
.prstudio-step1-navigation .prstudio-button-primary { margin-left: auto; }
.prstudio-step1-utility-actions { margin-top: 8px; padding-top: 12px; border-top: 1px solid #e2e4e7; }
.prstudio-step1-required-warning { width: min(620px, calc(100vw - 32px)); border: 1px solid #8c8f94; border-radius: 8px; padding: 0; }
.prstudio-step1-required-warning::backdrop { background: rgba(0,0,0,.36); }
.prstudio-step1-required-warning .prstudio-dialog-content { padding: 22px; }
.prstudio-step1-required-warning h3 { margin-top: 0; }
.prstudio-step1-required-warning ul { margin: 12px 0 0 1.2rem; }
.prstudio-step1-required-review > .prstudio-builder-header { margin-bottom: 10px; }
.prstudio-step1-review-section { margin-top: 16px; }
.prstudio-step1-required-group {
    padding: 10px 12px;
    border-left: 4px solid #dba617;
    background: #fff8e5;
}
@media (max-width: 920px) {
    .prstudio-step1-guided-shell { grid-template-columns: 1fr; }
    .prstudio-step1-progress-card {
        order: -1;
        top: 8px;
        max-height: 45vh;
    }
}
@media (max-width: 600px) {
    .prstudio-step1-navigation { display: grid; grid-template-columns: 1fr; }
    .prstudio-step1-navigation .prstudio-button-primary { margin-left: 0; }
    .prstudio-step1-progress-sections li { grid-template-columns: 1fr; gap: 2px; }
}


/* v0.5.136 research-discovery activity state */
.prstudio-research-search-progress{display:flex;align-items:flex-start;gap:.8rem;margin-top:.9rem;padding:1rem;border:1px solid #b8c8d8;border-radius:8px;background:#f7fafc}
.prstudio-research-search-progress p{margin:0}
.prstudio-research-search-progress p+p{margin-top:.35rem}
.prstudio-research-search-progress .prstudio-generation-meta{color:#50575e;font-size:.92em}

/* v0.5.137 authoritative AI credit-usage receipt */
.prstudio-credit-receipt {
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid #c3c4c7;
    border-left: 4px solid #2271b1;
    border-radius: 6px;
    background: #f6f7f7;
}
.prstudio-credit-receipt-heading {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.prstudio-credit-receipt-included {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #2c3338;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
.prstudio-credit-receipt dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}
.prstudio-credit-receipt dl > div {
    padding: 8px 10px;
    border-radius: 4px;
    background: #fff;
}
.prstudio-credit-receipt dt {
    margin: 0 0 3px;
    font-size: 12px;
    color: #50575e;
}
.prstudio-credit-receipt dd {
    margin: 0;
    font-size: 16px;
}
.prstudio-credit-receipt .description { margin: 10px 0 0; }
@media (max-width: 700px) {
    .prstudio-credit-receipt dl { grid-template-columns: 1fr; }
}

/* v0.5.139 compact workflow identity on active release pages. */
.prstudio-workflow-compact{
    display:flex;
    align-items:center;
    min-height:44px;
    margin:0 0 1rem;
    padding:.65rem .85rem;
    border:1px solid #c9d3dd;
    border-left:4px solid #2767a5;
    border-radius:6px;
    background:#f7f9fb;
}
.prstudio-workflow-compact strong{font-size:1rem;color:#1d2327}

/* v0.5.139 compact ledger-backed credit receipt. */
.prstudio-credit-receipt{padding:.7rem .85rem}
.prstudio-credit-receipt-summary{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.35rem 1rem}
.prstudio-credit-receipt-summary>span{color:#50575e;font-size:.92rem}
.prstudio-credit-receipt-details{margin-top:.4rem}
.prstudio-credit-receipt-details>summary{cursor:pointer;font-size:.85rem;font-weight:600;color:#174f84}
.prstudio-credit-receipt-details dl{margin-top:.55rem}

/* v0.5.139 consistent PR Studio confirmation and compact-source UI. */
.prstudio-confirm-dialog .prstudio-dialog-content{max-width:560px}
.prstudio-confirm-dialog p{font-size:1rem;line-height:1.5}
.prstudio-research-source-row>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}
.prstudio-research-source-row>summary::-webkit-details-marker{display:none}
.prstudio-research-source-summary span:first-child{display:grid;gap:.2rem}
.prstudio-research-source-summary small{display:block;color:#646970;font-weight:400}
.prstudio-research-source-edit-label{white-space:nowrap;color:#174f84;font-size:.88rem;font-weight:600}
.prstudio-research-source-row[open]>.prstudio-research-source-summary{margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid #dcdcde}
.prstudio-step-credit-usage{margin:.4rem 0 .9rem;color:#3c434a}

/* v0.5.139 progressive disclosure, status, and AI activity consistency. */
.prstudio-inline-saved-status{
    margin:.6rem 0 1rem;
    color:#50575e;
    font-size:.92rem;
    font-weight:600;
}
.prstudio-final-review-history{
    margin:1rem 0 1.25rem;
    border:1px solid #dcdcde;
    border-radius:7px;
    background:#fff;
}
.prstudio-final-review-history>summary{
    cursor:pointer;
    padding:.85rem 1rem;
    font-weight:700;
    color:#174f84;
}
.prstudio-final-review-history[open]>summary{border-bottom:1px solid #dcdcde}
.prstudio-final-review-history-content{padding:1rem}
.prstudio-final-review-history-content>section:first-child{margin-top:0}
.prstudio-final-release-actions{border-left:4px solid #2767a5}
.prstudio-final-mapping-guidance{flex-basis:100%;margin:.35rem 0 0}
.prstudio-source-review-progress,
.prstudio-research-search-progress,
.prstudio-generation-activity,
.prstudio-release-improvement-progress{
    box-sizing:border-box;
    padding:1rem;
    border:1px solid #b8c8d8;
    border-radius:8px;
    background:#f7fafc;
}
.prstudio-source-review-progress,
.prstudio-generation-activity{display:flex;align-items:flex-start;gap:.8rem}
.prstudio-source-review-progress p,
.prstudio-generation-activity p{margin:0}
.prstudio-source-review-progress p+p,
.prstudio-generation-activity p+p{margin-top:.35rem}

/* v0.5.139 progressive disclosure for Step 2 finding detail. */
.prstudio-source-finding-more{margin:.8rem 0;border-top:1px solid #dcdcde;padding-top:.65rem}
.prstudio-source-finding-more>summary{cursor:pointer;font-weight:600;color:#135e96}
.prstudio-source-finding-more-content{margin-top:.7rem}

/* v0.5.142 workflow dialog consistency. */
.prstudio-confirm-dialog{border-radius:0}
.prstudio-confirm-dialog .prstudio-dialog-content{padding:1.25rem}
/* v0.5.149 keep semantic badge colors when badges appear inside collapsible summaries. */
.prstudio-collapsible-section > summary .prstudio-importance-required,
.prstudio-inline-details > summary .prstudio-importance-required { color:#614200; }
.prstudio-collapsible-section > summary .prstudio-importance-optional,
.prstudio-inline-details > summary .prstudio-importance-optional,
.prstudio-collapsible-section > summary .prstudio-importance-recommended,
.prstudio-inline-details > summary .prstudio-importance-recommended,
.prstudio-collapsible-section > summary .prstudio-importance-decision,
.prstudio-inline-details > summary .prstudio-importance-decision { color:#0a4b78; }


/* v0.5.151 neutral explanatory surfaces and shared section geometry. */
.prstudio-card,.prstudio-form-section,.prstudio-collapsible-section,.prstudio-inline-details{border-color:var(--prstudio-neutral-border,#c3c4c7);border-radius:6px}
.prstudio-review-recommendation{border-left-color:#8c8f94;background:var(--prstudio-neutral-flag-bg,#f5f6f7)}
.prstudio-recommendation-explanation{border-top-color:#8c8f94;background:var(--prstudio-neutral-reason-bg,#eceff1);color:#2c3338}
.prstudio-release-improvement-progress{border-color:var(--prstudio-neutral-border,#c3c4c7);background:var(--prstudio-section-bg,#f6f7f7);color:#3c434a}
.prstudio-editing-instructions{border-left-color:#8c8f94;background:var(--prstudio-section-bg,#f6f7f7)}

/* v0.5.155 PR Studio semantic design system */
.prstudio-review-note.prstudio-review-note-requirement-required{border-left-color:var(--prstudio-required,#b87918)!important}
.prstudio-review-note.prstudio-review-note-requirement-optional{border-left-color:var(--prstudio-optional,#2271b1)!important}
.prstudio-credit-receipt{border-left-color:var(--prstudio-passed,#1a7f37)!important;background:#edf8ef!important}
.prstudio-credit-receipt-details>summary{color:#1f5f35!important}
.prstudio-reference-include-choice{display:flex;align-items:center;gap:.4rem;font-size:.92rem}
.prstudio-ai-privacy-disclosure{margin-top:1rem;padding-top:.75rem;border-top:1px solid #dcdcde;color:#50575e}
.prstudio-ai-privacy-disclosure>summary{cursor:pointer;font-weight:600;color:#3c434a}
.prstudio-step3-continue-after-draft{margin-top:1.25rem;padding-top:1rem;border-top:1px solid #dcdcde}
.prstudio-step2-optional-check{border-left:4px solid var(--prstudio-optional,#2271b1);padding:1rem;background:#fff}
.prstudio-notice-neutral{border-left-color:#8c8f94!important;background:#f6f7f7!important}
@media print{.prstudio-ai-finding-priority-section,.prstudio-source-finding-groups{break-inside:auto!important}.prstudio-ai-finding-priority-header,.prstudio-release-notes>.prstudio-builder-header{break-after:avoid-page;page-break-after:avoid}}

/* v0.5.155 workflow semantic section and receipt refinements */
.prstudio-release-notes-requirement-required,.prstudio-section-requirement-required{border-left:4px solid var(--prstudio-required,#b87918)}
.prstudio-release-notes-requirement-optional,.prstudio-section-requirement-optional{border-left:4px solid var(--prstudio-optional,#2271b1)}
.prstudio-ai-review-overview-status{display:flex;flex-direction:column;align-items:flex-end;gap:.55rem;min-width:min(360px,100%)}
.prstudio-step2-compact-receipt{width:100%;max-width:360px}
.prstudio-step2-compact-receipt .prstudio-credit-receipt{margin:0;padding:.55rem .7rem;border-left-color:var(--prstudio-passed,#1a7f37);background:#edf8ef}
.prstudio-step2-compact-receipt .prstudio-credit-receipt-summary{display:block}
.prstudio-step2-compact-receipt .prstudio-credit-receipt-summary strong,.prstudio-step2-compact-receipt .prstudio-credit-receipt-summary span{display:block}
.prstudio-step2-compact-receipt .prstudio-credit-receipt-summary span{font-size:.88em;margin-top:.15rem}
.prstudio-ai-privacy-disclosure{margin-top:1rem;padding-top:.6rem;border-top:1px solid #dcdcde;color:#50575e}
.prstudio-ai-privacy-disclosure>summary{cursor:pointer;font-weight:600}
@media(max-width:760px){.prstudio-ai-review-overview-status{align-items:flex-start;width:100%;min-width:0}.prstudio-step2-compact-receipt{max-width:none}}

/* v0.5.156 contextual comparisons, compact step-credit summaries, and action hierarchy. */
.prstudio-step-credit-summary{width:min(380px,100%);margin-left:auto}
.prstudio-step-credit-summary .prstudio-credit-receipt{margin:0;padding:.6rem .75rem}
.prstudio-step-credit-summary .prstudio-credit-receipt-summary{display:block}
.prstudio-step-credit-summary .prstudio-credit-receipt-summary strong,.prstudio-step-credit-summary .prstudio-credit-receipt-summary span{display:block}
.prstudio-step-credit-summary .prstudio-credit-receipt-summary span{margin-top:.15rem;font-size:.88em}
.prstudio-step-credit-total{margin:.35rem 0 0;font-size:.86em;color:#50575e;text-align:right}
.prstudio-standard-contextual-comparison{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1rem 0}
.prstudio-standard-contextual-comparison.is-single-result{grid-template-columns:1fr}
.prstudio-standard-contextual-comparison>section{padding:1rem;border:1px solid var(--prstudio-neutral-border,#c3c4c7);border-radius:6px;background:#fff}
.prstudio-standard-contextual-comparison h5{margin:0 0 .6rem;font-size:.95rem}
.prstudio-contextual-diff-text{line-height:1.55}
.prstudio-contextual-current .prstudio-context-diff-change{background:var(--prstudio-neutral-flag-bg,#e2e4e7);box-shadow:inset 0 -2px 0 var(--prstudio-neutral-strong,#646970);color:inherit;padding:0 .08em}
.prstudio-contextual-suggested .prstudio-context-diff-change{background:var(--prstudio-neutral-reason-bg,#eceff1);box-shadow:inset 0 -2px 0 #8c8f94;color:inherit;padding:0 .08em}
.prstudio-diff-ellipsis{color:#646970;font-weight:700;padding:0 .15em}
.prstudio-standard-suggestion-card[data-prstudio-requirement="optional"]{border-left:4px solid var(--prstudio-optional,#2271b1)}
.prstudio-finalize-primary,.prstudio-forward-primary{font-size:1.12rem!important;padding:.85rem 1.45rem!important;min-height:48px}
.prstudio-final-review-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-top:.75rem}
.prstudio-final-review-summary-grid>div{padding:.75rem;border:1px solid var(--prstudio-neutral-border,#c3c4c7);border-radius:6px;background:#fff}
.prstudio-final-review-summary-grid dt{font-size:.85em;color:#50575e}.prstudio-final-review-summary-grid dd{margin:.2rem 0 0;font-weight:600}
@media(max-width:760px){.prstudio-step-credit-summary{width:100%;margin-left:0}.prstudio-step-credit-total{text-align:left}.prstudio-standard-contextual-comparison,.prstudio-final-review-summary-grid{grid-template-columns:1fr}}


/* v0.5.158 workflow title and Step 1 disclosure consistency. */
.prstudio-release-working-title{margin:0 0 .45rem;font-size:clamp(1.4rem,2vw,1.75rem);line-height:1.2;font-weight:700;color:#1d2327}
.prstudio-step1-ai-privacy-notice{margin:1rem 0 1.25rem}

/* v0.5.165: consistent source-card titles and busy navigation feedback. */
.prstudio-source-card-title{display:block;margin:0;font-size:1.15rem;font-weight:700;line-height:1.3}
.prstudio-research-suggestions h5.prstudio-source-card-title{margin:0 0 .6rem}
.prstudio-research-source-summary .prstudio-source-card-title{font-size:1.15rem;font-weight:700}
.prstudio-button .prstudio-button-spinner{display:inline-block;width:1em;height:1em;margin-right:.45rem;vertical-align:-.15em}

/* v0.5.168 shared semantic-border geometry: 4px semantic border + 12px content inset. */
.prstudio-required-group,
.prstudio-optional-group,
.prstudio-review-recommendation,
.prstudio-form-notice,
.prstudio-source-finding-requirement-required,
.prstudio-source-finding-group-required,
.prstudio-review-note-requirement-required,
.prstudio-final-finding-requirement-required,
.prstudio-source-finding-requirement-optional,
.prstudio-source-finding-group-optional,
.prstudio-review-note-requirement-optional,
.prstudio-final-finding-requirement-optional,
.prstudio-final-decision-item-requirement-optional,
.prstudio-release-notes-requirement-required,
.prstudio-section-requirement-required,
.prstudio-release-notes-requirement-optional,
.prstudio-section-requirement-optional,
.prstudio-step2-optional-check,
.prstudio-standard-suggestion-card[data-prstudio-requirement="optional"]{padding-left:12px;box-sizing:border-box;}

/* v0.5.168 administrator end-to-end scenario summary. */
.prstudio-test-scenario-summary{margin:.85rem 0;padding:.85rem 1rem;border:1px solid var(--prstudio-neutral-border,#c3c4c7);border-radius:6px;background:var(--prstudio-section-bg,#f6f7f7)}
.prstudio-test-scenario-summary>p{margin:0 0 .65rem}
.prstudio-test-scenario-summary dl{display:grid;gap:.45rem;margin:0}
.prstudio-test-scenario-summary dl>div{display:grid;grid-template-columns:minmax(140px,.32fr) minmax(0,1fr);gap:.6rem}
.prstudio-test-scenario-summary dt{font-weight:700}.prstudio-test-scenario-summary dd{margin:0}
.prstudio-test-scenario-checklist{margin:.85rem 0}.prstudio-test-scenario-checklist>summary{cursor:pointer;font-weight:700}.prstudio-test-scenario-checklist ul{margin:.65rem 0 .65rem 1.25rem}
@media(max-width:640px){.prstudio-test-scenario-summary dl>div{grid-template-columns:1fr;gap:.15rem}}

/* v0.5.170 Step 1 completed-section navigation and shared processing indicator */
.prstudio-step1-section-navigation{margin:0 0 1rem;padding:.85rem 0;border-top:1px solid #d9e1ea;border-bottom:1px solid #d9e1ea}
.prstudio-step1-section-navigation-links{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.55rem}
.prstudio-step1-section-navigation .is-current{font-weight:700}
.prstudio-button>.prstudio-generation-spinner{margin-right:.5rem;vertical-align:-.2rem}
@media (max-width:782px){.prstudio-step1-section-navigation-links{display:grid;grid-template-columns:1fr}}
.prstudio-step1-complete-forward .prstudio-button-large{font-size:1.05rem;padding:.8rem 1.25rem}

/* v0.5.174 Step 1 uses the shared external processing indicator instead of button-embedded spinners. */
.prstudio-step1-processing-status:not(:empty){margin-top:.85rem}
.prstudio-step1-processing-status .prstudio-generation-activity{margin:.5rem 0 0}
