/* Reuses the approved Design Guide modal layout; selectors affect this feature only. */
.dg-modal .eyebrow { display: none; }
.dg-modal { width: min(760px, 94vw); padding: 27px; max-height: 92vh; overflow: auto; }
.dg-modal h2 { margin: 0 160px 8px 0; font-size: 19px; }
.dg-modal .modal-close { top: 24px; right: 24px; width: auto; height: auto; border-radius: 0; font-size: 12px; color: #9da9ae; }
.dg-modal .modal-close:hover { color: #e8c484; }
.dg-modal .modal-actions { display: none; }
.dg-modal.dg-confirm { width: min(475px, 94vw); }
.dg-intro { margin: 0 0 22px; color: #93a1a7; font-size: 12px; line-height: 1.7; }
.dg-price { margin: 24px 0; padding: 15px; border: 1px solid #3e4035; border-radius: 9px; color: #e8c484; background: #202725; font-size: 14px; }
.dg-price b { font-size: 20px; }
.dg-confirm-actions { display: flex; gap: 12px; justify-content: flex-end; }
.dg-confirm-actions button { min-width: 126px; padding: 10px 17px; }
.dg-progress-head { display: flex; gap: 14px; align-items: center; margin: 24px 0 21px; }
.dg-progress-head > span { flex: 0 0 36px; color: #c7d0d4; font-size: 12px; font-weight: 700; }
.dg-progress { height: 5px; flex: 1; overflow: hidden; border-radius: 3px; background: #2a353a; }
.dg-progress > span { display: block; height: 100%; border-radius: inherit; background: #edc172; transition: width .25s ease; }
.dg-question { margin: 0 0 18px; color: #f0f2f2; font-size: 17px; font-weight: 600; line-height: 1.6; }
.dg-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dg-option { position: relative; display: flex; min-height: 144px; flex-direction: column; align-items: flex-start; gap: 16px; padding: 13px 12px 25px; border: 1px solid #344046; border-radius: 9px; color: #e1e5e7; background: #1b262b; text-align: left; line-height: 1.6; font-size: 12px; }
.dg-option:hover { border-color: #8b7651; background: #222c2e; }
.dg-option > b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 6px; background: #344045; font-size: 12px; }
.dg-option[aria-checked="true"] { border-color: #edc172; background: #242b2b; box-shadow: inset 0 0 0 1px #edc17233; }
.dg-option[aria-checked="true"]::after { content: "✓"; position: absolute; bottom: 8px; right: 11px; color: #edc172; font-size: 17px; }
.dg-option:disabled { cursor: default; opacity: .64; }
.dg-option:disabled[aria-checked="true"] { opacity: 1; }
.dg-answer-status { display: flex; min-height: 57px; align-items: center; gap: 12px; margin-top: 5px; color: #93a2a8; font-size: 12px; }
.dg-answer-status.is-submitting { color: #e8c484; }
.dg-answer-status.is-submitting::before, .dg-loading-dot { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #e8c484; animation: dg-breathe 1.1s ease-in-out infinite; }
.dg-answer-status small { color: #9ba7ac; font-size: 12px; }
.dg-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.dg-footer button { min-width: 136px; padding: 10px 16px; font-size: 12px; }
.dg-footer .gold-button { min-width: 143px; }
.dg-footer button:disabled { opacity: .44; cursor: default; }
.dg-local-note { margin: 16px 0 0; color: #73868d; font-size: 10px; }
.dg-loading { display: flex; gap: 13px; align-items: center; min-height: 105px; color: #e8c484; }
.dg-complete-mark { color: #e8c484; font-size: 30px; margin: 20px 0 12px; }
.dg-review-list { display: grid; gap: 8px; margin: 23px 0; }
.dg-review-item { display: flex; justify-content: space-between; align-items: center; gap: 15px; width: 100%; padding: 12px 14px; border: 1px solid #344047; border-radius: 8px; color: #d7dee1; background: #1a252a; text-align: left; }
.dg-review-item span { color: #b3bec3; font-size: 12px; }
.dg-review-item small { color: #dbb879; white-space: nowrap; }
.dg-result-state { padding: 20px 0; color: #8b9a9f; font-size: 13px; line-height: 1.8; }
.dg-summary-list { margin: 18px 0; padding: 14px; border: 1px solid #354047; border-radius: 9px; color: #b5c0c5; font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
@keyframes dg-breathe { 50% { opacity: .28; transform: scale(.8); } }
.dg-inline-progress { margin: 12px 0; padding: 12px 16px; border: 1px solid rgba(221, 173, 95, .3); border-radius: 12px; color: #e2c28c; background: rgba(221, 173, 95, .06); font-size: 14px; line-height: 1.6; }
.dg-inline-progress[hidden] { display: none; }
.dg-flow-card { margin: 12px 0; padding: 16px; border: 1px solid #594c36; border-radius: 12px; background: #141d21; color: #e2c28c; font-size: 13px; line-height: 1.6; }
.dg-flow-heading { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.dg-flow-heading span, .dg-flow-stages { color:#93a2a8; font-size:12px; }
.dg-flow-card p { margin:10px 0; }
.dg-flow-card small { display:block; margin-top:8px; color:#b7c2c6; }
.dg-flow-card[data-stage="complete"] { border-color:#4b7164; }
.dg-analysis-card { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0; padding: 10px 12px; border: 1px solid #594c36; border-radius: 9px; color: #e8c484; background: #182023; font-size: 13px; line-height: 1.6; }
.dg-analysis-card[hidden] { display: none; }
.result-meta .result-status-row[data-testid="dg-result-status"] strong { flex-shrink: 0; white-space: nowrap; }
.result-meta .result-status-row[data-testid="dg-result-status"] em { white-space: normal; overflow-wrap: anywhere; }
.dg-analysis-card > span:not(.dg-loading-dot) { flex: 1; min-width: 150px; }
.dg-analysis-card button { padding: 5px 9px; border: 1px solid #665638; border-radius: 6px; color: #e8c484; background: transparent; cursor: pointer; }
@media (max-width: 680px) { .dg-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dg-option { min-height: 120px; } .dg-modal { padding: 22px; } .dg-modal h2 { font-size: 18px; } }
@media (max-width: 680px) { #designGuideBackdrop { padding: 12px; } #designGuideBackdrop .dg-modal { width: min(94vw, calc(100vw - 24px)); } }
@media (max-width: 380px) { #designGuideBackdrop .dg-footer button, #designGuideBackdrop .dg-confirm-actions button { flex: 1; min-width: 0; padding-inline: 10px; } }
@media (prefers-reduced-motion: reduce) { .dg-answer-status.is-submitting::before, .dg-loading-dot { animation: none; } .dg-progress > span { transition: none; } }

/* Guide cancellation stays within the existing card/dialog; no page reset. */
.dg-cancel-row { display:flex; justify-content:flex-end; margin:0 0 12px; }
.dg-cancel-row button { font-size:14px; padding:7px 12px; }
