@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap');

:root {
    --cw-bg-app: #231C26;
    --cw-bg-app-2: #2C2430;
    --cw-bg-app-3: #3A3240;
    --cw-surface: #FFFFFF;
    --cw-surface-2: #F4F4F6;
    --cw-surface-3: #E8E4EC;
    --cw-border: #D7D1DD;
    --cw-border-strong: #C7BFCE;
    --cw-text: #231C26;
    --cw-text-soft: #6E6675;
    --cw-text-faint: #8E8794;
    --cw-white: #FFFFFF;
    --cw-danger: #B94A68;
    --cw-success: #2E8B57;
    --cw-info: #6B5E76;
    --cw-accent: #6D5C7D;
    --cw-accent-2: #8B7A9A;
    --cw-accent-3: #B7A9C2;
    --cw-shadow-sm: 0 4px 12px rgba(24, 18, 28, 0.06);
    --cw-shadow-md: 0 10px 28px rgba(24, 18, 28, 0.10);
    --cw-shadow-lg: 0 18px 48px rgba(24, 18, 28, 0.14);
    --cw-radius-sm: 10px;
    --cw-radius-md: 16px;
    --cw-radius-lg: 22px;
    --cw-radius-xl: 28px;
    --cw-side-width: 280px;
    --cw-top-height: 82px;
    --cw-font-ui: "Segoe UI", Inter, Arial, sans-serif;
    --cw-font-brand: "Montserrat", "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { background: var(--cw-bg-app); }

body {
    min-height: 100vh;
    font-family: var(--cw-font-ui);
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.04), transparent 28%),
        linear-gradient(180deg, var(--cw-bg-app) 0%, #1D1720 100%);
    color: var(--cw-text);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

body.sidebar-open { overflow: hidden; }

.sidebar {
    width: var(--cw-side-width);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)), var(--cw-bg-app);
    color: var(--cw-white);
    height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    padding: 24px 22px;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.top-nav {
    position: fixed;
    top: 0;
    left: var(--cw-side-width);
    right: 0;
    height: var(--cw-top-height);
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(35, 28, 38, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 900;
}

.content-area {
    margin-left: var(--cw-side-width);
    margin-top: var(--cw-top-height);
    width: calc(100% - var(--cw-side-width));
    min-height: calc(100vh - var(--cw-top-height));
    padding: 32px;
}

.sidebar-shell { display: flex; flex-direction: column; min-height: 100%; }
.sidebar-brand { margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar-brand h2 { margin: 0; color: var(--cw-white); letter-spacing: 0.14em; font-size: 1.15rem; font-family: var(--cw-font-brand); font-weight: 600; }
.sidebar-brand small { display: block; margin-top: 8px; color: rgba(255,255,255,0.62); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em; }
.sidebar-workspace { margin-bottom: 24px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); }
.sidebar-workspace-label { display: block; margin-bottom: 6px; color: rgba(255,255,255,0.56); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; }
.sidebar-workspace-name { color: var(--cw-white); font-size: 0.94rem; font-weight: 600; line-height: 1.45; word-break: break-word; }
.sidebar-nav { display: flex; flex-direction: column; gap: 8px; }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 16px; color: rgba(255,255,255,0.80); font-size: 0.95rem; font-weight: 600; transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease; }
.sidebar-link:hover { background: rgba(255,255,255,0.08); color: var(--cw-white); transform: translateX(2px); }
.sidebar-link.active { background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.10)); color: var(--cw-white); border: 1px solid rgba(255,255,255,0.10); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.sidebar-link.exit-link { margin-top: 16px; color: #F1B8C6; }
.sidebar-link.exit-link:hover { background: rgba(185, 74, 104, 0.14); color: var(--cw-white); }
.sidebar-icon { width: 22px; flex: 0 0 22px; text-align: center; font-size: 1rem; }

.top-nav-left, .top-nav-right { display: flex; align-items: center; gap: 18px; }
.mobile-menu-btn { display: none; width: 42px; height: 42px; border: 1px solid rgba(35, 28, 38, 0.10); border-radius: 14px; background: var(--cw-surface); color: var(--cw-text); align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: var(--cw-shadow-sm); }
.workspace-label { font-size: 0.92rem; font-weight: 700; letter-spacing: 0.04em; color: var(--cw-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
.top-menu-forge-types { display: inline-flex; gap: 6px; padding: 5px; background: var(--cw-surface-2); border: 1px solid var(--cw-border); border-radius: 16px; }
.top-type-btn { border: none; background: transparent; color: var(--cw-text-soft); padding: 9px 14px; border-radius: 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.top-type-btn.active { background: var(--cw-surface); color: var(--cw-text); box-shadow: var(--cw-shadow-sm); }

.top-stats { display: flex; align-items: center; gap: 24px; }
.stat-item { text-align: right; }
.stat-label { display: block; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cw-text-faint); }
.stat-value { margin-top: 4px; font-size: 1rem; font-weight: 700; color: var(--cw-text); }
.growth-pos, .growth-neg { font-size: 0.8rem; font-weight: 700; }
.growth-pos { color: var(--cw-success); }
.growth-neg { color: var(--cw-danger); }

.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-title, h1, h2, h3, .section-title { font-family: var(--cw-font-brand); }
.page-title, h1 { margin: 0; font-size: clamp(1.9rem, 2.6vw, 2.7rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--cw-white); font-weight: 600; }
.page-title strong, h1 strong, h1 span { color: rgba(255,255,255,0.72); font-weight: 600; }
.page-subtitle { margin: 10px 0 0; max-width: 760px; color: rgba(255,255,255,0.72); font-size: 1rem; line-height: 1.55; }

.card, .section-card, .stat-card, .activity-card, .tile, .persona-card, .mkt-item {
    background: var(--cw-surface);
    border: 1px solid rgba(35, 28, 38, 0.06);
    box-shadow: var(--cw-shadow-md);
    border-radius: var(--cw-radius-lg);
}
.card, .section-card, .activity-card { padding: 26px; }
.card, .section-card { margin-bottom: 22px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 22px; }
.stat-card .stat-value, .stat-val { margin-top: 12px; font-size: 2rem; font-weight: 700; color: var(--cw-text); letter-spacing: -0.03em; }
.stat-foot, .stat-footer { margin-top: 10px; color: var(--cw-text-soft); font-size: 0.84rem; line-height: 1.45; }

label, .field-label {
    display: block; margin-bottom: 8px; color: var(--cw-text-soft);
    font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
}

input[type="text"], input[type="url"], input[type="email"], input[type="password"], textarea, select, .input, .textarea, .seo-input, .input-field, .persona-select {
    width: 100%; border: 1px solid var(--cw-border); border-radius: 16px; background: var(--cw-surface-2);
    color: var(--cw-text); padding: 14px 16px; font-size: 0.95rem; outline: none;
}
textarea, .textarea, .seo-input { resize: vertical; line-height: 1.65; }
input:focus, textarea:focus, select:focus, .input:focus, .textarea:focus, .seo-input:focus, .input-field:focus, .persona-select:focus {
    background: var(--cw-surface); border-color: var(--cw-accent-3); box-shadow: 0 0 0 4px rgba(109, 92, 125, 0.08);
}

.btn, .btn-forge, .btn-forge-main, .btn-save, .btn-initialize, .btn-action, .btn-add, .btn-teal, .btn-blue, .btn-dark, .btn-outline, .btn-void-action {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: none; border-radius: 16px; padding: 12px 18px; font-size: 0.9rem; font-weight: 700;
}
.btn-teal, .btn-forge, .btn-save, .btn-initialize { background: var(--cw-accent); color: var(--cw-white); box-shadow: 0 10px 22px rgba(109, 92, 125, 0.22); }
.btn-dark { background: var(--cw-bg-app); color: var(--cw-white); }
.btn-blue { background: var(--cw-accent-2); color: var(--cw-white); }
.btn-outline, .btn-void-action { background: var(--cw-surface); color: var(--cw-text); border: 1px solid var(--cw-border); }
.btn-add { background: var(--cw-danger); color: var(--cw-white); }
.btn-forge-main { width: 100%; background: var(--cw-bg-app); color: var(--cw-white); padding: 16px 20px; letter-spacing: 0.05em; text-transform: uppercase; box-shadow: 0 12px 26px rgba(35, 28, 38, 0.24); }

.cw-icon-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:24px;
    height:24px;
    padding:0;
    color:var(--cw-text-soft);
    text-decoration:none;
    background:transparent;
    border:0;
    box-shadow:none;
}

.cw-icon-link:hover{
    color:var(--cw-accent);
    text-decoration:none;
    transform:translateY(-1px);
}

.cw-icon-link svg{
    width:16px;
    height:16px;
    display:block;
    stroke:currentColor;
    fill:none;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
    overflow:visible;
}


.sticky-grid, .tag-container { display: flex; flex-wrap: wrap; gap: 10px; }
.sticky-btn, .dna-btn { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--cw-border); background: var(--cw-surface-2); color: var(--cw-text-soft); font-size: 0.82rem; font-weight: 700; }
.sticky-btn.active-tone { background: var(--cw-bg-app); color: var(--cw-white); border-color: var(--cw-bg-app); }
.sticky-btn.active-scenario { background: var(--cw-accent); color: var(--cw-white); border-color: var(--cw-accent); }
.sticky-btn.active-market { background: var(--cw-surface-3); color: var(--cw-text); border-color: var(--cw-accent-3); }

.empty-state { text-align: center; padding: 34px 22px; border-radius: 22px; background: rgba(255,255,255,0.82); border: 1px dashed var(--cw-border-strong); color: var(--cw-text-soft); box-shadow: var(--cw-shadow-sm); }
.notice, .alert { padding: 14px 16px; border-radius: 16px; margin-bottom: 16px; font-size: 0.9rem; font-weight: 700; }
.notice.success, .alert.success { background: rgba(46, 139, 87, 0.10); color: var(--cw-success); border: 1px solid rgba(46, 139, 87, 0.18); }
.notice.error, .alert.error { background: rgba(185, 74, 104, 0.10); color: var(--cw-danger); border: 1px solid rgba(185, 74, 104, 0.18); }
.legal-box, .warning-box { background: linear-gradient(180deg, #FFFFFF 0%, #F8F6FA 100%); color: var(--cw-text-soft); padding: 22px; border-radius: 22px; border: 1px solid var(--cw-border); box-shadow: var(--cw-shadow-sm); }
.void-box { background: var(--cw-surface-2); border: 1px solid var(--cw-border); border-radius: 18px; min-height: 120px; }
.meta-list { display: grid; gap: 12px; }
.meta-item { background: var(--cw-surface-2); border: 1px solid var(--cw-border); border-radius: 16px; padding: 14px 16px; }
.meta-item strong { display: block; color: var(--cw-text-faint); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.meta-item span { color: var(--cw-text); font-weight: 700; }
.hidden { display: none !important; }
.sidebar-overlay { display: none; }
.forge-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.forge-modal.hidden {
    display: none;
}

.forge-modal-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.forge-loader {
    width: 80px;
    margin-bottom: 20px;
}

.forge-legal-box {
    margin-top: 20px;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
}

.forge-checkbox {
    display: block;
    margin-top: 15px;
}
@media (max-width: 900px) {
    .mobile-menu-btn { display: inline-flex; }
    .sidebar { transform: translateX(-100%); transition: transform 0.22s ease; width: min(86vw, 320px); box-shadow: var(--cw-shadow-lg); }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(20, 14, 24, 0.48); z-index: 980; opacity: 0; pointer-events: none; transition: opacity 0.22s ease; }
    body.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
    .top-nav { left: 0; padding: 0 16px; }
    .content-area { margin-left: 0; width: 100%; padding: 20px 16px 28px; }
}
.gc-page {
    display: grid;
    grid-template-columns: var(--cw-side-width) 1fr;
    min-height: 100vh;
}

.gc-main {
    padding: 24px;
}

.gc-topbar-gap {
    height: 12px;
}

.gc-card {
    background: var(--cw-surface);
    border: 1px solid rgba(35, 28, 38, 0.06);
    box-shadow: var(--cw-shadow-md);
    border-radius: var(--cw-radius-lg);
    padding: 26px;
    margin-bottom: 22px;
}

.gc-grid {
    display: grid;
    gap: 16px;
}

.gc-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gc-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gc-label {
    display: block;
    margin-bottom: 8px;
    color: var(--cw-text-soft);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.gc-input,
.gc-select,
.gc-textarea {
    width: 100%;
    border: 1px solid var(--cw-border);
    border-radius: 16px;
    background: var(--cw-surface-2);
    color: var(--cw-text);
    padding: 14px 16px;
    font-size: 0.95rem;
    outline: none;
}

.gc-input:focus,
.gc-select:focus,
.gc-textarea:focus {
    background: var(--cw-surface);
    border-color: var(--cw-accent-3);
    box-shadow: 0 0 0 4px rgba(109, 92, 125, 0.08);
}

.gc-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.65;
}

.gc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.gc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 16px;
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.gc-btn--primary {
    background: var(--cw-bg-app);
    color: var(--cw-white);
    box-shadow: 0 12px 26px rgba(35, 28, 38, 0.24);
}

.gc-btn--secondary {
    background: var(--cw-surface);
    color: var(--cw-text);
    border: 1px solid var(--cw-border);
}

.gc-note {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--cw-text-soft);
    margin-top: 8px;
}

.gc-readonly {
    background: #f9fafb;
}

.gc-content-list {
    border: 1px solid var(--cw-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--cw-surface);
}

.gc-content-toolbar {
    padding: 12px;
    border-bottom: 1px solid var(--cw-border);
    background: var(--cw-surface-2);
}

.gc-content-items {
    max-height: 420px;
    overflow-y: auto;
}

.gc-content-item {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
}

.gc-content-item:last-child {
    border-bottom: 0;
}

.gc-content-item:hover {
    background: #f8fafc;
}

.gc-content-item input {
    margin-right: 10px;
}

.gc-content-title {
    display: block;
    font-weight: 600;
    color: var(--cw-text);
}

.gc-content-meta {
    display: block;
    margin-top: 4px;
    font-size: 0.92rem;
    color: var(--cw-text-soft);
}

.gc-repeater-row {
    border: 1px solid var(--cw-border);
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
    background: #fafafa;
}

@media (max-width: 980px) {
    .gc-page {
        grid-template-columns: 1fr;
    }

    .gc-grid-2,
    .gc-grid-3 {
        grid-template-columns: 1fr;
    }
}

.ghost-source-panel {
    border: 1px solid var(--cw-border);
    border-radius: 18px;
    background: var(--cw-surface-2);
    padding: 14px;
}

.ghost-source-scroll {
    max-height: 360px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

.ghost-source-row {
    border: 1px solid var(--cw-border);
    border-radius: 14px;
    background: var(--cw-surface);
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ghost-source-row:hover {
    border-color: var(--cw-accent-3);
    box-shadow: var(--cw-shadow-sm);
}

.ghost-source-row.active {
    border-color: var(--cw-accent);
    background: #fff;
    box-shadow: var(--cw-shadow-sm);
}

.ghost-source-line1 {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cw-text);
    line-height: 1.35;
    margin-bottom: 4px;
}

.ghost-source-line2 {
    display: block;
    font-size: 0.82rem;
    color: var(--cw-text-soft);
    line-height: 1.4;
}

.ghost-source-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ghost-source-toolbar .input-field {
    max-width: 420px;
}

.ghost-listbox {
    height: 420px;
    overflow-y: auto;
    border: 1px solid var(--cw-border);
    border-radius: 16px;
    background: var(--cw-surface);
}

.ghost-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.ghost-list-toolbar {
    margin-bottom: 16px;
}

.ghost-listbox {
    max-height: 720px;
    overflow-y: auto;
    border: 1px solid var(--cw-border);
    border-radius: 16px;
    background: var(--cw-surface-2);
}

.ghost-list-item {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid var(--cw-border);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    outline: none;
}

.ghost-list-item:last-child {
    border-bottom: 0;
}

.ghost-list-item:hover,
.ghost-list-item:focus {
    background: var(--cw-surface);
}

.ghost-list-item.active {
    background: var(--cw-surface);
    box-shadow: inset 3px 0 0 var(--cw-accent);
}

.ghost-list-line1 {
    font-size: 0.97rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--cw-text);
    margin-bottom: 4px;
}

.ghost-list-line2 {
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--cw-text-faint);
}

.ghost-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ghost-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ghost-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.ghost-repeater-row {
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--cw-border);
    border-radius: 16px;
    background: var(--cw-surface-2);
}

.ghost-readonly {
    background: var(--cw-surface-3) !important;
}

.hidden {
    display: none !important;
}

#ghost-selected-summary {
    margin-bottom: 16px;
}

#ghost-linked-questions {
    margin-top: 8px;
}

#tone-buttons,
#scenario-buttons {
    margin-top: 8px;
}

#ghost-links-repeater:empty,
#ghost-qna-repeater:empty {
    margin-bottom: 0;
}

.ghost-listbox::-webkit-scrollbar {
    width: 10px;
}

.ghost-listbox::-webkit-scrollbar-track {
    background: transparent;
}

.ghost-listbox::-webkit-scrollbar-thumb {
    background: var(--cw-border);
    border-radius: 999px;
}

.ghost-listbox::-webkit-scrollbar-thumb:hover {
    background: var(--cw-text-faint);
}

@media (max-width: 900px) {
    .ghost-section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .ghost-grid-2,
    .ghost-grid-3 {
        grid-template-columns: 1fr;
    }
}


/* Citewell review report rendering */
.cw-review-box {
    white-space: normal;
    background: #ffffff;
    border-radius: 18px;
    padding: 16px 18px;
}

.cw-rendered-review,
.cw-rendered-review * {
    white-space: normal;
}

.cw-rendered-review {
    color: var(--cw-text, #231c26);
    font-size: 15px;
    line-height: 1.7;
}

.cw-rendered-review h2 {
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--cw-border, rgba(35,28,38,.12));
    font-family: var(--cw-font-brand, inherit);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cw-text, #231c26);
}

.cw-rendered-review h2:not(:first-child) {
    margin-top: 28px;
}

.cw-rendered-review h3 {
    margin: 18px 0 8px;
    font-size: .98rem;
    font-weight: 700;
    color: var(--cw-text, #231c26);
}

.cw-rendered-review p {
    margin: 0 0 14px;
    color: var(--cw-text, #231c26);
}

.cw-rendered-review ul,
.cw-rendered-review ol {
    margin: 0 0 16px 22px;
    padding: 0;
}

.cw-rendered-review li {
    margin: 0 0 8px;
    color: var(--cw-text, #231c26);
}

.cw-rendered-review strong {
    color: var(--cw-text, #231c26);
}

.cw-rendered-review > *:last-child {
    margin-bottom: 0;
}


/* Content detail review and renderer fixes */

.cw-content-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.cw-content-head-copy{min-width:0}
.cw-panel-close{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:999px;border:1px solid var(--cw-border);background:#fff;color:var(--cw-text);font-size:28px;line-height:1;text-decoration:none;flex:0 0 auto}
.cw-panel-close:hover{background:var(--cw-surface-2);color:var(--cw-text)}
.cw-icon-link{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--cw-border);background:#fff;border-radius:12px;padding:10px 12px;color:var(--cw-text);text-decoration:none;font-weight:600}
.cw-icon-link svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.cw-review-actions{margin-top:14px;display:flex;flex-wrap:wrap;gap:10px}
.cw-rendered-content,.cw-rendered-content *{color:var(--cw-text)!important}
.cw-rendered-content [style*="color:#fff"],.cw-rendered-content [style*="color: #fff"],.cw-rendered-content [style*="color:white"],.cw-rendered-content [style*="color: white"]{color:var(--cw-text)!important}
.cw-rendered-content h1,.cw-rendered-content h2,.cw-rendered-content h3,.cw-rendered-content h4,.cw-rendered-content h5,.cw-rendered-content h6,.cw-rendered-content p,.cw-rendered-content li,.cw-rendered-content span,.cw-rendered-content div,.cw-rendered-content strong{color:var(--cw-text)!important}
.cw-rendered-content > :first-child,.cw-rendered-content > :first-child *{color:var(--cw-text)!important}
.cw-rendered-review,.cw-rendered-review *{white-space:normal;color:var(--cw-text)!important}
.cw-rendered-review h2{margin:0 0 14px;padding-bottom:8px;border-bottom:1px solid var(--cw-border);font-family:var(--cw-font-brand);font-size:1.1rem;font-weight:700}
.cw-rendered-review h2:not(:first-child){margin-top:28px}
.cw-rendered-review h3{margin:18px 0 8px;font-size:.98rem;font-weight:700}
.cw-rendered-review p{margin:0 0 14px}
.cw-rendered-review ul,.cw-rendered-review ol{margin:0 0 16px 22px;padding:0}
.cw-rendered-review li{margin:0 0 8px}
