.rft-card { max-width: 1500px; margin: 0 auto; }
.rft-card .page-header-description p { line-height: 1.5; margin: 0; max-width: 900px; }
.rft-input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rft-input-grid .wide { grid-column: 1 / -1; }
.rft-field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; }
.rft-field .ui-inputfield { width: 100%; }
.rft-field .ui-selectonemenu { min-width: 0; width: 100%; }
.rft-sensor-discovery, .rft-no-target-sensor { background: rgba(0, 169, 155, .06); border: 1px solid rgba(0, 169, 155, .28); border-radius: 6px; padding: .9rem 1rem; }
.rft-sensor-discovery strong, .rft-no-target-sensor strong { color: var(--text-color); display: block; margin-bottom: .35rem; }
.rft-quick-guide { background: var(--surface-b); border: 1px solid var(--surface-d); border-left: 6px solid var(--primary-color); border-radius: 8px; margin: 1rem 0; padding: 1rem; }
.rft-quick-guide h3 { font-size: 1rem; margin: 0 0 .65rem; }
.rft-quick-guide ol { display: grid; gap: .55rem; margin: 0; padding-left: 1.25rem; }
.rft-quick-guide li { line-height: 1.5; padding-left: .2rem; }
.rft-detailed-guide { border-top: 1px solid var(--surface-d); margin-top: 1rem; padding-top: .8rem; }
.rft-detailed-guide-toggle { background: transparent; border: 0; color: var(--primary-color); cursor: pointer; font: inherit; font-weight: 700; padding: .35rem 0; text-align: left; }
.rft-detailed-guide-toggle:after { content: " +"; }
.rft-detailed-guide.expanded .rft-detailed-guide-toggle:after { content: " −"; }
.rft-detailed-guide-content { max-height: 0; overflow: hidden; }
.rft-detailed-guide.expanded .rft-detailed-guide-content { max-height: none; overflow: visible; }
.rft-intent-guardrail { background: var(--surface-b); border: 1px solid var(--surface-d); border-radius: 8px; margin: 1rem 0; padding: 1rem; }
.rft-intent-guardrail h2 { font-size: 1.1rem; margin: 0 0 .35rem; }
.rft-intent-guardrail p { color: var(--text-color-secondary); line-height: 1.5; margin: 0; }
.rft-intent-table { border: 1px solid var(--surface-d); border-radius: 6px; margin: .85rem 0; overflow: hidden; }
.rft-intent-row { align-items: center; background: var(--surface-a); border-top: 1px solid var(--surface-d); display: grid; gap: .65rem; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(85px, .65fr)); padding: .65rem .75rem; }
.rft-intent-row:first-child { border-top: 0; }
.rft-intent-row.header { background: var(--surface-c); color: var(--text-color-secondary); font-size: .76rem; font-weight: 700; text-transform: uppercase; }
.rft-intent-row.selected { box-shadow: inset 4px 0 0 var(--primary-color); }
.rft-intent-row small { color: var(--text-color-secondary); display: block; font-size: .72rem; margin-top: .18rem; }
.rft-intent-links a { font-weight: 700; }
.rft-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1rem 0; }
.rft-primary-actions { align-items: center; flex-wrap: nowrap; }
.rft-target-row { align-items: center; display: flex; gap: .65rem; margin: 1rem 0; }
.rft-current-target { align-items: center; background: #eef6ff; border: 1px solid #b8d6f4; border-left: 4px solid var(--mb-sapphire); border-radius: 7px; display: flex; flex: 1 1 420px; gap: .65rem; min-height: 38px; min-width: 0; padding: .45rem .7rem; }
.rft-current-target > span { color: var(--mb-sapphire); flex: 0 0 auto; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.rft-current-target > a { color: var(--text-color) !important; font-size: .86rem; font-weight: 600; min-width: 0; overflow: hidden; text-decoration: none !important; text-overflow: ellipsis; white-space: nowrap; }
.rft-current-target > a:hover { color: var(--mb-sapphire) !important; text-decoration: underline !important; }
.rft-processing .rft-current-target { background: #fff; margin: .65rem 0; }
.rft-processing > span { display: block; margin-top: .25rem; }
.rft-login-prompt { align-items: center; background: #eef6ff; border: 1px solid #b8d6f4; border-radius: 8px; display: flex; gap: .6rem; margin-top: 1rem; padding: .75rem .85rem; }
.rft-login-prompt i { color: var(--mb-sapphire); }
.rft-card .content-tool-entry-gate { align-items: end; background: var(--surface-a); border: 1px solid var(--surface-d); border-left: 4px solid var(--primary-color); border-radius: 8px; box-shadow: 0 2px 10px rgba(16, 24, 32, .06); display: grid; gap: 1rem; grid-template-columns: minmax(240px, 1fr) minmax(320px, auto); margin: 1rem 0; padding: 1rem; }
.rft-card .content-tool-entry-gate-title { align-items: center; display: flex; font-size: 1rem; font-weight: 400; gap: .45rem; margin: 0 0 .3rem; }
.rft-card .content-tool-entry-gate-copy { color: var(--text-color-secondary); font-size: .88rem; line-height: 1.45; margin: 0; }
.rft-card .content-tool-entry-gate-form { align-items: end; display: grid; gap: .75rem; grid-template-columns: minmax(0, 360px) auto; justify-content: start; }
.rft-card .content-tool-entry-gate-form.with-code { grid-column: 2; margin-top: .75rem; }
.rft-card .content-tool-entry-gate-form .ui-inputfield { width: 100%; }
.rft-card .content-tool-entry-label { color: var(--text-color-secondary); display: block; font-size: .78rem; font-weight: 600; margin: 0 0 .35rem; text-transform: uppercase; }
.rft-note { background: #fff9db; border: 1px solid #f0d96c; border-radius: 6px; color: var(--text-color-secondary); margin: .75rem 0; padding: .7rem .85rem; }
.rft-score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0; }
.rft-score-grid.single { grid-template-columns: minmax(0, 1fr); }
.rft-corpus-panel { margin: 1rem 0; padding: 1rem 1.1rem; border: 2px solid #2563eb; border-radius: 12px; background: #eff6ff; }
.rft-corpus-panel h2 { margin: 0 0 .55rem; color: #1e3a8a; }
.rft-corpus-summary { margin: 0 0 .45rem; font-size: 1.02rem; }
.rft-corpus-table-wrap { overflow-x: auto; margin-top: .8rem; }
.rft-corpus-table { width: 100%; border-collapse: collapse; background: #fff; }
.rft-corpus-table th, .rft-corpus-table td { padding: .7rem; border: 1px solid #bfdbfe; text-align: left; vertical-align: top; }
.rft-corpus-table thead th { background: #dbeafe; color: #1e3a8a; }
.rft-score-card { background: var(--surface-b); border: 1px solid var(--surface-d); border-radius: 8px; padding: 1rem; min-width: 0; }
.rft-score-label { color: var(--text-color-secondary); font-size: .78rem; text-transform: uppercase; }
.rft-score-value { font-size: 1.7rem; font-weight: 600; margin: .25rem 0; }
.rft-url { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rft-bar { background: var(--surface-d); border-radius: 999px; height: .65rem; margin-top: .75rem; overflow: hidden; }
.rft-bar > span { background: var(--mb-red); display: block; height: 100%; min-width: 2px; }
.rft-score-card.comparison .rft-bar > span { background: var(--mb-sapphire); }
.rft-meta-title-content { margin-top: .85rem; max-height: none; min-height: 3rem; }
.rft-section { border-top: 1px solid var(--surface-d); margin-top: 1.25rem; padding-top: 1.25rem; }
.rft-section h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
.rft-section-intro { color: var(--text-color-secondary); margin: -.25rem 0 .85rem; }
.rft-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; list-style: none; padding: 0; counter-reset: process; }
.rft-process li { background: var(--surface-b); border: 1px solid var(--surface-d); border-radius: 8px; padding: .85rem; counter-increment: process; }
.rft-process li:before { background: var(--mb-sapphire); border-radius: 50%; color: white; content: counter(process); display: inline-flex; font-size: .75rem; height: 1.35rem; align-items: center; justify-content: center; margin-right: .45rem; width: 1.35rem; }
.rft-table { table-layout: fixed; width: 100%; }
.rft-table td { overflow-wrap: anywhere; vertical-align: top; }
.rft-definition { background: #eef6ff; border-color: #b8d6f4; color: var(--text-color); }
.rft-algorithm-comparison { border: 1px solid var(--surface-d); border-radius: 8px; margin: 1rem 0; padding: 1rem; }
.rft-algorithm-comparison > h2 { font-size: 1.05rem; margin: 0 0 .75rem; }
.rft-algorithm-grid { display: grid; gap: .75rem; grid-template-columns: repeat(3, 1fr); }
.rft-algorithm-grid > div { background: var(--surface-b); border: 1px solid var(--surface-d); border-radius: 7px; padding: .8rem; }
.rft-algorithm-grid > div.active { background: #eef6ff; border-color: #77aee3; box-shadow: inset 0 3px var(--mb-sapphire); }
.rft-algorithm-grid h3 { color: var(--mb-space); font-size: .95rem; margin: 0 0 .45rem; }
.rft-algorithm-grid strong { display: block; font-size: .82rem; margin-bottom: .35rem; }
.rft-algorithm-grid p { color: var(--text-color-secondary); font-size: .82rem; line-height: 1.45; margin: 0; }
.rft-html-tfidf-purpose { border-left: 4px solid var(--mb-sapphire); margin-top: 1rem; }
.rft-method-details { margin: .75rem 0 1rem; }
.rft-method-details .rft-algorithm-comparison { border: 0; margin: .8rem 0 0; padding: 0; }
.rft-customer-context-match .rft-input-action .ui-selectonemenu { flex: 1 1 24rem; min-width: 15rem; }
.rft-field-visual { border: 1px solid var(--surface-d); border-radius: 8px; margin: .9rem 0; overflow: hidden; }
.rft-field-visual > h3 { background: var(--surface-b); border-bottom: 1px solid var(--surface-d); font-size: .95rem; margin: 0; padding: .7rem .85rem; }
.rft-heatmap-grid { display: grid; grid-template-columns: 1fr 1fr; }
.rft-heatmap-grid.single { grid-template-columns: minmax(0, 1fr); }
.rft-heatmap-grid > div { min-width: 0; padding: .85rem; }
.rft-heatmap-grid > div + div { border-left: 1px solid var(--surface-d); }
.rft-side-label { align-items: baseline; color: var(--mb-red); display: flex; flex-wrap: wrap; font-size: .78rem; font-weight: 700; gap: .25rem .55rem; margin-bottom: .5rem; text-transform: uppercase; }
.rft-side-label strong { color: var(--text-color); font-size: .9rem; margin-left: .35rem; }
.rft-side-label span { color: var(--text-color-secondary); font-size: .72rem; font-weight: 400; margin-left: auto; text-transform: none; }
.rft-inline-edit-hint { background: transparent; border: 0; color: var(--text-color-secondary); cursor: pointer; font: inherit; font-size: .72rem; font-style: normal; font-weight: 400; margin-left: .55rem; padding: 0; text-transform: none; white-space: nowrap; }
.rft-inline-edit-hint:hover, .rft-inline-edit-hint:focus { color: var(--mb-sapphire); outline: 0; text-decoration: underline; }
.rft-inline-edit-hint i { color: var(--mb-sapphire); margin-right: .2rem; }
.rft-heatmap-grid > div + div .rft-side-label { color: var(--mb-sapphire); }
.rft-field-score-detail { background: var(--surface-b); border-radius: 5px; color: var(--text-color-secondary); font-size: .78rem; line-height: 1.45; margin: 0 0 .55rem; padding: .45rem .55rem; }
.rft-heatmap { background: var(--surface-a); border: 1px solid var(--surface-d); border-radius: 6px; line-height: 1.65; max-height: 310px; overflow: auto; overflow-wrap: anywhere; padding: .75rem; white-space: pre-wrap; }
.rft-inline-editor { border-color: #77aee3; box-shadow: inset 0 0 0 1px rgba(18, 82, 168, .12); cursor: text; min-height: 3rem; }
.rft-inline-editor[data-rft-edit-key="html"] { min-height: 180px; }
.rft-inline-editor:focus { border-color: var(--mb-sapphire); box-shadow: 0 0 0 3px rgba(18, 82, 168, .16); outline: 0; }
.rft-inline-editor:empty:before { color: var(--text-color-secondary); content: attr(data-rft-placeholder); font-style: italic; }
.rft-inline-editor .rft-hit[title], .rft-inline-editor .rft-window[title] { cursor: text; }
.rft-semantic-heading-editor { line-height: 1.75; white-space: pre-wrap; }
.rft-vector-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 1rem; }
.rft-vector-grid.single { grid-template-columns: minmax(0, 1fr); }
.rft-vector-side { min-width: 0; }
.rft-vector-row { background: var(--surface-card, #fff); border: 1px solid var(--surface-d); border-left: 4px solid var(--mb-red); border-radius: 8px; margin-bottom: .75rem; padding: 1rem; }
.rft-vector-side.comparison .rft-vector-row { border-left-color: var(--mb-sapphire); }
.rft-vector-heading { align-items: center; display: flex; gap: 1rem; justify-content: space-between; }
.rft-vector-heading span { color: var(--mb-red); font-weight: 700; }
.rft-vector-side.comparison .rft-vector-heading span { color: var(--mb-sapphire); }
.rft-vector-row p { margin: .65rem 0; overflow-wrap: anywhere; }
.rft-vector-row small { display: block; line-height: 1.45; margin-top: .55rem; }
.rft-edit-hint { color: var(--text-color-secondary); font-size: .78rem; margin: -.15rem 0 .45rem; }
.rft-edit-hint i { color: var(--mb-sapphire); margin-right: .3rem; }
.rft-editor-state { display: none; }
.rft-inline-actions { border-top: 1px solid var(--surface-d); margin-top: 1rem; padding-top: 1rem; }
.rft-hit { background: #ffe082; border-bottom: 2px solid #f3a712; border-radius: 2px; color: #1f2937; padding: 0 .08rem; }
.rft-window { background: #d8eaff; border: 3px solid #1252a8; border-radius: 5px; box-decoration-break: clone; -webkit-box-decoration-break: clone; box-shadow: 0 0 0 2px rgba(18, 82, 168, .14); padding: .12rem .2rem; }
.rft-hit[title], .rft-window[title] { cursor: help; }
.rft-stop-word { border-bottom: 1px dotted #7b8491; color: #7b8491; font-style: normal; }
.rft-stop-word[title] { cursor: help; }
.rft-stop-word-legend { align-items: center; color: var(--text-color-secondary); display: flex; font-size: .85rem; font-weight: 600; gap: .55rem; margin: -.2rem 0 .9rem; }
.rft-stop-word-swatch { border-bottom: 1px dotted #7b8491; color: #7b8491; display: inline-block; line-height: 1.1; }
.rft-window-legend { align-items: center; color: var(--text-color-secondary); display: flex; font-size: .9rem; font-weight: 600; gap: .5rem; margin: -.2rem 0 .9rem; }
.rft-window-swatch { background: #d8eaff; border: 3px solid #1252a8; border-radius: 4px; display: inline-block; height: 1.15rem; width: 1.9rem; }
.rft-input-action { align-items: stretch; display: grid; gap: .55rem; grid-template-columns: minmax(0, 1fr) auto; }
.rft-field .rft-input-action .ui-inputfield { min-width: 0; width: 100%; }
.rft-input-action .ui-button { margin: 0; white-space: nowrap; }
.rft-weight-legend { align-items: center; color: var(--text-color-secondary); display: flex; font-size: .85rem; font-weight: 600; gap: .55rem; margin: -.2rem 0 .9rem; }
.rft-weight-gradient { background: linear-gradient(90deg, #fff3bf 0%, #ffe066 25%, #f7b731 50%, #f08c00 75%, #d9480f 100%); border: 1px solid #b45309; border-radius: 4px; display: inline-block; height: 1rem; width: 10rem; }
.rft-tfidf-query-swatch { background: #ffe082; border-bottom: 2px solid #f3a712; border-radius: 2px; display: inline-block; height: 1rem; width: 2rem; }
.rft-concept-score-grid { display: grid; gap: .65rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1rem; }
.rft-concept-score { border: 1px solid var(--surface-d); border-radius: 7px; padding: .75rem; }
.rft-concept-score h3 { font-size: .9rem; margin: 0 0 .55rem; }
.rft-concept-score-sides { display: grid; gap: .65rem; grid-template-columns: 1fr 1fr; }
.rft-concept-score-sides.single { grid-template-columns: minmax(0, 1fr); }
.rft-concept-score-sides > div { background: #fff7f7; border-left: 3px solid var(--mb-red); padding: .5rem .6rem; }
.rft-concept-score-sides > div.comparison { background: #eef6ff; border-left-color: var(--mb-sapphire); }
.rft-concept-score-sides span { font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.rft-concept-score-sides strong { float: right; font-size: .85rem; }
.rft-concept-score-sides p { color: var(--text-color-secondary); font-size: .8rem; line-height: 1.4; margin: .3rem 0 0; }
.rft-hit.rft-weighted { border: 1px solid #9a3412 !important; border-bottom-width: 2px !important; color: #1f2937 !important; padding: 0 .08rem !important; }
.rft-hit.rft-weight-1 { background: #fff3bf !important; }
.rft-hit.rft-weight-2 { background: #ffe066 !important; }
.rft-hit.rft-weight-3 { background: #f7b731 !important; }
.rft-hit.rft-weight-4 { background: #f08c00 !important; color: #111827 !important; }
.rft-hit.rft-weight-5 { background: #d9480f !important; color: #fff !important; }
.rft-passage { border-radius: 4px; display: inline; padding: .08rem .12rem; }
.rft-passage.relevant { background: rgba(46, 160, 67, .18); box-shadow: inset 0 -2px rgba(46, 160, 67, .55); }
.rft-passage.neutral { color: var(--text-color-secondary); }
.rft-empty { color: var(--text-color-secondary); font-style: italic; }
.rft-evidence-list { display: grid; gap: .85rem; }
.rft-evidence-card { border: 1px solid var(--surface-d); border-radius: 8px; padding: .9rem; }
.rft-evidence-card > h3 { font-size: .95rem; margin: 0 0 .75rem; }
.rft-evidence-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rft-evidence-bars.single { grid-template-columns: minmax(0, 1fr); }
.rft-evidence-side > span { color: var(--mb-red); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.rft-evidence-side > span strong { color: var(--text-color); float: right; font-size: .82rem; }
.rft-evidence-side.comparison > span { color: var(--mb-sapphire); }
.rft-evidence-side p { color: var(--text-color-secondary); font-size: .82rem; line-height: 1.45; margin: .4rem 0 0; }
.rft-mini-bar { background: var(--surface-d); border-radius: 999px; height: .55rem; margin-top: .3rem; overflow: hidden; }
.rft-mini-bar b { background: var(--mb-red); display: block; height: 100%; min-width: 2px; }
.rft-evidence-side.comparison .rft-mini-bar b { background: var(--mb-sapphire); }
.rft-calculation-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin: .8rem 0 1rem; }
.rft-calculation-grid.single { grid-template-columns: minmax(0, 1fr); }
.rft-tfidf-factor-list { border: 1px solid var(--surface-d); border-radius: 8px; overflow: hidden; }
.rft-tfidf-factor-row { align-items: stretch; display: grid; grid-template-columns: minmax(230px, 1.25fr) minmax(180px, 1fr) minmax(180px, 1fr); }
.rft-tfidf-factor-row + .rft-tfidf-factor-row { border-top: 1px solid var(--surface-d); }
.rft-tfidf-factor-row > div { display: flex; flex-direction: column; gap: .3rem; justify-content: center; line-height: 1.4; padding: .8rem .9rem; }
.rft-tfidf-factor-row > div + div { border-left: 1px solid var(--surface-d); }
.rft-tfidf-factor-row > div.comparison { background: rgba(33, 150, 243, .04); }
.rft-tfidf-factor-row span { color: var(--text-color-secondary); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rft-tfidf-factor-name small { color: var(--text-color-secondary); display: block; font-weight: 400; }
.rft-calculation { border-left: 4px solid var(--mb-red); margin: 0; }
.rft-calculation.comparison { border-left-color: var(--mb-sapphire); }
.rft-calculation strong { display: block; margin-bottom: .35rem; }
.rft-calculation p { line-height: 1.5; margin: 0; }
.rft-depth-scale { background: var(--surface-d); border-radius: 999px; height: .8rem; margin-top: .45rem; overflow: visible; position: relative; }
.rft-depth-scale b { background: var(--mb-red); border-radius: 999px; display: block; height: 100%; min-width: 2px; }
.rft-depth-scale.comparison b { background: var(--mb-sapphire); }
.rft-depth-scale i { background: #fff; border: 2px solid var(--mb-space); border-radius: 50%; cursor: help; height: .85rem; position: absolute; top: 50%; transform: translate(-50%, -50%); width: .85rem; }
.rft-depth-current { color: var(--text-color); font-size: .82rem; font-weight: 700; margin-top: .4rem; }
.rft-depth-key { color: var(--text-color-secondary); display: flex; flex-wrap: wrap; font-size: .72rem; gap: .25rem .75rem; margin-top: .3rem; }
.rft-depth-key span:before { content: "•"; margin-right: .25rem; }
.rft-next-action { background: var(--surface-b); border-radius: 6px; font-size: .85rem; line-height: 1.45; margin-top: .75rem; padding: .65rem .75rem; }
.rft-next-action i { color: var(--mb-sapphire); margin-right: .35rem; }
.rft-repair-list { line-height: 1.55; }
.rft-details { border-top: 1px solid var(--surface-d); margin-top: 1.25rem; padding-top: .35rem; }
.rft-details > summary { align-items: center; color: var(--mb-space); cursor: pointer; display: flex; font-size: 1rem; font-weight: 700; gap: .5rem; list-style: none; min-height: 44px; }
.rft-details > summary::-webkit-details-marker { display: none; }
.rft-details > summary:after { color: var(--text-color-secondary); content: "⌄"; font-size: 1rem; margin-left: auto; transition: transform .15s ease; }
.rft-details[open] > summary:after { transform: rotate(180deg); }
.rft-details > summary i { color: var(--mb-sapphire); width: 1.15rem; }
.rft-details > .rft-process,
.rft-details > .rft-repair-list,
.rft-details > .rft-note { margin-top: .75rem; }
@media (max-width: 900px) {
  .rft-intent-row { grid-template-columns: 1fr 1fr; }
  .rft-intent-row.header { display: none; }
  .rft-input-grid, .rft-score-grid, .rft-calculation-grid, .rft-process, .rft-heatmap-grid, .rft-evidence-bars, .rft-algorithm-grid, .rft-vector-grid, .rft-tfidf-factor-row { grid-template-columns: 1fr; }
  .rft-tfidf-factor-row > div + div { border-left: 0; border-top: 1px solid var(--surface-d); }
  .rft-input-action { grid-template-columns: minmax(0, 1fr); }
  .rft-primary-actions, .rft-target-row { align-items: stretch; flex-wrap: wrap; }
  .rft-target-row .ui-button { width: 100%; }
  .rft-current-target { flex-basis: 100%; width: 100%; }
  .rft-concept-score-grid, .rft-concept-score-sides { grid-template-columns: 1fr; }
  .rft-input-grid .wide { grid-column: auto; }
  .rft-heatmap-grid > div + div { border-left: 0; border-top: 1px solid var(--surface-d); }
  .rft-card { padding: 1rem; }
  .rft-score-card { padding: .8rem; }
  .rft-heatmap { max-height: 240px; }
  .rft-field-visual { margin: .7rem 0; }
  .rft-details > .rft-process { display: block; }
  .rft-process li + li { margin-top: .5rem; }
  .rft-card .content-tool-entry-gate { grid-template-columns: 1fr; }
  .rft-card .content-tool-entry-gate-form { grid-template-columns: 1fr; width: 100%; }
  .rft-card .content-tool-entry-gate-form.with-code { grid-column: 1; }
  .rft-card .content-tool-entry-gate-form .ui-button { width: 100%; }
}

.rft-semantic-boundary {
    align-items: center;
    background: #eef5ff;
    border: 1px solid #9dbdea;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin: 1rem 0;
    padding: .9rem 1rem;
}

.rft-score-explainer {
    background: var(--surface-b);
    border: 1px solid var(--surface-d);
    border-radius: 8px;
    line-height: 1.55;
    margin: 0 0 1rem;
    padding: .85rem 1rem;
}

.rft-score-explainer p {
    color: var(--text-color-secondary);
    margin: .35rem 0 0;
}

.rft-semantic-content-editor {
    max-height: 34rem;
    min-height: 18rem;
    overflow: auto;
    white-space: pre-wrap;
}

.rft-semantic-heat {
    border-bottom: 2px solid rgba(46, 160, 103, .65);
    border-radius: 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    cursor: help;
    padding: .08rem .04rem;
    position: relative;
}

.rft-semantic-heat.diluting {
    border-bottom-color: rgba(217, 83, 79, .75);
}

.rft-inline-editor .rft-semantic-heat {
    cursor: text;
}

.rft-semantic-heat:hover:after,
.rft-semantic-heat:focus:after {
    background: var(--surface-f);
    border: 1px solid var(--surface-d);
    border-radius: 8px;
    bottom: calc(100% + .55rem);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .2);
    color: var(--text-color);
    content: attr(data-rft-tooltip);
    cursor: default;
    font-size: .8rem;
    font-weight: 400;
    left: 0;
    line-height: 1.45;
    max-width: min(28rem, 80vw);
    min-width: 18rem;
    padding: .7rem .8rem;
    pointer-events: none;
    position: absolute;
    text-align: left;
    text-transform: none;
    white-space: normal;
    z-index: 20;
}

.rft-info-bubble {
    align-items: center;
    background: #eef6ff;
    border: 1px solid #77aee3;
    border-radius: 50%;
    color: var(--mb-sapphire);
    cursor: help;
    display: inline-flex;
    font-size: .65rem;
    height: 1.25rem;
    justify-content: center;
    margin-left: .4rem;
    padding: 0;
    position: relative;
    vertical-align: middle;
    width: 1.25rem;
}

.rft-info-bubble:hover:after,
.rft-info-bubble:focus:after {
    background: var(--surface-f);
    border: 1px solid var(--surface-d);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .2);
    color: var(--text-color);
    content: attr(data-rft-help);
    font-size: .8rem;
    font-weight: 400;
    left: calc(100% + .5rem);
    line-height: 1.45;
    min-width: min(25rem, 75vw);
    padding: .7rem .8rem;
    pointer-events: none;
    position: absolute;
    text-align: left;
    top: -.6rem;
    z-index: 30;
}

@media (max-width: 900px) {
    .rft-semantic-boundary {
        align-items: flex-start;
        flex-direction: column;
    }
}
