.guideline-review-form { display: grid; gap: 14px; margin: 16px 0; }
.gw-connection {flex:none;margin:0;padding:12px 18px;background:#fff4df;color:#654713;font-size:14px;}
.guideline-review-form label, .guideline-workflow-card label { display: grid; gap: 6px; font-weight: 500; }
.guideline-review-form input:not([type=checkbox]), .guideline-review-form textarea, .guideline-review-form select, .guideline-workflow-card textarea { box-sizing: border-box; width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 6px; color: inherit; background: white; font: inherit; }
.guideline-review-form input[type=checkbox] { width: auto; justify-self: start; }
.guideline-workflow-card { padding: 20px; border: 1px solid #d8dee8; border-radius: 10px; margin: 16px 0; }
.guideline-workflow-option { padding: 16px; background: #f7f8fa; border-radius: 8px; margin: 12px 0; }
.guideline-workflow-card .btn, #brand-library-review-detail-content > .btn { margin: 8px 8px 8px 0; }
#brand-library-review-detail-content details { margin: 18px 0; }
#brand-library-review-detail-content summary { cursor: pointer; font-weight: 600; }

/* Reuse the Review & Approve shell, fonts, burgundy topic state and portal buttons. */
.portal-page #panel-knowledge:has(#setup-panel-live.active) [data-confirm-tag] {display:none;}
.portal-page #panel-knowledge #setup-steps #btn-publish {display:none;}
.portal-page #panel-knowledge:has(#setup-panel-live.active) #setup-steps #btn-publish {display:inline-flex;}
.portal-page #panel-knowledge #setup-panel-live.guideline-conflict-workspace .setup-publish-card>.intake-upload-card__header {display:none;}
.portal-page #panel-knowledge #setup-panel-live.guideline-conflict-workspace {overflow:hidden;padding:0;min-height:0;}
.portal-page #panel-knowledge #setup-panel-live.guideline-conflict-workspace .brand-library-unlock {display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;gap:0;}
.portal-page #panel-knowledge #setup-panel-live.guideline-conflict-workspace .setup-publish-card {display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding:0;border:0;}
.portal-page #panel-knowledge #setup-panel-live.guideline-conflict-workspace .intake-upload-card__header {padding:12px 20px;margin:0;flex:none;}
.portal-page #panel-knowledge #setup-panel-live.guideline-conflict-workspace .intake-step-sidebar,
.portal-page #panel-knowledge #setup-panel-live.guideline-conflict-workspace #publish-step-help {display:none;}
.portal-page #panel-knowledge #setup-panel-live.guideline-conflict-workspace #publish-preview.gw-workspace {height:auto;min-height:0;flex:1;margin:0;padding:0;overflow:hidden;}
.portal-page #panel-knowledge #setup-panel-live.guideline-conflict-workspace #publish-result:empty {display:none;}
.portal-page #panel-knowledge #setup-panel-live.guideline-conflict-workspace [hidden] {display:none!important;}
.gw-workspace .gw-toolbar {flex-wrap:wrap;flex:none;font-size:14px;gap:6px 16px;}
.gw-workspace .gw-nav>.gw-toolbar {padding:0 0 12px;margin-bottom:12px;font-size:13px;}
.gw-workspace .gw-toolbar strong {margin-right:0;}
.gw-workspace .gc-layout {grid-template-columns:310px minmax(0,1fr);}
.gw-workspace .gw-main h2 {font-size:25px;line-height:1.3;margin:0 0 10px;}
.gw-workspace .gw-main p {margin:8px 0;}
.gw-workspace .gw-main .gc-card-heading {padding-right:0;}
.gw-workspace .gw-comparison {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch;}
.gw-workspace .gw-source {display:flex;flex-direction:column;min-width:0;border:1px solid #dbe0e7;border-radius:8px;padding:14px;overflow-wrap:anywhere;}
.gw-workspace .gw-source-heading {margin:-14px -14px 10px;padding:12px 14px;background:#f6f7f9;border-bottom:1px solid #dbe0e7;border-radius:8px 8px 0 0;}
.gw-workspace .gw-source h3 {font-size:15px;margin:0 0 4px;line-height:1.4;}
.gw-workspace .gw-label {font-size:12px;font-weight:600;}
.gw-workspace .gw-source blockquote {font-size:16px;line-height:1.6;margin:4px 0 12px;padding:0;border:0;white-space:pre-wrap;}
.gw-workspace .gw-source>.btn {align-self:start;margin-top:auto;}
.gw-workspace .gw-full {font-size:13px;margin:0 0 10px;}
.gw-workspace summary {cursor:pointer;color:#70243f;font-weight:600;}
.gw-workspace .gw-note {background:#f6f7f9;border-left:3px solid #dbe0e7;padding:10px 12px;font-size:13px;}
.gw-workspace .gw-decisions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0;margin:16px 0 10px;border:0;min-width:0;}
.gw-workspace .gw-decisions legend {font-weight:600;margin-bottom:10px;font-size:16px;}
.gw-workspace .gw-choice {display:flex;align-items:start;gap:10px;border:1px solid #dbe0e7;border-radius:8px;padding:12px;cursor:pointer;font-size:14px;}
.gw-workspace .gw-choice:has(input:checked) {background:#f7eef2;border-color:#97144d;}
.gw-workspace .gw-choice input {margin:4px 0 0;accent-color:#97144d;flex:none;}
.gw-workspace .gw-choice strong,.gw-workspace .gw-choice small {display:block;}
.gw-workspace .gw-choice small {color:#697686;font-size:12px;margin-top:4px;}
.gw-workspace .gw-reason {display:grid;gap:6px;font-size:14px;}
.gw-workspace .gw-reason textarea {width:100%;font:inherit;color:inherit;padding:10px;border:1px solid #c7ced8;border-radius:7px;box-sizing:border-box;}
.gw-workspace .gw-actions {display:flex;gap:10px;border-top:1px solid #dbe0e7;padding:12px 0;margin-top:14px;background:white;}
.gw-workspace .gw-actions>.btn:last-child {margin-left:auto;}
.gw-workspace .gw-error {color:#a02525;font-size:13px;}
.gw-workspace .gw-error:empty {display:none;}
.gw-workspace .gw-pager {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;flex:none;font-size:13px;}
.gw-workspace .gc-topics {padding-bottom:4px;flex:1;}
.gw-workspace .gw-main h2:focus {outline:none;}
.gw-workspace .gw-main.gw-pinned-evidence {display:block;overflow:auto;min-height:0;}
.gw-workspace .gw-pinned-evidence>.gc-card-heading {max-height:none;overflow:visible;}
.gw-workspace .gw-pinned-evidence>.gw-comparison {max-height:none;}
.gw-workspace .gw-pinned-evidence .gw-source {overflow:visible;}
.gw-workspace .gw-decision-controls {min-height:160px;overflow:visible;padding-top:8px;}
.gw-workspace .gw-decision-controls .gw-actions {position:sticky;bottom:0;z-index:1;margin-bottom:0;}
.gw-workspace .gw-explanation {font-size:14px;line-height:1.5;}
.gw-workspace .gw-change-preview {border:1px solid #dbe0e7;border-radius:8px;padding:12px;margin:12px 0;font-size:14px;}
.gw-workspace .gw-before {background:#f6f7f9;padding:8px;white-space:pre-wrap;}
.gw-workspace .gw-after {background:#e2f4e9;padding:8px;white-space:pre-wrap;}
.gw-workspace .gw-decision-controls>.gc-correction-body {max-height:none;overflow:visible;padding:0;}
/* Keep the evidence and business choices in one compact reading flow. */
.portal-page .gw-workspace .gw-main {padding:18px 24px;}
.portal-page .gw-workspace .gw-main h2 {font-size:22px;line-height:1.3;}
.portal-page .gw-workspace .gw-main .gc-card-heading {margin:0 0 12px;padding-bottom:0;border:0;}
.portal-page .gw-workspace .gw-main .gc-card-heading>.gc-meta {font-size:12px;margin:0 0 5px;}
.portal-page .gw-workspace .gw-source {padding:12px;font-size:14px;}
.portal-page .gw-workspace .gw-source-heading {margin:-12px -12px 8px;padding:8px 12px;}
.portal-page .gw-workspace .gw-source-heading {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;align-items:center;}
.portal-page .gw-workspace .gw-source-heading h3 {grid-column:1;}
.portal-page .gw-workspace .gw-source-heading .gc-meta {grid-column:1;}
.portal-page .gw-workspace .gw-source-link {grid-column:2;grid-row:1 / 3;}
.portal-page .gw-workspace .gw-source {display:block;}
.portal-page .gw-workspace .gw-source .gw-full {margin:6px 0 0;}
.portal-page .gw-workspace .gw-source h3 {font-size:13px;}
.portal-page .gw-workspace .gw-source blockquote {font-size:15px;line-height:1.45;margin:2px 0 8px;}
.portal-page .gw-workspace .gw-source .gc-meta {font-size:12px;}
.portal-page .gw-workspace .gw-source .btn {padding:6px 10px;min-height:32px;font-size:13px;}
.portal-page .gw-workspace .gw-choice {padding:10px;font-size:14px;}
.portal-page .gw-workspace .gw-decisions {margin-top:10px;}
.portal-page .gw-workspace .gw-decisions legend {font-size:16px;margin-bottom:8px;}
.portal-page .gw-workspace .gw-change-preview {padding:10px;margin:8px 0;scroll-margin-bottom:72px;}
.portal-page .gw-workspace .gw-alternatives {font-size:13px;margin:8px 0;}
.portal-page .gw-workspace .gw-actions {margin-top:8px;padding:8px 0;}
.portal-page .gw-workspace .gw-exact-changes {font-size:13px;margin-top:8px;}
.gw-workspace .gc-correction-body label {display:block;margin:12px 0;}
.gw-workspace .gc-correction-body input,.gw-workspace .gc-correction-body textarea {width:100%;padding:8px;border:1px solid #c7ced8;border-radius:6px;font:inherit;box-sizing:border-box;}
@media(max-width:800px){.gw-workspace .gw-main.gw-pinned-evidence {display:block;overflow:auto;}.gw-workspace .gw-pinned-evidence>.gw-comparison {max-height:none;}.gw-workspace .gw-decision-controls {overflow:visible;}.gw-workspace .gw-pinned-evidence>.gc-card-heading {max-height:none;}}
@media(max-width:1100px) {.gw-workspace .gc-layout {grid-template-columns:240px minmax(0,1fr);}.gw-workspace .gw-main {padding:16px;}}
@media(max-width:800px) {.gw-workspace .gc-layout {grid-template-columns:190px minmax(0,1fr);}.gw-workspace .gw-comparison,.gw-workspace .gw-decisions {grid-template-columns:1fr;}.gw-workspace .gw-toolbar {font-size:12px;}}
@media(max-width:550px) {.gw-workspace .gc-layout {display:flex;flex-direction:column;}.gw-workspace .gw-nav {max-height:220px;flex:none;border-right:0;border-bottom:1px solid #dbe0e7;}.gw-workspace .gw-main {flex:1;}.gw-workspace .gw-actions {flex-wrap:wrap;}}

/* A question and its answers are the primary reading flow. Sources are optional. */
.portal-page #panel-knowledge #setup-steps #btn-publish[hidden],
.portal-page #panel-knowledge:has(#setup-panel-live.active #publish-preview .gw-ready) #setup-steps #btn-publish {display:none;}
.gw-workspace .gc-layout:has(>.gw-nav[hidden]) {grid-template-columns:minmax(0,1fr);}
.gw-workspace .gw-nav[hidden] {display:none;}
.portal-page .gw-workspace .gw-main {padding:28px 32px;}
.gw-workspace .gw-main>.gc-card-heading,
.gw-workspace .gw-main>.gw-decision-controls,
.gw-workspace .gw-main>.gw-evidence {max-width:960px;}
.gw-workspace .gw-decision-controls {min-height:0;}
.portal-page .gw-workspace .gw-choice {padding:16px;}
.portal-page .gw-workspace .gw-choice small {font-size:13px;line-height:1.5;margin-top:8px;}
.gw-workspace .gw-evidence {margin-top:20px;padding-top:16px;border-top:1px solid #dbe0e7;}
.gw-workspace .gw-evidence>summary {font-size:14px;margin-bottom:12px;}
.portal-page .gw-workspace .gw-change-preview:has(>details:only-child) {border:0;padding:0;margin:8px 0;}
.gw-workspace .gw-main:not(.gw-pinned-evidence)>p {max-width:680px;line-height:1.6;}
.gw-workspace .gw-main:not(.gw-pinned-evidence)>.btn {margin-top:16px;}
.gw-workspace .gw-ready h2 {color:#235d3a;}
@media(max-width:800px) {.portal-page .gw-workspace .gw-main {padding:20px;}}

/* Approved flow: concrete choices, confirmation, saved-answer summary, publish. */
.portal-page #panel-knowledge:has(#setup-panel-live.active #publish-preview.gw-workspace) #setup-steps #btn-publish {display:none;}
.gw-workspace .gw-nav [hidden] {display:none!important;}
.portal-page .gw-workspace .gw-main.gw-pinned-evidence {display:block;overflow:auto;}
.portal-page .gw-workspace .gw-pinned-evidence>.gc-card-heading {max-height:none;overflow:visible;}
.portal-page .gw-workspace .gw-decision-controls {overflow:visible;}
.portal-page .gw-workspace .gw-choice {align-items:flex-start;border-radius:12px;padding:20px;line-height:1.5;}
.portal-page .gw-workspace .gw-choice:has(input:checked) {border-color:#a51455;background:#fbf5f8;box-shadow:inset 0 0 0 1px #a51455;}
.gw-workspace .gw-choice>span {min-width:0;width:100%;}
.gw-workspace .gw-choice input {flex:none;margin-top:5px;accent-color:#a51455;}
.gw-workspace .gw-sample {display:block;white-space:pre-wrap;overflow-wrap:anywhere;font-size:20px;font-weight:600;line-height:1.5;background:#f6f7f9;border-radius:8px;padding:16px;margin-top:14px;color:#27313d;}
.gw-workspace .gw-answer-summary {margin:24px 0;max-width:960px;border:1px solid #dbe0e7;border-radius:12px;overflow:hidden;}
.gw-workspace .gw-answer-row {display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border-bottom:1px solid #dbe0e7;}
.gw-workspace .gw-answer-row:last-child {border-bottom:0;}
.gw-workspace .gw-answer-row>div {min-width:0;overflow-wrap:anywhere;}
.gw-workspace .gw-answer-row>.btn {flex:none;}
.gw-workspace .gw-answer-row p {font-size:14px;line-height:1.5;color:#667180;}
.gw-workspace .gw-actions {gap:12px;}
@media(max-width:550px) {.gw-workspace .gw-answer-row {align-items:flex-start;gap:12px;padding:14px;}.gw-workspace .gw-sample {font-size:17px;padding:12px;}}

.portal-page .gw-workspace .gw-catalog {display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:hidden;width:100%;box-sizing:border-box;gap:16px;}
.gw-catalog-header {display:flex;align-items:center;justify-content:space-between;gap:20px;flex:none;}
.gw-catalog-header .btn {flex:none;}
.gw-catalog-tools {display:flex;align-items:center;gap:12px;flex-wrap:wrap;flex:none;}
.gw-catalog-tools input,.gw-catalog-tools select {font:inherit;padding:10px 12px;border:1px solid #dbe0e7;border-radius:8px;min-width:0;max-width:100%;}
.gw-catalog-tools input {flex:1;max-width:460px;}
.gw-catalog-notice,.gw-catalog-pending {padding:12px 16px;background:#f6f7f9;border-radius:8px;flex:none;}
.gw-catalog [hidden] {display:none!important;}
.gw-rule-list {overflow:auto;min-height:0;min-width:0;flex:1;padding-right:8px;}
.gw-rule-group>h3 {font-size:18px;margin:16px 0;overflow-wrap:anywhere;}
.gw-rule-card {border:1px solid #dbe0e7;border-radius:10px;padding:20px;margin-bottom:14px;overflow-wrap:anywhere;}
.gw-rule-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;}
.gw-rule-heading h4 {font-size:16px;margin:0;}
.gw-rule-heading .btn {flex:none;}
.gw-rule-text {white-space:pre-wrap;line-height:1.65;}
.gw-rule-table {max-width:100%;overflow-x:auto;margin:16px 0;}
.gw-rule-table table {border-collapse:collapse;width:100%;font-size:14px;}
.gw-rule-table th,.gw-rule-table td {text-align:left;vertical-align:top;padding:10px;border:1px solid #dbe0e7;white-space:pre-wrap;}
.gw-rule-table th {background:#f6f7f9;}
.gw-rule-values dt {font-weight:600;}.gw-rule-values dd {margin:4px 0 12px;}
@media(max-width:600px){.gw-catalog-header,.gw-rule-heading {align-items:flex-start;flex-direction:column;gap:8px;}.gw-rule-card {padding:14px;}.gw-catalog-tools input {flex-basis:100%;}.gw-catalog-header h2 {font-size:22px;}}

/* Topic navigation and reading pane, matching Review & Approve. */
.gw-workspace .gw-nav .gw-catalog-tools {display:flex;flex-direction:column;gap:10px;flex:none;padding:12px 0;}
.gw-workspace .gw-nav h3 {font-size:18px;margin:0;}
.gw-workspace .gw-nav .gc-topics {flex:1;overflow:auto;}
.gw-workspace .gw-nav .gc-topic {white-space:normal;overflow-wrap:anywhere;}
.gw-workspace .gw-catalog {min-height:0;min-width:0;}
.gw-workspace .gw-catalog .gw-rule-list {padding:20px 0;}
.gw-workspace .gw-rule-card {border:0;border-top:1px solid #dbe0e7;border-radius:0;padding:18px 0;margin:16px 0;}
.gw-workspace .gw-rule-card .gc-meta {margin:14px 0;}
.gw-workspace .gw-catalog-header h2 {font-size:18px;}
.gw-workspace .gw-catalog-header {gap:16px;}
