:root {
    --cfl-surface: rgba(26, 26, 28, 0.72);
    --cfl-surface-strong: #18181a;
    --cfl-line: rgba(255, 255, 255, 0.1);
    --cfl-copper: #d4a05f;
    --cfl-green: #55b86a;
    --cfl-red: #ef5b52;
}

.cfl-body {
    background: #0c0c0e;
    overflow: visible;
}

.cfl-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    background: rgba(12, 12, 14, 0.96);
    border-bottom: 1px solid var(--cfl-line);
    backdrop-filter: blur(18px);
}

.cfl-nav .nav-brand {
    font-size: 1.28rem;
}

.cfl-nav .pill-menu {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    transform: none;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding-top: 0;
    background: transparent;
    transition: none;
    z-index: auto;
}

.cfl-nav .pill-menu a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--cfl-line);
    border-radius: 999px;
    color: #c8c8ca;
    background: rgba(255, 255, 255, 0.015);
    font-size: 0.88rem;
}

.cfl-nav .pill-menu a:hover {
    color: #fff;
    border-color: rgba(198, 155, 107, 0.45);
}

.cfl-app {
    display: grid;
    grid-template-columns: 282px minmax(0, 1fr);
    min-height: calc(100vh - 62px);
    border-bottom: 1px solid var(--cfl-line);
}

.cfl-evidence-index {
    position: sticky;
    top: 62px;
    height: calc(100vh - 62px);
    display: flex;
    flex-direction: column;
    padding: 30px 28px 24px;
    border-right: 1px solid var(--cfl-line);
    background: rgba(12, 12, 14, 0.8);
}

.cfl-eyebrow,
.cfl-label {
    color: var(--cfl-copper);
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.095em;
    text-transform: uppercase;
}

.cfl-index-copy {
    margin-top: 12px;
    color: #d7d7da;
    font-size: 0.89rem;
    line-height: 1.55;
}

.cfl-index-hint {
    margin-top: 6px;
    color: #7f7f84;
    font-size: 0.72rem;
    line-height: 1.5;
}

.cfl-scope-control {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.cfl-scope-control span,
.cfl-source-group {
    color: #77777d;
    font-family: var(--font-heading);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.cfl-scope-control select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid rgba(212, 160, 95, 0.3);
    border-radius: 8px;
    outline: 0;
    color: #e6e6e8;
    background: #151517;
    font: 600 0.74rem var(--font-body);
}

.cfl-scope-control select:focus-visible {
    border-color: var(--cfl-copper);
}

.cfl-source-list {
    display: grid;
    gap: 4px;
    min-height: 0;
    margin: 13px -12px 0;
    padding-right: 4px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.cfl-source-group {
    margin: 9px 11px 2px;
}

.cfl-source-row {
    width: 100%;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 24px;
    gap: 9px;
    align-items: center;
    min-height: 61px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #fff;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.cfl-source-row:hover,
.cfl-source-row:focus-visible {
    border-color: rgba(212, 160, 95, 0.38);
    background: rgba(212, 160, 95, 0.06);
    outline: none;
    transform: translateX(2px);
}

.cfl-source-row.is-loading {
    opacity: 0.58;
}

.cfl-source-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #bfc1c5;
    font-size: 1.35rem;
}

.cfl-source-icon-google {
    color: #f2c14f;
}

.cfl-source-icon-ga4 {
    color: #f4a728;
}

.cfl-source-icon-meta { color: #4f8df7; }
.cfl-source-icon-linkedin { color: #62a9dc; }

.cfl-source-copy {
    min-width: 0;
}

.cfl-source-copy strong,
.cfl-source-copy span {
    display: block;
}

.cfl-source-copy strong {
    font-family: var(--font-heading);
    font-size: 0.76rem;
    line-height: 1.32;
}

.cfl-source-copy span {
    overflow: hidden;
    margin-top: 3px;
    color: #96969b;
    font-size: 0.72rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cfl-source-check {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(212, 160, 95, 0.66);
    border-radius: 50%;
    color: var(--cfl-copper);
    font-size: 0.68rem;
}

.cfl-source-row:not(.is-verified) .cfl-source-check {
    border-color: var(--cfl-line);
    color: #67676d;
}

.cfl-index-footer {
    margin-top: auto;
    color: #8f8f94;
    font-size: 0.72rem;
}

.cfl-index-footer p,
.cfl-index-footer span {
    display: block;
}

.cfl-index-footer p {
    margin-bottom: 4px;
    color: #c9c9cc;
}

.cfl-index-footer p i {
    margin-right: 6px;
    color: var(--cfl-copper);
}

.cfl-index-footer button {
    margin-top: 13px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(212, 160, 95, 0.35);
    color: var(--cfl-copper);
    background: none;
    font: 600 0.72rem var(--font-body);
    cursor: pointer;
}

.cfl-workspace {
    display: grid;
    grid-template-columns: minmax(520px, 1fr) minmax(390px, 470px);
    grid-template-rows: minmax(0, 1fr) auto auto;
    min-width: 0;
    padding: 18px 24px 22px 26px;
    column-gap: 20px;
}

.cfl-main-pane {
    min-width: 0;
}

.cfl-case-header {
    padding: 9px 8px 26px;
    border-bottom: 1px solid var(--cfl-line);
}

.cfl-case-kicker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cfl-case-kicker-row > span {
    color: #818186;
    font-size: 0.72rem;
}

.cfl-case-header h1 {
    max-width: 780px;
    margin-top: 10px;
    font-size: clamp(1.8rem, 2.35vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.cfl-tldr {
    max-width: 780px;
    margin-top: 24px;
}

.cfl-tldr h2,
.cfl-section-heading h2,
.cfl-evidence-summary h3,
.cfl-unresolved h3,
.cfl-verified h3 {
    color: var(--cfl-copper);
    font-size: 0.9rem;
    font-weight: 600;
}

.cfl-tldr p {
    margin-top: 7px;
    color: #c6c6ca;
    font-size: 0.93rem;
    line-height: 1.6;
}

.cfl-timeline {
    padding: 25px 8px 0;
}

.cfl-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.cfl-section-heading p {
    margin-top: 4px;
    color: #8d8d92;
    font-size: 0.75rem;
}

.cfl-legend {
    display: flex;
    gap: 18px;
    color: #aaaab0;
    font-size: 0.72rem;
}

.cfl-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cfl-legend-line {
    display: inline-block;
    width: 23px;
    border-top: 3px solid var(--cfl-copper);
    border-radius: 3px;
}

.cfl-legend-cpa {
    border-top: 2px dashed #929297;
}

.cfl-chart-wrap {
    position: relative;
    height: 260px;
    margin-top: 13px;
}

#evidence-chart {
    width: 100%;
    height: 100%;
}

.cfl-event-list {
    margin-top: 5px;
    border-top: 1px solid var(--cfl-line);
}

.cfl-event-row {
    width: 100%;
    display: grid;
    grid-template-columns: 34px 96px minmax(0, 1fr) 112px;
    gap: 12px;
    align-items: center;
    min-height: 66px;
    padding: 9px 9px;
    border: 1px solid transparent;
    border-bottom-color: var(--cfl-line);
    border-radius: 8px;
    color: #fff;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.cfl-event-row:hover,
.cfl-event-row:focus-visible,
.cfl-event-row.is-selected {
    border-color: rgba(212, 160, 95, 0.72);
    background: rgba(212, 160, 95, 0.055);
    outline: none;
}

.cfl-event-number {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 1px solid var(--cfl-copper);
    border-radius: 50%;
    color: var(--cfl-copper);
    font: 700 0.78rem var(--font-heading);
}

.cfl-event-date,
.cfl-event-copy,
.cfl-event-type {
    min-width: 0;
}

.cfl-event-date span,
.cfl-event-date small,
.cfl-event-copy strong,
.cfl-event-copy span {
    display: block;
}

.cfl-event-date span,
.cfl-event-copy strong {
    font-size: 0.8rem;
}

.cfl-event-date small,
.cfl-event-copy span,
.cfl-event-type {
    color: #929297;
    font-size: 0.69rem;
}

.cfl-event-copy span {
    overflow: hidden;
    margin-top: 2px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cfl-event-type {
    text-align: right;
}

.cfl-timezone {
    margin-top: 9px;
    color: #77777d;
    font-size: 0.68rem;
}

.cfl-diagnosis {
    align-self: start;
    min-width: 0;
    max-height: calc(100vh - 186px);
    overflow-y: auto;
    padding: 20px 20px 16px;
    border: 1px solid var(--cfl-line);
    border-radius: 10px;
    background: var(--cfl-surface);
    scrollbar-width: thin;
}

.cfl-diagnosis-intro h2 {
    max-width: 360px;
    margin-top: 8px;
    font-size: 1.45rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cfl-confidence {
    margin-top: 19px;
}

.cfl-confidence > span {
    color: var(--cfl-copper);
    font-size: 0.78rem;
}

.cfl-confidence > div:first-of-type {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 2px;
}

.cfl-confidence strong {
    color: var(--cfl-copper);
    font: 700 2rem var(--font-heading);
}

.cfl-confidence b {
    color: #e1e1e4;
    font-size: 0.82rem;
}

.cfl-confidence-track {
    height: 9px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #39393c;
}

.cfl-confidence-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--cfl-copper);
    transition: width 0.35s ease;
}

.cfl-confidence small {
    display: block;
    margin-top: 7px;
    color: #8f8f94;
    font-size: 0.66rem;
}

.cfl-evidence-summary,
.cfl-guardrails,
.cfl-unresolved,
.cfl-verified {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid var(--cfl-line);
}

.cfl-guardrails h3 {
    color: var(--cfl-copper);
    font-size: 0.9rem;
    font-weight: 600;
}

#reasoning-guardrails {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.cfl-guardrail {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 9px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.018);
}

.cfl-guardrail > span {
    color: var(--cfl-copper);
    font-size: 0.72rem;
}

.cfl-guardrail p,
.cfl-guardrail strong,
.cfl-guardrail small {
    display: block;
}

.cfl-guardrail strong {
    color: #dedee1;
    font-size: 0.68rem;
}

.cfl-guardrail small {
    margin-top: 2px;
    color: #8f8f94;
    font-size: 0.62rem;
    line-height: 1.4;
}

.cfl-guardrail-high,
.cfl-guardrail-critical {
    border-color: rgba(239, 91, 82, 0.28);
}

.cfl-guardrail-clear > span { color: var(--cfl-green); }

.cfl-summary-row {
    display: grid;
    grid-template-columns: 30px 82px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.cfl-summary-row:last-child {
    border-bottom: 0;
}

.cfl-summary-icon {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.65rem;
}

.cfl-summary-row > strong {
    padding-top: 3px;
    font-size: 0.72rem;
}

.cfl-summary-list {
    display: grid;
    gap: 4px;
}

.cfl-summary-list span {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    color: #c3c3c7;
    font-size: 0.67rem;
    line-height: 1.4;
}

.cfl-summary-list b {
    color: #e2e2e5;
    font-weight: 500;
    text-align: right;
}

.cfl-summary-support { color: var(--cfl-green); }
.cfl-summary-contradict { color: var(--cfl-red); }
.cfl-summary-missing { color: #a0a0a6; }

.cfl-unresolved-callout {
    display: flex;
    gap: 11px;
    align-items: center;
    margin-top: 9px;
    padding: 11px;
    border: 1px solid rgba(212, 160, 95, 0.62);
    border-radius: 8px;
    background: rgba(212, 160, 95, 0.035);
}

.cfl-unresolved-callout > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 27px;
    height: 27px;
    border: 1px solid var(--cfl-copper);
    border-radius: 50%;
    color: var(--cfl-copper);
    font-size: 0.72rem;
}

.cfl-unresolved-callout strong,
.cfl-unresolved-callout small {
    display: block;
}

.cfl-unresolved-callout strong {
    color: #f0c27f;
    font-size: 0.78rem;
    line-height: 1.35;
}

.cfl-unresolved-callout small {
    margin-top: 2px;
    color: #9a9aa0;
    font-size: 0.66rem;
}

.cfl-verified ul {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    list-style: none;
}

.cfl-verified li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #c1c1c6;
    font-size: 0.68rem;
}

.cfl-verified li span:last-child {
    color: var(--cfl-green);
}

.cfl-challenge {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 7px;
    margin-top: 18px;
    padding: 5px 5px 5px 12px;
    border: 1px solid var(--cfl-line);
    border-radius: 10px;
    background: #141416;
}

.cfl-challenge:focus-within {
    border-color: rgba(212, 160, 95, 0.65);
}

.cfl-challenge input {
    min-width: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font: 0.69rem var(--font-body);
}

.cfl-challenge input::placeholder {
    color: #77777d;
}

.cfl-challenge button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: #17120c;
    background: var(--cfl-copper);
    cursor: pointer;
}

.cfl-challenge-response {
    margin-top: 10px;
    padding: 11px 12px;
    border-left: 2px solid var(--cfl-copper);
    color: #bdbdc2;
    background: rgba(212, 160, 95, 0.045);
    font-size: 0.69rem;
    line-height: 1.5;
}

.cfl-challenge-response strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 0.75rem;
}

.cfl-challenge-response ul {
    margin: 6px 0 0 16px;
}

.cfl-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
    gap: 15px;
    justify-self: end;
    width: min(680px, calc(100% - 8px));
    margin-top: 17px;
}

.cfl-actions button {
    min-height: 74px;
    padding: 12px 18px;
    border-radius: 9px;
    cursor: pointer;
}

.cfl-actions strong,
.cfl-actions span {
    display: block;
}

.cfl-actions strong {
    font: 700 0.9rem var(--font-heading);
}

.cfl-actions span {
    margin-top: 4px;
    font-size: 0.66rem;
}

.cfl-action-primary {
    border: 1px solid #e2ac68;
    color: #1a120a;
    background: var(--cfl-copper);
}

.cfl-action-secondary {
    border: 1px solid var(--cfl-copper);
    color: var(--cfl-copper);
    background: transparent;
}

.cfl-actions button:hover {
    transform: translateY(-2px);
}

.cfl-status {
    grid-column: 1 / -1;
    min-height: 22px;
    margin-top: 9px;
    color: #88888e;
    font-size: 0.67rem;
    text-align: right;
}

.cfl-status.is-error { color: #ff8b84; }
.cfl-status.is-success { color: #78ce88; }

.cfl-method {
    max-width: 980px;
    padding-top: 84px;
    padding-bottom: 96px;
}

.cfl-method .cfl-eyebrow {
    margin-bottom: 8px;
}

.cfl-method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 28px 0;
}

.cfl-method-grid > div {
    padding-top: 14px;
    border-top: 1px solid rgba(212, 160, 95, 0.42);
}

.cfl-method-grid strong,
.cfl-method-grid span {
    display: block;
}

.cfl-method-grid strong {
    color: #fff;
}

.cfl-method-grid span {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.cfl-search-context {
    border-top: 1px solid var(--cfl-line);
    color: var(--text-primary);
    background:
        radial-gradient(circle at 82% 8%, rgba(212, 160, 95, 0.08), transparent 25%),
        #0c0c0e;
}

.cfl-context-shell {
    max-width: 1100px;
    padding-top: 34px;
    padding-bottom: 110px;
}

.cfl-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #77777d;
    font-size: 0.72rem;
}

.cfl-breadcrumb a {
    color: #aaaab0;
}

.cfl-breadcrumb a:hover {
    color: var(--cfl-copper);
}

.cfl-context-intro {
    max-width: 900px;
    padding: 82px 0 36px;
}

.cfl-context-intro h2,
.cfl-context-section > h2 {
    margin-top: 10px;
    color: #f5f5f6;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.cfl-context-intro > p:not(.cfl-eyebrow),
.cfl-context-section > p,
.cfl-method > p {
    max-width: 900px;
    margin-top: 20px;
    color: #b0b0b6;
    font-size: 1.04rem;
    line-height: 1.8;
}

.cfl-answer-box {
    max-width: 900px;
    margin-top: 30px;
    padding: 24px 26px;
    border: 1px solid rgba(212, 160, 95, 0.38);
    border-left-width: 3px;
    border-radius: 10px;
    background: rgba(212, 160, 95, 0.045);
}

.cfl-answer-box strong {
    color: var(--cfl-copper);
    font-family: var(--font-heading);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cfl-answer-box p {
    margin-top: 8px;
    color: #dedee1;
    font-size: 1rem;
    line-height: 1.7;
}

.cfl-context-section {
    padding: 76px 0;
    border-top: 1px solid var(--cfl-line);
}

.cfl-context-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.cfl-diagnosis-grid > div {
    min-height: 210px;
    padding: 24px;
    border: 1px solid var(--cfl-line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.018);
}

.cfl-diagnosis-grid i {
    color: var(--cfl-copper);
    font-size: 1.2rem;
}

.cfl-diagnosis-grid h3,
.cfl-channel-playbooks h3,
.cfl-steps h3 {
    margin-top: 18px;
    color: #eeeef0;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    line-height: 1.25;
}

.cfl-diagnosis-grid p,
.cfl-channel-playbooks p,
.cfl-steps p {
    margin-top: 10px;
    color: #99999f;
    font-size: 0.86rem;
    line-height: 1.65;
}

.cfl-table-wrap {
    margin-top: 32px;
    overflow-x: auto;
    border: 1px solid var(--cfl-line);
    border-radius: 11px;
}

.cfl-context-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    text-align: left;
}

.cfl-context-table th,
.cfl-context-table td {
    padding: 17px 18px;
    border-bottom: 1px solid var(--cfl-line);
    vertical-align: top;
}

.cfl-context-table tr:last-child td {
    border-bottom: 0;
}

.cfl-context-table th {
    color: var(--cfl-copper);
    background: rgba(212, 160, 95, 0.045);
    font: 700 0.72rem var(--font-heading);
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.cfl-context-table td {
    color: #a8a8ae;
    font-size: 0.82rem;
    line-height: 1.55;
}

.cfl-context-table td:first-child {
    width: 24%;
    color: #ececef;
    font-weight: 600;
}

.cfl-context-note {
    padding: 18px 20px;
    border: 1px solid rgba(212, 160, 95, 0.24);
    border-radius: 9px;
    background: rgba(212, 160, 95, 0.025);
    font-size: 0.86rem !important;
}

.cfl-context-note strong {
    color: #efc17e;
}

.cfl-steps {
    display: grid;
    gap: 0;
    max-width: 900px;
    margin-top: 34px;
    list-style: none;
}

.cfl-steps li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 18px;
    padding: 23px 0;
    border-top: 1px solid var(--cfl-line);
}

.cfl-steps li > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(212, 160, 95, 0.55);
    border-radius: 50%;
    color: var(--cfl-copper);
    font: 700 0.8rem var(--font-heading);
}

.cfl-steps h3 {
    margin-top: 0;
}

.cfl-search-context .cfl-method {
    max-width: none;
    padding-top: 76px;
    padding-bottom: 76px;
}

.cfl-channel-playbooks {
    display: grid;
    gap: 16px;
    margin-top: 34px;
}

.cfl-channel-playbooks section {
    display: grid;
    grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.6fr);
    gap: 28px;
    padding: 25px 0;
    border-top: 1px solid var(--cfl-line);
}

.cfl-channel-playbooks h3,
.cfl-channel-playbooks p {
    margin-top: 0;
}

.cfl-channel-playbooks h3 i {
    width: 27px;
    color: var(--cfl-copper);
}

.cfl-faq-list {
    max-width: 900px;
    margin-top: 34px;
    border-top: 1px solid var(--cfl-line);
}

.cfl-faq-list details {
    border-bottom: 1px solid var(--cfl-line);
}

.cfl-faq-list summary {
    position: relative;
    padding: 22px 42px 22px 0;
    color: #e9e9ec;
    font: 600 1rem var(--font-heading);
    cursor: pointer;
    list-style: none;
}

.cfl-faq-list summary::-webkit-details-marker {
    display: none;
}

.cfl-faq-list summary::after {
    position: absolute;
    right: 4px;
    content: "+";
    color: var(--cfl-copper);
    font-size: 1.3rem;
    font-weight: 400;
}

.cfl-faq-list details[open] summary::after {
    content: "–";
}

.cfl-faq-list details p {
    max-width: 820px;
    padding: 0 0 24px;
    color: #9e9ea4;
    font-size: 0.9rem;
    line-height: 1.7;
}

.cfl-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-top: 34px;
}

.cfl-related-grid a {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--cfl-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.015);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.cfl-related-grid a:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 160, 95, 0.48);
}

.cfl-related-grid span {
    color: var(--cfl-copper);
    font: 700 0.65rem var(--font-heading);
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.cfl-related-grid strong {
    margin-top: 12px;
    color: #ececef;
    font: 600 1rem/1.35 var(--font-heading);
}

.cfl-related-grid small {
    margin-top: auto;
    padding-top: 16px;
    color: #85858b;
    font-size: 0.76rem;
    line-height: 1.5;
}

.cfl-author-note {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    max-width: 900px;
    margin-top: 18px;
    padding: 24px;
    border: 1px solid var(--cfl-line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.018);
}

.cfl-author-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(212, 160, 95, 0.55);
    border-radius: 50%;
    color: var(--cfl-copper);
    font: 700 0.8rem var(--font-heading);
}

.cfl-author-note strong,
.cfl-author-note span,
.cfl-author-note a {
    display: block;
}

.cfl-author-note strong {
    color: #ececef;
    font: 600 1rem var(--font-heading);
}

.cfl-author-note span {
    margin-top: 5px;
    color: #95959b;
    font-size: 0.82rem;
    line-height: 1.6;
}

.cfl-author-note a {
    margin-top: 10px;
    color: var(--cfl-copper);
    font-size: 0.78rem;
}

.cfl-dialog {
    width: min(720px, calc(100vw - 36px));
    max-height: calc(100vh - 50px);
    overflow: auto;
    padding: 25px;
    border: 1px solid rgba(212, 160, 95, 0.35);
    border-radius: 12px;
    color: #fff;
    background: #171719;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72);
}

.cfl-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(5px);
}

.cfl-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.cfl-dialog-header h2 {
    margin-top: 5px;
    font-size: 1.65rem;
}

.cfl-dialog-close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--cfl-line);
    border-radius: 50%;
    color: #ccc;
    background: transparent;
    cursor: pointer;
}

.cfl-dialog-lede {
    margin-top: 18px;
    color: #d5d5d8;
}

.cfl-stress-list {
    margin-top: 20px;
}

.cfl-stress-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid var(--cfl-line);
}

.cfl-stress-row strong,
.cfl-stress-row span {
    display: block;
}

.cfl-stress-row span {
    margin-top: 4px;
    color: #98989d;
    font-size: 0.78rem;
}

.cfl-stress-row b {
    align-self: center;
    color: var(--cfl-copper);
    font: 700 1.4rem var(--font-heading);
    text-align: right;
}

.cfl-dialog-note {
    color: #7e7e84;
    font-size: 0.72rem;
}

.cfl-brief-dialog textarea {
    width: 100%;
    min-height: 430px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--cfl-line);
    border-radius: 9px;
    color: #d4d4d7;
    background: #101012;
    font: 0.78rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
    resize: vertical;
}

.cfl-dialog-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1180px) {
    .cfl-app {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .cfl-evidence-index {
        padding-right: 18px;
        padding-left: 18px;
    }

    .cfl-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .cfl-diagnosis {
        max-height: none;
        margin-top: 24px;
    }

    .cfl-actions {
        grid-column: 1;
        justify-self: stretch;
        width: 100%;
    }
}

@media (max-width: 820px) {
    .cfl-nav {
        height: auto;
        min-height: 62px;
        padding: 10px 16px;
    }

    .cfl-nav .pill-menu li:nth-child(2) {
        display: none;
    }

    .cfl-nav .pill-menu a {
        padding: 9px 13px;
        font-size: 0.78rem;
    }

    .cfl-app {
        display: block;
    }

    .cfl-evidence-index {
        position: static;
        height: auto;
        padding: 24px 18px 18px;
        border-right: 0;
        border-bottom: 1px solid var(--cfl-line);
    }

    .cfl-source-list {
        display: flex;
        overflow-x: auto;
        margin-top: 18px;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .cfl-source-list::-webkit-scrollbar {
        display: none;
    }

    .cfl-source-group {
        display: none;
    }

    .cfl-source-row {
        flex: 0 0 220px;
        scroll-snap-align: start;
    }

    .cfl-index-footer {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 14px;
        margin-top: 12px;
    }

    .cfl-index-footer p,
    .cfl-index-footer button {
        margin: 0;
    }

    .cfl-workspace {
        padding: 20px 16px 28px;
    }

    .cfl-case-header,
    .cfl-timeline {
        padding-right: 0;
        padding-left: 0;
    }

    .cfl-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cfl-chart-wrap {
        height: 230px;
    }

    .cfl-event-row {
        grid-template-columns: 32px 82px minmax(0, 1fr);
    }

    .cfl-event-type {
        display: none;
    }

    .cfl-actions {
        grid-template-columns: 1fr;
    }

    .cfl-status {
        text-align: left;
    }

    .cfl-method {
        padding-top: 64px;
        padding-bottom: 70px;
    }

    .cfl-method-grid {
        grid-template-columns: 1fr;
    }

    .cfl-context-shell {
        padding-right: 18px;
        padding-left: 18px;
    }

    .cfl-context-intro {
        padding-top: 62px;
    }

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

    .cfl-channel-playbooks section {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 520px) {
    .cfl-nav .nav-brand {
        font-size: 1.05rem;
    }

    .cfl-case-kicker-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .cfl-case-header h1 {
        font-size: 1.8rem;
    }

    .cfl-legend {
        flex-wrap: wrap;
    }

    .cfl-event-row {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .cfl-event-date {
        display: none;
    }

    .cfl-summary-row {
        grid-template-columns: 28px 74px minmax(0, 1fr);
    }

    #reasoning-guardrails {
        grid-template-columns: 1fr;
    }

    .cfl-context-shell {
        padding-right: 16px;
        padding-bottom: 74px;
        padding-left: 16px;
    }

    .cfl-context-intro {
        padding-top: 52px;
    }

    .cfl-context-intro h2,
    .cfl-context-section > h2 {
        font-size: 2rem;
    }

    .cfl-context-section {
        padding: 58px 0;
    }

    .cfl-context-grid,
    .cfl-related-grid {
        grid-template-columns: 1fr;
    }

    .cfl-diagnosis-grid > div,
    .cfl-related-grid a {
        min-height: 0;
    }

    .cfl-answer-box,
    .cfl-diagnosis-grid > div,
    .cfl-author-note {
        padding: 20px;
    }

    .cfl-author-note {
        grid-template-columns: 1fr;
    }

    .cfl-search-context .cfl-method {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .cfl-dialog-actions {
        flex-direction: column;
    }
}
