.rmgt-tool,
.rmgt-tool * {
    box-sizing: border-box;
}

.rmgt-tool {
    --rmgt-brand: #f73760;
    --rmgt-text: #111827;
    --rmgt-muted: #6b7280;
    --rmgt-border: #e5e7eb;
    --rmgt-surface: #fafafa;
    width: 100%;
    margin: 24px 0;
    padding: 24px;
    color: var(--rmgt-text);
    background: #fff;
    border: 1px solid var(--rmgt-border);
    border-radius: 16px;
}

.rmgt-tool h2 {
    margin: 0 0 10px;
}

.rmgt-tool h3,
.rmgt-tool h4 {
    margin-top: 0;
}

.rmgt-tool form > input,
.rmgt-tool form > textarea {
    width: 100%;
    margin: 0 0 12px;
    padding: 14px;
    font: inherit;
    color: var(--rmgt-text);
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
}

.rmgt-tool textarea {
    min-height: 180px;
    resize: vertical;
}

.rmgt-tool input:focus,
.rmgt-tool textarea:focus,
.rmgt-tool button:focus-visible {
    outline: 3px solid rgba(247, 55, 96, .22);
    outline-offset: 2px;
    border-color: var(--rmgt-brand);
}

.rmgt-tool button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    color: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    background: var(--rmgt-brand);
    border: 0;
    border-radius: 12px;
}

.rmgt-tool button[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

.rmgt-muted {
    color: var(--rmgt-muted);
}

.rmgt-field-help {
    margin: -2px 0 12px;
    font-size: 14px;
}

.rmgt-loading {
    margin-top: 14px;
    color: var(--rmgt-muted);
}

.rmgt-loading[hidden],
.rmgt-usage[hidden] {
    display: none !important;
}

.rmgt-field-group {
    margin-bottom: 14px;
}

.rmgt-field-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--rmgt-text);
    font-size: 15px;
    font-weight: 700;
}

.rmgt-tool .rmgt-field-group input {
    width: 100%;
    margin-bottom: 5px;
    padding: 14px;
    color: var(--rmgt-text);
    font: inherit;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
}

.rmgt-field-hint {
    margin: 0;
    color: var(--rmgt-muted);
    font-size: 13px;
}

.rmgt-form-example {
    margin: -1px 0 13px;
    padding: 9px 11px;
    color: #4b5563;
    font-size: 13px;
    background: #f8fafc;
    border-radius: 9px;
}

.rmgt-tool-route {
    margin: 12px 0 0;
    color: var(--rmgt-muted);
    font-size: 13px;
}

.rmgt-tool-route a {
    color: #9f1239;
    font-weight: 700;
    text-underline-offset: 2px;
}

.rmgt-usage {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin-top: 12px;
    padding: 12px 14px;
    color: #4b5563;
    font-size: 14px;
    background: #f9fafb;
    border: 1px solid var(--rmgt-border);
    border-radius: 10px;
}

.rmgt-usage strong {
    color: var(--rmgt-text);
}

.rmgt-usage-icon {
    display: grid;
    width: 22px;
    height: 22px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
    place-items: center;
    background: #e5e7eb;
    border-radius: 50%;
}

.rmgt-usage-actions {
    display: inline-flex;
    gap: 7px;
    margin-left: 7px;
    white-space: nowrap;
}

.rmgt-usage-actions a {
    color: #9f1239;
    font-weight: 700;
    text-underline-offset: 2px;
}

.rmgt-error {
    margin-top: 14px;
    color: #b91c1c;
}

.rmgt-result {
    margin-top: 22px;
}

.rmgt-grid,
.rmgt-grid-2,
.rmgt-kpi-grid {
    display: grid;
    gap: 12px;
    margin: 0 0 20px;
}

.rmgt-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

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

.rmgt-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.rmgt-card {
    padding: 18px;
    background: var(--rmgt-surface);
    border: 1px solid var(--rmgt-border);
    border-radius: 14px;
}

.rmgt-card + .rmgt-card-stack,
.rmgt-card-block {
    margin-bottom: 20px;
}

.rmgt-score {
    margin: 6px 0 10px;
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 800;
    line-height: 1;
}

.rmgt-kpi-value {
    margin-top: 6px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.rmgt-list {
    margin: 0;
    padding-left: 20px;
}

.rmgt-list li {
    margin-bottom: 8px;
}

.rmgt-subcard {
    margin-top: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--rmgt-border);
    border-radius: 12px;
}

.rmgt-subcard:first-child {
    margin-top: 0;
}

.rmgt-priority {
    display: inline-block;
    padding: 4px 8px;
    color: #9f1239;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    background: #ffe4e6;
    border-radius: 999px;
}

.rmgt-rec-heading {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.rmgt-rec-heading h4 {
    margin: 0;
}

.rmgt-response-box {
    white-space: pre-wrap;
}

.rmgt-visibility-result {
    --rmgt-good: #15803d;
    --rmgt-good-bg: #dcfce7;
    --rmgt-warning: #a16207;
    --rmgt-warning-bg: #fef3c7;
    --rmgt-weak: #b91c1c;
    --rmgt-weak-bg: #fee2e2;
}

.rmgt-result-section {
    margin-bottom: 28px;
    scroll-margin-top: 92px;
}

.rmgt-result-section > h3 {
    margin-bottom: 14px;
    font-size: clamp(22px, 3vw, 28px);
}

.rmgt-visibility-hero {
    padding: 26px;
    background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .06);
}

.rmgt-visibility-overview {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.rmgt-score-ring {
    --rmgt-ring-color: var(--rmgt-brand);
    position: relative;
    display: grid;
    width: 160px;
    height: 160px;
    place-items: center;
    background: conic-gradient(var(--rmgt-ring-color) calc(var(--rmgt-score) * 1%), #e5e7eb 0);
    border-radius: 50%;
}

.rmgt-score-ring::before {
    position: absolute;
    width: 126px;
    height: 126px;
    content: "";
    background: #fff;
    border-radius: 50%;
}

.rmgt-score-ring-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
}

.rmgt-score-ring-inner strong {
    font-size: 42px;
    line-height: 1;
}

.rmgt-score-ring-inner span {
    color: var(--rmgt-muted);
    font-size: 15px;
}

.rmgt-score-weak {
    --rmgt-ring-color: #dc2626;
}

.rmgt-score-improvable {
    --rmgt-ring-color: #d97706;
}

.rmgt-score-solid {
    --rmgt-ring-color: #2563eb;
}

.rmgt-score-strong {
    --rmgt-ring-color: #16a34a;
}

.rmgt-eyebrow {
    margin-bottom: 5px;
    color: var(--rmgt-brand);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.rmgt-visibility-intro h3 {
    margin-bottom: 10px;
    font-size: clamp(25px, 4vw, 34px);
}

.rmgt-summary-copy {
    margin-bottom: 16px;
    color: #374151;
    line-height: 1.65;
    white-space: pre-line;
}

.rmgt-result-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    background: var(--rmgt-brand);
    border-radius: 10px;
}

.rmgt-result-cta:hover {
    color: #fff;
    filter: brightness(.94);
}

.rmgt-orientative-note {
    margin: 0 0 24px;
    padding: 12px 14px;
    color: #4b5563;
    font-size: 13px;
    background: #f9fafb;
    border: 1px solid var(--rmgt-border);
    border-radius: 10px;
}

.rmgt-main-opportunity {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 12px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
}

.rmgt-opportunity-number {
    display: grid;
    width: 40px;
    height: 40px;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    place-items: center;
    background: #111827;
    border-radius: 50%;
}

.rmgt-main-opportunity span {
    display: block;
    margin-bottom: 5px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.rmgt-main-opportunity strong {
    display: block;
    font-size: 18px;
    line-height: 1.5;
}

.rmgt-performance {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #dbe3ee;
}

.rmgt-performance-heading {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.rmgt-performance-heading h4 {
    margin: 0 0 3px;
    font-size: 18px;
}

.rmgt-performance-heading p {
    margin: 0;
    color: var(--rmgt-muted);
    font-size: 13px;
}

.rmgt-performance-heading > span {
    padding: 5px 9px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    background: #fff;
    border: 1px solid var(--rmgt-border);
    border-radius: 999px;
}

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

.rmgt-performance-metric {
    --rmgt-metric-color: #d97706;
    position: relative;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--rmgt-border);
    border-radius: 12px;
}

.rmgt-performance-metric:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.rmgt-metric-heading {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
}

.rmgt-metric-heading h5 {
    margin: 0;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.3;
}

.rmgt-metric-dot {
    width: 9px;
    height: 9px;
    background: var(--rmgt-metric-color);
    border-radius: 50%;
}

.rmgt-metric-score {
    color: #6b7280;
    font-size: 12px;
    white-space: nowrap;
}

.rmgt-metric-score strong {
    color: var(--rmgt-metric-color);
    font-size: 25px;
    line-height: 1;
}

.rmgt-metric-level {
    display: inline-flex;
    margin: 9px 0 8px 18px;
    color: var(--rmgt-metric-color);
    font-size: 12px;
    font-weight: 800;
}

.rmgt-metric-bar {
    height: 7px;
    overflow: hidden;
    background: #e5e7eb;
    border-radius: 999px;
}

.rmgt-metric-bar span {
    display: block;
    height: 100%;
    background: var(--rmgt-metric-color);
    border-radius: inherit;
}

.rmgt-performance-metric p {
    margin: 10px 0 0;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.45;
}

.rmgt-metric-weak {
    --rmgt-metric-color: #dc2626;
}

.rmgt-metric-improvable {
    --rmgt-metric-color: #d97706;
}

.rmgt-metric-solid {
    --rmgt-metric-color: #2563eb;
}

.rmgt-metric-strong {
    --rmgt-metric-color: #16a34a;
}

.rmgt-performance-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 11px;
}

.rmgt-performance-legend span {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.rmgt-performance-legend i {
    width: 7px;
    height: 7px;
    background: currentColor;
    border-radius: 50%;
}

.rmgt-legend-weak {
    color: #dc2626 !important;
}

.rmgt-legend-improvable {
    color: #d97706 !important;
}

.rmgt-legend-solid {
    color: #2563eb !important;
}

.rmgt-legend-strong {
    color: #16a34a !important;
}

.rmgt-performance-footnote {
    margin: 13px 0 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}

.rmgt-result-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 28px;
    padding: 10px;
    overflow-x: auto;
    background: #f8fafc;
    border: 1px solid var(--rmgt-border);
    border-radius: 12px;
}

.rmgt-result-nav > span {
    flex: 0 0 auto;
    padding: 0 5px;
    color: var(--rmgt-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.rmgt-result-nav a {
    flex: 1 0 auto;
    padding: 9px 12px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--rmgt-border);
    border-radius: 8px;
}

.rmgt-result-nav a:hover,
.rmgt-result-nav a:focus-visible {
    color: #9f1239;
    background: #ffe4e6;
}

.rmgt-section-heading {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 16px;
}

.rmgt-section-heading > span {
    display: grid;
    width: 46px;
    height: 46px;
    color: #9f1239;
    font-weight: 800;
    place-items: center;
    background: #fff1f4;
    border-radius: 12px;
}

.rmgt-section-heading h3 {
    margin: 0 0 4px;
}

.rmgt-section-heading p {
    margin: 0;
    color: var(--rmgt-muted);
}

.rmgt-content-panel {
    margin-bottom: 12px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--rmgt-border);
    border-radius: 14px;
}

.rmgt-content-panel > h4 {
    margin: 0 0 14px;
    font-size: 18px;
}

.rmgt-panel-intro {
    margin: -7px 0 16px;
    color: var(--rmgt-muted);
    font-size: 14px;
}

.rmgt-diagnosis-grid {
    align-items: stretch;
    margin-top: 12px;
}

.rmgt-diagnosis-grid .rmgt-content-panel {
    margin-bottom: 0;
}

.rmgt-next-steps {
    background: #f8fafc;
}

.rmgt-interpretation-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid var(--rmgt-border);
}

.rmgt-interpretation-row:first-child {
    padding-top: 0;
}

.rmgt-interpretation-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.rmgt-interpretation-row p {
    margin: 5px 0 0;
    color: var(--rmgt-muted);
}

.rmgt-status,
.rmgt-impact {
    display: inline-block;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    border-radius: 999px;
}

.rmgt-status-good {
    color: var(--rmgt-good);
    background: var(--rmgt-good-bg);
}

.rmgt-status-improvable {
    color: var(--rmgt-warning);
    background: var(--rmgt-warning-bg);
}

.rmgt-status-weak {
    color: var(--rmgt-weak);
    background: var(--rmgt-weak-bg);
}

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

.rmgt-competitor-card {
    padding: 16px;
    background: var(--rmgt-surface);
    border: 1px solid var(--rmgt-border);
    border-radius: 12px;
}

.rmgt-competitor-card h4 {
    margin-bottom: 8px;
    font-size: 18px;
}

.rmgt-competitor-card p {
    margin: 0 0 12px;
}

.rmgt-competitor-advantage {
    padding-top: 10px;
    color: #4b5563;
    font-size: 14px;
    border-top: 1px solid var(--rmgt-border);
}

.rmgt-target-questions .rmgt-list li::marker {
    color: var(--rmgt-brand);
    font-weight: 800;
}

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

.rmgt-roadmap-step {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--rmgt-border);
    border-radius: 12px;
}

.rmgt-roadmap-number {
    display: grid;
    width: 32px;
    height: 32px;
    color: #fff;
    font-weight: 800;
    place-items: center;
    background: var(--rmgt-brand);
    border-radius: 50%;
}

.rmgt-roadmap-moment {
    color: #9f1239;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.rmgt-roadmap-step h4 {
    margin: 4px 0 6px;
}

.rmgt-roadmap-step p {
    margin: 0;
    color: var(--rmgt-muted);
    font-size: 14px;
}

.rmgt-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.rmgt-action-table {
    width: 100%;
    min-width: 820px;
    border-spacing: 0;
    border-collapse: collapse;
    font-size: 14px;
}

.rmgt-action-table th,
.rmgt-action-table td {
    padding: 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--rmgt-border);
}

.rmgt-action-table th {
    color: #374151;
    font-size: 12px;
    background: #f3f4f6;
}

.rmgt-action-table tr:last-child td {
    border-bottom: 0;
}

.rmgt-impact {
    color: #374151;
    background: #e5e7eb;
}

.rmgt-credit {
    margin-top: 18px;
    color: var(--rmgt-muted);
    font-size: 13px;
    text-align: right;
}

.rmgt-credit a {
    color: var(--rmgt-muted);
    text-decoration: none;
}

.rmgt-credit a:hover {
    text-decoration: underline;
}

.rmgt-popup-overlay[hidden] {
    display: none;
}

.rmgt-popup,
.rmgt-popup * {
    box-sizing: border-box;
}

html.rmgt-popup-open,
body.rmgt-popup-open {
    overflow: hidden !important;
}

.rmgt-popup-overlay {
    --rmgt-brand: #f73760;
    --rmgt-text: #111827;
    --rmgt-muted: #6b7280;
    --rmgt-border: #e5e7eb;
    position: fixed !important;
    z-index: 2147483000 !important;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17, 24, 39, .62);
    isolation: isolate;
    transform: none !important;
}

.rmgt-popup {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    padding: 26px;
    color: var(--rmgt-text);
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
    overscroll-behavior: contain;
}

.rmgt-popup h3 {
    padding-right: 30px;
    font-size: 24px;
}

.rmgt-popup label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
}

.rmgt-popup label input {
    display: block !important;
    width: 100%;
    height: auto !important;
    min-height: 46px;
    margin-top: 6px;
    padding: 12px;
    color: var(--rmgt-text) !important;
    font: inherit;
    line-height: 1.3 !important;
    background: #fff !important;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: none !important;
}

.rmgt-popup .rmgt-privacy-field {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    font-weight: 400;
}

.rmgt-popup .rmgt-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.rmgt-popup .rmgt-privacy-field input {
    width: 18px !important;
    min-height: 18px !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
}

.rmgt-popup .rmgt-privacy-field a {
    color: #9f1239;
}

.rmgt-popup button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px !important;
    color: #fff !important;
    font: inherit !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    cursor: pointer;
    background: var(--rmgt-brand) !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    text-transform: none !important;
}

.rmgt-popup button[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

.rmgt-popup .rmgt-popup-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    min-height: 38px;
    padding: 0;
    color: #4b5563 !important;
    font-size: 28px;
    font-weight: 400;
    background: transparent !important;
}

.rmgt-popup-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

.rmgt-tool .rmgt-button-secondary,
.rmgt-popup .rmgt-button-secondary {
    color: #374151 !important;
    background: #f3f4f6 !important;
}

.rmgt-popup-message {
    margin-top: 12px;
    font-size: 14px;
}

.rmgt-limit-popup {
    text-align: center;
}

.rmgt-limit-icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    place-items: center;
    background: var(--rmgt-brand);
    border-radius: 50%;
}

.rmgt-limit-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.rmgt-limit-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    font-weight: 800;
    text-decoration: none !important;
    border-radius: 12px;
}

.rmgt-limit-primary {
    color: #fff !important;
    background: var(--rmgt-brand);
}

.rmgt-limit-secondary {
    color: #374151 !important;
    background: #f3f4f6;
}

.rmgt-popup .rmgt-limit-later {
    min-height: 36px;
    margin-top: 8px;
    padding: 6px 10px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
    background: transparent !important;
}

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

@media (max-width: 700px) {
    .rmgt-tool {
        padding: 18px;
    }

    .rmgt-grid-2 {
        grid-template-columns: 1fr;
    }

    .rmgt-visibility-hero {
        padding: 20px;
    }

    .rmgt-visibility-overview {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .rmgt-score-ring {
        width: 140px;
        height: 140px;
    }

    .rmgt-score-ring::before {
        width: 108px;
        height: 108px;
    }

    .rmgt-result-nav {
        margin-inline: -8px;
    }

    .rmgt-result-nav > span {
        display: none;
    }

    .rmgt-performance-heading {
        display: block;
    }

    .rmgt-performance-heading > span {
        display: inline-block;
        margin-top: 9px;
    }

    .rmgt-performance-grid {
        grid-template-columns: 1fr;
    }

    .rmgt-performance-metric:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .rmgt-main-opportunity {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 16px;
    }

    .rmgt-opportunity-number {
        width: 34px;
        height: 34px;
    }

    .rmgt-section-heading {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .rmgt-section-heading > span {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .rmgt-interpretation-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .rmgt-status {
        justify-self: start;
    }

    .rmgt-competitor-grid,
    .rmgt-roadmap {
        grid-template-columns: 1fr;
    }

    .rmgt-table-wrap {
        overflow: visible;
    }

    .rmgt-action-table {
        min-width: 0;
    }

    .rmgt-action-table thead {
        display: none;
    }

    .rmgt-action-table,
    .rmgt-action-table tbody,
    .rmgt-action-table tr,
    .rmgt-action-table td {
        display: block;
        width: 100%;
    }

    .rmgt-action-table tr {
        margin-bottom: 12px;
        padding: 12px;
        background: var(--rmgt-surface);
        border: 1px solid var(--rmgt-border);
        border-radius: 10px;
    }

    .rmgt-action-table td {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 8px;
        padding: 8px 0;
        border-bottom: 1px solid var(--rmgt-border);
    }

    .rmgt-action-table td::before {
        color: var(--rmgt-muted);
        font-size: 12px;
        font-weight: 800;
        content: attr(data-label);
    }

    .rmgt-action-table td:last-child {
        border-bottom: 0;
    }

    .rmgt-popup-actions {
        flex-direction: column-reverse;
    }

    .rmgt-popup-actions button {
        width: 100%;
    }

    .rmgt-usage-actions {
        display: flex;
        flex-wrap: wrap;
        margin: 5px 0 0;
    }
}

/* Response Analyzer v2 */
.rmgt-response-analyzer-tool {
    --rmgt-source-owned: #f73760;
    --rmgt-source-comparators: #7c3aed;
    --rmgt-source-media: #2563eb;
    --rmgt-source-regulators: #16a34a;
    --rmgt-source-other: #9ca3af;
}

.rmgt-response-form {
    margin-top: 20px;
}

.rmgt-response-form .rmgt-response-prompt-field textarea {
    width: 100%;
    min-height: 150px;
    margin: 0 0 5px;
    padding: 14px;
    color: var(--rmgt-text);
    font: inherit;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
}

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

.rmgt-response-domain-field {
    grid-column: 1 / -1;
    max-width: calc(50% - 8px);
}

.rmgt-response-neutrality-note {
    margin: 2px 0 14px;
    padding: 10px 12px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.5;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.rmgt-response-result {
    --rmgt-response-soft: #fff7f8;
    --rmgt-response-line: #eef0f3;
}

.rmgt-response-result .rmgt-result-section {
    scroll-margin-top: 24px;
}

.rmgt-response-answer-card,
.rmgt-response-summary-copy,
.rmgt-response-method-note {
    background: #fff;
    border: 1px solid var(--rmgt-border);
    border-radius: 14px;
}

.rmgt-response-answer-card {
    overflow: hidden;
}

.rmgt-response-answer-meta {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(140px, .6fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--rmgt-border);
}

.rmgt-response-answer-meta > div {
    min-width: 0;
}

.rmgt-response-answer-meta span {
    display: block;
    margin-bottom: 3px;
    color: var(--rmgt-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.rmgt-response-answer-meta strong {
    display: block;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rmgt-response-answer-meta .rmgt-button-secondary {
    min-height: 38px;
    padding: 9px 13px;
    font-size: 13px;
}

.rmgt-response-answer-card .rmgt-response-box {
    min-height: 180px;
    padding: 20px;
    line-height: 1.72;
    white-space: pre-wrap;
    background: #fff;
}

.rmgt-response-summary-copy {
    margin-bottom: 14px;
    padding: 18px 20px;
    border-left: 4px solid var(--rmgt-brand);
}

.rmgt-response-summary-copy strong {
    font-size: 17px;
    line-height: 1.55;
}

.rmgt-response-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.rmgt-response-metric {
    min-width: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--rmgt-border);
    border-radius: 12px;
}

.rmgt-response-metric > span,
.rmgt-response-metric > small {
    display: block;
}

.rmgt-response-metric > span {
    color: var(--rmgt-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.rmgt-response-metric > strong {
    display: block;
    margin: 5px 0 3px;
    overflow: hidden;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rmgt-response-metric > small {
    color: var(--rmgt-muted);
    font-size: 12px;
    line-height: 1.35;
}

.rmgt-response-metric-target {
    background: var(--rmgt-response-soft);
    border-color: #fecdd3;
}

.rmgt-response-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rmgt-response-summary-grid .rmgt-content-panel,
.rmgt-response-factor-detail .rmgt-content-panel,
.rmgt-response-target-grid .rmgt-content-panel,
.rmgt-response-source-grid .rmgt-content-panel {
    margin-bottom: 0;
}

.rmgt-response-factor-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.rmgt-response-factor-panel .rmgt-factor-bars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 34px;
    row-gap: 18px;
}

.rmgt-response-attribute-panel {
    min-width: 0;
}

.rmgt-response-attribute-panel .rmgt-table-wrap {
    overflow-x: auto;
}

.rmgt-response-attribute-panel .rmgt-attribute-matrix th:first-child,
.rmgt-response-attribute-panel .rmgt-attribute-matrix td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
}

.rmgt-response-attribute-panel .rmgt-attribute-matrix thead th:first-child {
    z-index: 2;
}

.rmgt-response-attribute-panel .rmgt-attribute-matrix tr.is-target td:first-child {
    background: #fff7f8;
}

.rmgt-response-panel-heading {
    display: flex;
    gap: 10px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}

.rmgt-response-panel-heading h4 {
    margin: 0;
    font-size: 17px;
}

.rmgt-response-panel-heading span {
    color: var(--rmgt-muted);
    font-size: 11px;
    text-align: right;
}

.rmgt-response-bars,
.rmgt-factor-bars,
.rmgt-gap-chart {
    display: grid;
    gap: 13px;
}

.rmgt-response-bar-row,
.rmgt-factor-row {
    min-width: 0;
}

.rmgt-response-bar-label,
.rmgt-factor-label {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 13px;
}

.rmgt-response-bar-label > span:first-child {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    min-width: 0;
}

.rmgt-response-bar-label > span:last-child,
.rmgt-factor-label span {
    flex: 0 0 auto;
    color: #374151;
    font-weight: 800;
}

.rmgt-response-bar-track,
.rmgt-factor-track,
.rmgt-mini-bar,
.rmgt-owned-track,
.rmgt-gap-line > div {
    position: relative;
    overflow: hidden;
    background: #eceff3;
    border-radius: 999px;
}

.rmgt-response-bar-track,
.rmgt-factor-track {
    height: 8px;
}

.rmgt-response-bar-track > span,
.rmgt-factor-track > span,
.rmgt-mini-bar > span,
.rmgt-owned-track > i,
.rmgt-gap-line > div > i {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.rmgt-response-bar-track > span {
    min-width: 2px;
    background: #4b5563;
}

.rmgt-response-bar-row.is-target .rmgt-response-bar-track > span {
    background: var(--rmgt-brand);
}

.rmgt-factor-track > span {
    min-width: 2px;
    background: #111827;
}

.rmgt-response-bar-row > small,
.rmgt-factor-row > small {
    display: block;
    margin-top: 4px;
    color: var(--rmgt-muted);
    font-size: 11px;
    line-height: 1.35;
}

.rmgt-response-tag {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 7px;
    color: #4b5563;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    background: #f3f4f6;
    border-radius: 999px;
}

.rmgt-response-tag-target {
    color: #9f1239;
    background: #ffe4e6;
}

.rmgt-response-ranking,
.rmgt-attribute-matrix,
.rmgt-source-table {
    width: 100%;
    border-collapse: collapse;
}

.rmgt-response-ranking th,
.rmgt-response-ranking td,
.rmgt-attribute-matrix th,
.rmgt-attribute-matrix td,
.rmgt-source-table th,
.rmgt-source-table td {
    padding: 11px 10px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--rmgt-border);
}

.rmgt-response-ranking th,
.rmgt-attribute-matrix th,
.rmgt-source-table th {
    color: var(--rmgt-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.rmgt-response-ranking tr.is-target td,
.rmgt-attribute-matrix tr.is-target td {
    background: #fff7f8;
}

.rmgt-response-ranking td:nth-child(2) .rmgt-response-tag {
    margin-left: 6px;
}

.rmgt-rank-number {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    font-size: 13px;
    font-weight: 900;
    background: #f3f4f6;
    border-radius: 9px;
}

.rmgt-response-ranking tr.is-target .rmgt-rank-number {
    color: #fff;
    background: var(--rmgt-brand);
}

.rmgt-role-badge {
    display: inline-flex;
    padding: 4px 8px;
    color: #4b5563;
    font-size: 11px;
    font-weight: 800;
    background: #f3f4f6;
    border-radius: 999px;
}

.rmgt-role-primary,
.rmgt-role-recommended {
    color: #166534;
    background: #dcfce7;
}

.rmgt-role-warning {
    color: #991b1b;
    background: #fee2e2;
}

.rmgt-mini-bar {
    display: inline-block;
    width: 74px;
    height: 6px;
    margin-right: 7px;
    vertical-align: middle;
}

.rmgt-mini-bar span {
    background: #6b7280;
}

.rmgt-response-ranking tr.is-target .rmgt-mini-bar span {
    background: var(--rmgt-brand);
}

.rmgt-intensity {
    display: inline-flex;
    gap: 3px;
    align-items: center;
    vertical-align: middle;
}

.rmgt-intensity i {
    display: block;
    width: 8px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 50%;
}

.rmgt-intensity i.is-active {
    background: #374151;
}

.rmgt-attribute-matrix tr.is-target .rmgt-intensity i.is-active,
.rmgt-target-attributes .rmgt-intensity i.is-active {
    background: var(--rmgt-brand);
}

.rmgt-response-footnote {
    margin: 10px 0 0;
    color: var(--rmgt-muted);
    font-size: 11px;
    line-height: 1.45;
}

.rmgt-source-visual {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.rmgt-source-donut {
    position: relative;
    display: grid;
    width: 138px;
    height: 138px;
    margin: 0 auto;
    place-items: center;
    border-radius: 50%;
}

.rmgt-source-donut::before {
    position: absolute;
    width: 88px;
    height: 88px;
    background: #fff;
    border-radius: 50%;
    content: "";
}

.rmgt-source-donut span {
    position: relative;
    z-index: 1;
    display: grid;
    color: var(--rmgt-muted);
    font-size: 11px;
    text-align: center;
}

.rmgt-source-donut strong {
    color: var(--rmgt-text);
    font-size: 25px;
    line-height: 1;
}

.rmgt-source-legend {
    display: grid;
    gap: 7px;
}

.rmgt-source-legend > div {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto auto;
    gap: 7px;
    align-items: center;
    font-size: 12px;
}

.rmgt-source-legend i {
    width: 9px;
    height: 9px;
    border-radius: 3px;
}

.rmgt-source-legend small {
    min-width: 18px;
    color: var(--rmgt-muted);
    text-align: right;
}

.rmgt-source-owned { background: var(--rmgt-source-owned); }
.rmgt-source-comparators { background: var(--rmgt-source-comparators); }
.rmgt-source-media { background: var(--rmgt-source-media); }
.rmgt-source-regulators { background: var(--rmgt-source-regulators); }
.rmgt-source-other { background: var(--rmgt-source-other); }

.rmgt-source-empty,
.rmgt-target-absent {
    padding: 15px;
    background: #f8fafc;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
}

.rmgt-source-empty strong,
.rmgt-target-absent strong {
    display: block;
    margin-bottom: 5px;
}

.rmgt-source-empty p,
.rmgt-target-absent p {
    margin: 0;
    color: var(--rmgt-muted);
    font-size: 13px;
    line-height: 1.5;
}

.rmgt-owned-chart {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--rmgt-border);
}

.rmgt-owned-chart > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
    align-items: center;
}

.rmgt-owned-chart span,
.rmgt-owned-chart small {
    color: var(--rmgt-muted);
    font-size: 11px;
}

.rmgt-owned-track {
    grid-column: 1 / -1;
    height: 6px;
}

.rmgt-owned-track i {
    background: var(--rmgt-source-owned);
}

.rmgt-owned-track-third i {
    background: #64748b;
}

.rmgt-source-table td:first-child strong,
.rmgt-source-table td:first-child small {
    display: block;
}

.rmgt-source-table td:first-child small {
    margin-top: 4px;
    color: var(--rmgt-muted);
    font-size: 11px;
    line-height: 1.4;
}

.rmgt-source-table .rmgt-response-tag {
    display: inline-flex;
    margin: 4px 0 0;
}

.rmgt-response-timeline {
    display: grid;
    grid-template-columns: auto minmax(80px, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    color: var(--rmgt-muted);
    font-size: 10px;
}

.rmgt-timeline-line {
    position: relative;
    height: 4px;
    background: #e5e7eb;
    border-radius: 999px;
}

.rmgt-timeline-line i {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    background: var(--rmgt-brand);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #fecdd3;
    transform: translate(-50%, -50%);
}

.rmgt-gap-row {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rmgt-border);
}

.rmgt-gap-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.rmgt-gap-title,
.rmgt-gap-line {
    display: grid;
    align-items: center;
}

.rmgt-gap-title {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 7px;
}

.rmgt-gap-title span {
    color: #9f1239;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.rmgt-gap-line {
    grid-template-columns: minmax(80px, 105px) minmax(80px, 1fr) 30px;
    gap: 8px;
    margin: 5px 0;
    font-size: 11px;
}

.rmgt-gap-line > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rmgt-gap-line > div {
    height: 7px;
}

.rmgt-gap-leader {
    background: #374151;
}

.rmgt-gap-target {
    background: var(--rmgt-brand);
}

.rmgt-gap-line > strong {
    font-size: 10px;
    text-align: right;
}

.rmgt-target-overview {
    display: grid;
    gap: 16px;
}

.rmgt-target-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.rmgt-target-head h4 {
    margin: 6px 0 2px;
    font-size: 23px;
}

.rmgt-target-head p {
    margin: 0;
    color: var(--rmgt-muted);
}

.rmgt-target-head > strong {
    color: var(--rmgt-brand);
    font-size: 34px;
    line-height: 1;
}

.rmgt-target-mini-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.rmgt-target-mini-metrics span {
    display: grid;
    gap: 2px;
    padding: 10px;
    color: var(--rmgt-muted);
    font-size: 10px;
    text-align: center;
    background: #f8fafc;
    border-radius: 9px;
}

.rmgt-target-mini-metrics strong {
    color: var(--rmgt-text);
    font-size: 18px;
}

.rmgt-target-attributes > strong,
.rmgt-target-lists h5,
.rmgt-target-contexts h5,
.rmgt-target-timeline h5 {
    display: block;
    margin: 0 0 8px;
    font-size: 13px;
}

.rmgt-target-attributes > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.rmgt-target-attributes > div > span {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 6px 9px;
    font-size: 11px;
    background: #fff7f8;
    border: 1px solid #fecdd3;
    border-radius: 999px;
}

.rmgt-target-lists {
    margin: 0;
}

.rmgt-target-lists > div {
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
}

.rmgt-target-lists .rmgt-list,
.rmgt-target-contexts .rmgt-list {
    font-size: 12px;
}

.rmgt-target-gap-note {
    padding: 12px;
    font-size: 12px;
    line-height: 1.5;
    background: #fff7f8;
    border-left: 3px solid var(--rmgt-brand);
    border-radius: 8px;
}

.rmgt-response-opportunities {
    display: grid;
    gap: 10px;
}

.rmgt-response-opportunities article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #eef0f3;
    border-radius: 12px;
}

.rmgt-response-opportunities article > span {
    display: grid;
    width: 36px;
    height: 36px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    place-items: center;
    background: var(--rmgt-brand);
    border-radius: 10px;
}

.rmgt-response-opportunities h4 {
    margin: 0 0 5px;
    font-size: 16px;
}

.rmgt-response-opportunities p {
    margin: 0;
    line-height: 1.55;
}

.rmgt-response-opportunities small {
    display: block;
    margin-top: 7px;
    color: var(--rmgt-muted);
    line-height: 1.45;
}

.rmgt-response-method-note {
    margin-top: 18px;
    padding: 16px 18px;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.55;
    background: #f8fafc;
}

.rmgt-response-method-note strong {
    display: block;
    margin-bottom: 4px;
    color: var(--rmgt-text);
}

.rmgt-response-method-note p {
    margin: 0;
}

@media (max-width: 900px) {
    .rmgt-response-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rmgt-response-summary-grid,
    .rmgt-response-factor-detail,
    .rmgt-response-target-grid,
    .rmgt-response-source-grid {
        grid-template-columns: 1fr;
    }

    .rmgt-response-answer-meta {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .rmgt-response-answer-meta > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .rmgt-response-form-grid {
        grid-template-columns: 1fr;
    }

    .rmgt-response-factor-panel .rmgt-factor-bars {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .rmgt-response-domain-field {
        grid-column: auto;
        max-width: none;
    }

    .rmgt-response-answer-meta {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .rmgt-response-answer-meta > div:first-child {
        grid-column: auto;
    }

    .rmgt-response-answer-meta strong {
        white-space: normal;
    }

    .rmgt-response-answer-meta .rmgt-button-secondary {
        width: 100%;
    }

    .rmgt-response-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .rmgt-response-summary-grid {
        grid-template-columns: 1fr;
    }

    .rmgt-response-panel-heading {
        display: block;
    }

    .rmgt-response-panel-heading span {
        display: block;
        margin-top: 3px;
        text-align: left;
    }

    .rmgt-response-result .rmgt-table-wrap {
        overflow-x: auto;
    }

    .rmgt-response-ranking,
    .rmgt-attribute-matrix,
    .rmgt-source-table {
        min-width: 660px;
    }

    .rmgt-source-visual {
        grid-template-columns: 1fr;
    }

    .rmgt-owned-chart,
    .rmgt-target-mini-metrics {
        grid-template-columns: 1fr;
    }

    .rmgt-gap-line {
        grid-template-columns: 80px minmax(70px, 1fr) 30px;
    }

    .rmgt-target-lists {
        grid-template-columns: 1fr;
    }

    .rmgt-response-opportunities article {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 12px;
    }

    .rmgt-response-opportunities article > span {
        width: 32px;
        height: 32px;
    }
}

.rmgt-response-competitor-note {
    margin-top: 12px;
    padding: 10px 12px;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.45;
    background: #f8fafc;
    border-radius: 9px;
}
