/* Scoped to restored hero components; original workflows and result styles retained. */
.complete-hero{position:relative;isolation:isolate;display:block;aspect-ratio:3/1;min-height:330px;overflow:hidden;border:1px solid #e0e9e6;border-radius:16px;margin:0 0 22px;background:#f4f6f2;padding:0;gap:0}
.complete-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;z-index:-2}
.complete-copy{width:49%;padding:clamp(20px,2.1vw,34px);position:relative;display:flex;flex-direction:column;justify-content:center;min-height:330px;height:100%;background:linear-gradient(90deg,#fafcf8d9,#fafcf873 85%,transparent);box-sizing:border-box}
.complete-copy h1{font-size:clamp(30px,3vw,46px);line-height:1.1;margin:10px 0 12px;color:#083b49}
.complete-copy p{font-size:14px;line-height:1.5;color:#284b55;margin:0 0 18px}.complete-copy .eyebrow{font-size:11px;letter-spacing:.08em;color:#006c6c}
.complete-copy .reference-task{padding:5px;display:flex;gap:6px;background:white;border:1px solid #d4e3df;border-radius:9px;margin:0}.complete-copy .reference-task input{min-width:0;width:0;flex:1;border:0;background:white;padding:10px;font-size:12px;color:#183b46}.complete-copy .reference-task button{white-space:nowrap;padding:10px 12px;font-size:12px;min-height:44px}
.complete-benefits{display:flex;gap:12px;margin-top:20px;color:#163f48}.complete-benefits span{display:flex;align-items:center;gap:7px;font-size:11px}.complete-benefits svg{width:22px;height:22px;flex:none}.complete-benefits strong{font-size:24px}
.complete-copy .filters,.complete-copy .pills{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0 0}.complete-copy .filter-pill{padding:7px 10px;font-size:11px;background:#ffffffeb;border:1px solid #b9ccc8;color:#123e46}.complete-copy .filter-pill[aria-pressed=true]{background:#0e3b3a;color:white}
.complete-actions{position:absolute;right:18px;top:37%;width:18%;display:grid;gap:8px}.complete-action{display:flex;gap:8px;align-items:center;text-align:left;border:1px solid #cce2dc;border-radius:10px;background:#f5fffcf2;color:#073d45;padding:12px;font-size:12px;line-height:1.3;box-shadow:0 5px 16px #143b3a12}.complete-action svg{width:22px;height:22px;flex:none}.complete-action small{display:block;margin-top:5px;font-size:10px;color:#006d69}
.complete-quote{position:absolute;right:18px;bottom:12px;max-width:18%;margin:0;padding:10px;border-radius:10px;background:#f4fffcf0;color:#0e3b3a;font:italic 16px/1.3 Georgia,serif}
.complete-metrics{position:absolute;right:18px;bottom:18px;width:23%}.complete-metrics .stats{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:0}.complete-metrics .stat{padding:10px;background:#fffffff5;border-radius:8px;min-height:0;color:#0b3943}.complete-metrics .stat strong{font-size:25px}.complete-metrics .stat small{font-size:9px}.complete-metrics .stat svg{width:16px;height:16px}
.complete-dark{background:#002d31}.complete-dark .complete-copy{background:linear-gradient(90deg,#002d31e8,#002d3170 88%,transparent)}.complete-dark .complete-copy h1,.complete-dark .complete-copy p,.complete-dark .complete-copy .eyebrow{color:#fff}.complete-dark .filter-pill{background:#073e43;color:#fff;border-color:#397174}
.complete-metrics .stat small{color:#36565e}.complete-metrics .stats-note{color:#173e45;background:#ffffffed;border-radius:6px;padding:4px}
.complete-hero button:focus-visible,.complete-hero input:focus-visible{outline:3px solid #c89d42;outline-offset:3px}
.complete-hero[data-complete-hero="documents_writing"] .complete-actions,.complete-hero[data-complete-hero="business"] .complete-actions{top:auto;bottom:72px}.complete-hero[data-complete-hero="presentations"] .complete-quote{top:18px;bottom:auto}
.reference-body.with-rail{grid-template-columns:minmax(0,1fr) 235px;gap:20px}.reference-entry{margin:0 0 20px}.reference-body .resource-grid{gap:18px}.section-head{margin-top:18px}
@media(min-width:1200px){#rockstar-desks-grid,#expert-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}}
@media(max-width:1199px){.complete-hero{aspect-ratio:auto;min-height:0;display:flex;flex-wrap:wrap;background:#f4f7f3}.complete-art{position:relative;inset:auto;width:100%;height:auto;aspect-ratio:3/1;object-fit:contain;z-index:0;order:1}.complete-copy{width:100%;height:auto;min-height:0;padding:22px;background:none;order:0}.complete-copy h1{font-size:32px}.complete-copy p{font-size:14px}.complete-actions,.complete-hero[data-complete-hero] .complete-actions{position:relative;inset:auto;width:auto;display:flex;flex-wrap:wrap;flex:1;order:2;margin:12px;gap:8px}.complete-action{flex:1;min-width:150px}.complete-quote,.complete-hero[data-complete-hero] .complete-quote{position:relative;inset:auto;max-width:none;width:auto;order:3;margin:12px;align-self:center}.complete-metrics{position:relative;inset:auto;width:100%;order:2;padding:12px}.complete-metrics .stats{grid-template-columns:repeat(4,1fr)}.complete-dark{background:#002d31}.complete-dark .complete-copy{background:none}.reference-body.with-rail{grid-template-columns:1fr}}
@media(max-width:600px){.complete-copy{padding:20px}.complete-copy .reference-task{flex-wrap:wrap}.complete-copy .reference-task input{width:100%;flex-basis:100%;font-size:14px;min-height:44px}.complete-copy .reference-task button{width:100%;font-size:14px}.complete-benefits{flex-wrap:wrap}.complete-copy .filters .filter-pill,.complete-copy .pills .filter-pill{min-height:40px}.complete-metrics .stats{grid-template-columns:1fr 1fr}.complete-hero .complete-art{aspect-ratio:3/1;object-fit:contain}}
/* Preserve the real file preview rather than substituting a generic chart. */
.actual-file-preview{margin:4px 0 12px;background:#f7faf9;border:1px solid #dce5e1;border-radius:8px;overflow:hidden}
.actual-file-preview .resource-thumbnail{display:block;width:100%;height:160px;object-fit:contain;object-position:center;margin:0;border:0;border-radius:0;background:#fff}
.actual-file-preview figcaption{padding:5px 9px;color:#47626a;font-size:11px;border-top:1px solid #e4ece9}
.file-showcase-grid .file-preview-open img{object-fit:contain;background:#fff}
@media(min-width:1200px){
 .complete-copy h1{font-size:clamp(30px,2.7vw,40px)}
 .complete-hero[data-complete-hero="output"],.complete-hero[data-complete-hero="creator"]{aspect-ratio:4/1;min-height:280px}
 .complete-hero[data-complete-hero="output"] .complete-copy,.complete-hero[data-complete-hero="creator"] .complete-copy{min-height:280px;width:55%;padding:22px}
 .complete-hero[data-complete-hero="output"] .complete-art,.complete-hero[data-complete-hero="creator"] .complete-art{inset:0 0 0 auto;width:auto;height:100%;max-width:100%;object-fit:contain}
 .complete-hero[data-complete-hero="output"] .complete-benefits,.complete-hero[data-complete-hero="creator"] .complete-benefits{margin-top:12px}
 .reference-entry .entry-card:nth-child(3n+1){border-top:3px solid #c95e38;background:linear-gradient(135deg,#fff1e8,#fff)}
 .reference-entry .entry-card:nth-child(3n+2){border-top:3px solid #8262b8;background:linear-gradient(135deg,#f2eaff,#fff)}
 .reference-entry .entry-card:nth-child(3n){border-top:3px solid #b68b1b;background:linear-gradient(135deg,#fff6d8,#fff)}
}
@media(max-width:600px){.actual-file-preview .resource-thumbnail{height:auto;max-height:220px;min-height:100px}}
/* RC36A: keep all banner actions inside the artwork and help within reach. */
@media(min-width:1200px){
 .complete-hero[data-complete-hero] .complete-actions{top:auto;bottom:16px}
}
.right-rail{align-self:start;gap:12px}
.rail-disclosure{padding:14px;align-self:start}
.rail-disclosure summary{cursor:pointer;font-weight:700;color:#0e3b3a;line-height:1.4}
.rail-disclosure[open] summary{margin-bottom:14px}
.rail-disclosure summary:focus-visible{outline:3px solid #c89d42;outline-offset:4px}
.sidebar nav button:hover:not([aria-current="page"]),.sidebar nav a:hover:not([aria-current="page"]){background:transparent;color:#fff;text-decoration:underline;text-underline-offset:4px}
/* Selection must change immediately, without the previous page fading out as a second selection. */
.sidebar nav [data-page],.sidebar nav [data-view]{transition:none}

/* RC37: app chrome rules must not impose fixed heights on generated content. */
.recovery-workspace .aiw-result-head{position:static;height:auto;min-height:0;display:flex;align-items:flex-start;padding:24px;gap:16px;z-index:auto;overflow-wrap:anywhere}
.recovery-workspace .aiw-result-head>div{min-width:0;flex:1}
.recovery-workspace .aiw-result-head h2{margin:8px 0;line-height:1.25}
.recovery-workspace .aiw-result-meta,.recovery-workspace .aiw-result-actions,.recovery-workspace .aiw-result-continue,.recovery-workspace .aiw-revision-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.recovery-workspace .aiw-result{background:white;border:1px solid var(--border-subtle);border-radius:16px;overflow:hidden}
.recovery-workspace .aiw-result>section,.recovery-workspace .aiw-result>div,.recovery-workspace .aiw-result>details,.recovery-workspace .aiw-result>p{padding:20px;margin:0}
.recovery-workspace .aiw-result-card{border-top:1px solid var(--border-subtle)}
.recovery-workspace .aiw-work-section{margin:24px 0;line-height:1.65}
.recovery-workspace .aiw-table-wrap{overflow-x:auto;max-width:100%}
.recovery-workspace .aiw-table-wrap table{border-collapse:collapse;width:100%}
.recovery-workspace .aiw-table-wrap th,.recovery-workspace .aiw-table-wrap td{padding:10px;border:1px solid var(--border-subtle);text-align:left}
.recovery-workspace .aiw-close{flex:none}
@media(max-width:600px){.recovery-workspace .aiw-result-head{padding:16px}.recovery-workspace .aiw-result-head h2{font-size:25px}.recovery-workspace .aiw-result-meta{align-items:flex-start;flex-direction:column}}

/* RC38: task guidance and every result state remain in normal document flow. */
.recovery-workspace .workspace-return{position:static;inset:auto;margin-bottom:24px;flex-wrap:wrap;height:auto}
.recovery-workspace h1{line-height:1.2;overflow-wrap:anywhere}
.recovery-workspace #aiwResults header{position:static;height:auto;min-height:0;display:flex;flex-wrap:wrap;gap:16px;padding:20px;align-items:flex-start}
.recovery-workspace #aiwResults h2,.recovery-workspace #aiwResults h3{line-height:1.35;overflow-wrap:anywhere;margin:0 0 12px}
.recovery-workspace #aiwResults p{line-height:1.6;overflow-wrap:anywhere}
.workflow-field{padding:18px 0;border-bottom:1px solid #ddd}.workflow-field p{margin:8px 0;line-height:1.6}.workflow-field textarea{width:100%;box-sizing:border-box;min-height:100px}.workflow-field details{margin:12px 0}
.workflow-full-prompt{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.65 inherit;max-height:60vh;overflow:auto;padding:16px;background:#f6f8f8}
.workflow-desk-guide details{padding:14px 0;border-bottom:1px solid #ddd}.workflow-desk-guide summary{cursor:pointer;font-weight:650}.workflow-desk-guide p,.workflow-desk-guide li{line-height:1.65;white-space:pre-line}
