.review-loop-widget {
    --rlw-surface: var(--app-surface-section, rgba(15, 15, 15, 0.98));
    --rlw-card: var(--app-surface-card, rgba(18, 18, 18, 0.98));
    --rlw-control: var(--app-surface-control, rgba(255, 255, 255, 0.035));
    --rlw-border: var(--app-border-soft, rgba(255, 255, 255, 0.1));
    --rlw-border-strong: var(--app-border-default, rgba(255, 255, 255, 0.14));
    --rlw-text: var(--text-primary, #f5f5f5);
    --rlw-muted: var(--text-secondary, rgba(214, 223, 232, 0.62));
    --rlw-faint: var(--text-muted, rgba(214, 223, 232, 0.46));
    --rlw-accent: var(--color-accent, #8adfd0);
    --rlw-danger: var(--color-danger, #ff7d83);
    --rlw-radius-card: var(--app-radius-card, 10px);
    --rlw-radius-section: var(--app-radius-section, 12px);
    position: fixed;
    right: calc(18px + env(safe-area-inset-right));
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 130;
    font-family: "Instrument Sans", sans-serif;
}

.review-loop-widget.is-hidden-by-user {
    display: none;
}

.review-loop-backdrop {
    position: fixed;
    inset: 0;
    z-index: 124;
    background: rgba(0, 0, 0, 0.58);
}

.review-loop-backdrop[hidden],
.review-loop-deck[hidden],
.review-loop-fab-badge[hidden] {
    display: none;
}

.review-loop-fab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 46px;
    height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(130, 210, 197, 0.3);
    border-radius: var(--rlw-radius-card);
    background: rgb(19, 34, 31);
    color: var(--rlw-accent);
    box-shadow: none;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.review-loop-fab:hover {
    border-color: rgba(130, 210, 197, 0.42);
    background: rgb(23, 42, 38);
    color: var(--rlw-text);
}

.review-loop-fab > svg,
.review-loop-fab > i {
    width: 16px;
    height: 16px;
}

.review-loop-fab-copy {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.review-loop-fab-copy span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--rlw-text);
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
}

.review-loop-fab-copy strong {
    display: none;
}

.review-loop-fab-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border: 1px solid rgba(130, 210, 197, 0.28);
    border-radius: 999px;
    background: #101a18;
    color: var(--rlw-accent);
    font: 800 10px/1 "DM Mono", monospace;
}

.review-loop-widget[data-state="closed"] .review-loop-fab {
    border-color: var(--rlw-border-strong);
    background: rgb(20, 20, 20);
    color: var(--rlw-muted);
}

.review-loop-widget.is-open .review-loop-fab {
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px) scale(0.96);
}

.review-loop-deck {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: min(460px, calc(100vw - max(0px, var(--app-sidebar-offset, 0px))));
    max-height: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--rlw-border);
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    background: var(--rlw-surface);
    box-shadow: -18px 0 46px rgba(0, 0, 0, 0.34);
    color: var(--rlw-text);
}

.review-loop-deck-head,
.review-loop-deck-foot {
    flex: 0 0 auto;
    border-color: var(--rlw-border);
}

.review-loop-deck-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--rlw-border);
}

.review-loop-deck-kicker,
.review-loop-card-kicker,
.review-loop-section-label,
.review-loop-mini-field span,
.review-loop-score span,
.review-loop-today-metrics span {
    color: var(--rlw-faint);
    font-size: 12px;
    font-weight: 680;
    letter-spacing: 0.07em;
    line-height: 1;
    text-transform: uppercase;
}

.review-loop-section-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 2px;
}

.review-loop-deck h2 {
    margin: 6px 0 0;
    color: var(--rlw-text);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.review-loop-deck-subtitle {
    max-width: 340px;
    margin: 7px 0 0;
    color: var(--rlw-muted);
    font-size: 13px;
    line-height: 1.35;
}

.review-loop-icon-btn,
.review-loop-nav-btn,
.review-loop-open-full,
.review-loop-nudge-primary,
.review-loop-nudge-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rlw-border);
    border-radius: var(--rlw-radius-card);
    background: var(--rlw-control);
    color: var(--rlw-muted);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.review-loop-icon-btn,
.review-loop-nav-btn,
.review-loop-nudge-close {
    width: 38px;
    height: 38px;
    padding: 0;
}

.review-loop-icon-btn:hover,
.review-loop-nav-btn:hover,
.review-loop-open-full:hover,
.review-loop-nudge-close:hover {
    border-color: var(--rlw-border-strong);
    color: var(--rlw-text);
    background: rgba(255, 255, 255, 0.055);
}

.review-loop-icon-btn svg,
.review-loop-nav-btn svg,
.review-loop-nudge-close svg,
.review-loop-icon-btn i,
.review-loop-nav-btn i,
.review-loop-nudge-close i {
    width: 16px;
    height: 16px;
}

.review-loop-steps {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 12px 0 8px;
}

.review-loop-steps button {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 9px 10px 8px;
    border: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    background: transparent;
    color: var(--rlw-faint);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.16s ease, color 0.16s ease;
}

.review-loop-steps button:hover {
    border-bottom-color: rgba(130, 210, 197, 0.22);
    color: var(--rlw-muted);
}

.review-loop-deck-foot .review-loop-nav-btn {
    gap: 8px;
    width: 100%;
    min-width: 0;
    padding: 0 13px;
    font-size: 13px;
    font-weight: 700;
}

.review-loop-deck-foot .review-loop-nav-btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-loop-deck-foot .review-loop-nav-btn:disabled {
    opacity: 0.38;
    cursor: default;
}

.review-loop-deck-foot .review-loop-nav-btn:disabled:hover {
    border-color: var(--rlw-border);
    background: var(--rlw-control);
    color: var(--rlw-muted);
}

.review-loop-steps button.is-complete {
    border-bottom-color: rgba(130, 210, 197, 0.18);
    color: rgba(130, 210, 197, 0.62);
}

.review-loop-steps button.is-active {
    border-bottom-color: var(--rlw-accent);
    color: var(--rlw-accent);
}

.review-loop-steps strong,
.review-loop-steps small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-loop-steps strong {
    color: var(--rlw-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.review-loop-steps small {
    color: currentColor;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.review-loop-card-track {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.review-loop-card {
    display: none;
    flex-direction: column;
    gap: 13px;
    padding: 16px;
}

.review-loop-card.is-active {
    display: flex;
}

.review-loop-card h3 {
    margin: 0;
    color: var(--rlw-text);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0;
}

.review-loop-card p {
    margin: 0;
    color: var(--rlw-muted);
    font-size: 14px;
    line-height: 1.45;
}

.review-loop-plan-grid,
.review-loop-trade-gate {
    display: grid;
    gap: 8px;
}

.review-loop-trade-gate div {
    display: grid;
    grid-template-columns: 24px 72px minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid var(--rlw-border);
    border-radius: var(--rlw-radius-card);
    background: rgba(255, 255, 255, 0.018);
}

.review-loop-trade-gate svg,
.review-loop-trade-gate i {
    width: 16px;
    height: 16px;
    color: var(--rlw-accent);
}

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

.review-loop-plan-field {
    gap: 7px;
}

.review-loop-plan-field span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.review-loop-plan-field svg,
.review-loop-plan-field i {
    width: 14px;
    height: 14px;
    color: var(--rlw-accent);
}

.review-loop-trade-gate span {
    min-width: 0;
    color: var(--rlw-faint);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.review-loop-trade-gate strong {
    min-width: 0;
    color: var(--rlw-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.28;
}

.review-loop-trade-gate {
    grid-template-columns: 1fr;
    gap: 7px;
}

.review-loop-card-alert {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 13px;
    border: 1px solid rgba(255, 125, 131, 0.24);
    border-radius: var(--rlw-radius-card);
    background: rgba(255, 125, 131, 0.055);
    color: #ffadb1;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
}

.review-loop-card-alert[data-tone="info"] {
    border-color: rgba(130, 210, 197, 0.22);
    background: rgba(130, 210, 197, 0.055);
    color: var(--rlw-accent);
}

.review-loop-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 12px;
}

.review-loop-rule-template-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.review-loop-rule-template-grid button {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 54px;
    padding: 10px 11px;
    border: 1px solid var(--rlw-border);
    border-radius: var(--rlw-radius-card);
    background: var(--rlw-control);
    color: var(--rlw-muted);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.review-loop-rule-template-grid button:hover,
.review-loop-rule-template-grid button.is-active {
    border-color: rgba(130, 210, 197, 0.32);
    background: rgba(130, 210, 197, 0.08);
}

.review-loop-rule-template-grid button span,
.review-loop-rule-template-grid button strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-loop-rule-template-grid button span {
    color: var(--rlw-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
}

.review-loop-rule-template-grid button strong {
    color: var(--rlw-faint);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.15;
    text-transform: none;
}

.review-loop-mini-field,
.review-loop-score {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.review-loop-mini-field input,
.review-loop-mini-field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--rlw-border);
    border-radius: var(--rlw-radius-card);
    background: var(--rlw-control);
    color: var(--rlw-text);
    font: 500 14px/1.4 "Instrument Sans", sans-serif;
    outline: none;
}

.review-loop-mini-field input {
    min-height: 42px;
    padding: 0 12px;
}

.review-loop-mini-field textarea {
    min-height: 82px;
    resize: vertical;
    padding: 12px;
}

.review-loop-mini-field input:focus,
.review-loop-mini-field textarea:focus {
    border-color: rgba(130, 210, 197, 0.42);
}

.review-loop-wide-btn,
.review-loop-rule-actions button,
.review-loop-nudge-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    border: 1px solid rgba(130, 210, 197, 0.32);
    border-radius: var(--rlw-radius-card);
    background: rgba(130, 210, 197, 0.1);
    color: var(--rlw-accent);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.review-loop-wide-btn:hover,
.review-loop-rule-actions button:hover,
.review-loop-nudge-primary:hover {
    border-color: rgba(130, 210, 197, 0.46);
    background: rgba(130, 210, 197, 0.14);
    color: var(--rlw-text);
}

.review-loop-wide-btn svg,
.review-loop-rule-actions svg,
.review-loop-wide-btn i,
.review-loop-rule-actions i {
    width: 16px;
    height: 16px;
}

.review-loop-final-btn {
    min-height: 58px;
    margin-top: 4px;
    border-color: rgba(130, 210, 197, 0.42);
    background: rgba(130, 210, 197, 0.13);
    color: var(--rlw-accent);
    font-size: 15px;
    font-weight: 700;
}

.review-loop-final-btn:hover {
    border-color: rgba(130, 210, 197, 0.58);
    background: rgba(130, 210, 197, 0.18);
}

.review-loop-final-btn.is-complete,
.review-loop-final-btn:disabled {
    border-color: rgba(130, 210, 197, 0.2);
    background: rgba(130, 210, 197, 0.055);
    color: rgba(130, 210, 197, 0.66);
    cursor: default;
}

.review-loop-rule-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.review-loop-rule-actions button:nth-child(2) {
    border-color: rgba(255, 125, 131, 0.28);
    background: rgba(255, 125, 131, 0.075);
    color: #ff9fa4;
}

.review-loop-today-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--rlw-border);
    border-radius: var(--rlw-radius-card);
    background: transparent;
}

.review-loop-today-metrics div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-right: 1px solid var(--rlw-border);
}

.review-loop-today-metrics div:last-child {
    border-right: 0;
}

.review-loop-today-metrics strong {
    min-width: 0;
    overflow: hidden;
    color: var(--rlw-accent);
    font: 700 19px/1 "DM Mono", monospace;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-loop-trade-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-loop-empty,
.review-loop-trade {
    border: 1px solid var(--rlw-border);
    border-radius: var(--rlw-radius-card);
    background: var(--rlw-control);
}

.review-loop-empty {
    padding: 14px;
    color: var(--rlw-muted);
    font-size: 14px;
    line-height: 1.4;
}

.review-loop-trade {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    color: inherit;
    text-decoration: none;
}

.review-loop-trade.is-review-needed {
    border-color: rgba(130, 210, 197, 0.22);
}

.review-loop-trade div {
    min-width: 0;
}

.review-loop-trade strong,
.review-loop-trade span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-loop-trade strong {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--rlw-text);
    font-size: 14px;
    font-weight: 650;
}

.review-loop-trade strong small {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 17px;
    padding: 0 6px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    color: var(--rlw-muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.review-loop-trade span {
    margin-top: 3px;
    color: var(--rlw-muted);
    font-size: 12px;
}

.review-loop-trade em {
    flex: 0 0 auto;
    color: var(--rlw-accent);
    font: normal 700 13px/1 "DM Mono", monospace;
}

.review-loop-trade > svg,
.review-loop-trade > i {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    color: var(--rlw-muted);
}

.review-loop-trade em[data-tone="bad"] {
    color: var(--rlw-danger);
}

.review-loop-today-strip {
    display: grid;
    flex: 0 0 auto;
    gap: 9px;
    margin-top: 10px;
    padding: 30px 0 14px;
    border-top: 1px solid var(--rlw-border);
    background: transparent;
}

.review-loop-today-strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.review-loop-today-strip-title {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.review-loop-today-strip-head span {
    color: var(--rlw-faint);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.review-loop-today-strip-head strong {
    overflow: hidden;
    color: var(--rlw-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-loop-today-strip-metrics {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: repeat(3, minmax(0, auto));
    justify-content: end;
    gap: 6px;
    min-width: 0;
}

.review-loop-today-strip-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.022);
    color: var(--rlw-muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.review-loop-today-strip-metrics strong {
    overflow: visible;
    color: var(--rlw-text);
    font-family: "DM Mono", monospace;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0;
}

.review-loop-today-strip-metrics em {
    color: inherit;
    font-style: normal;
}

.review-loop-today-strip-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--rlw-border);
    border-radius: var(--rlw-radius-card);
    background: var(--rlw-control);
    color: var(--rlw-muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.review-loop-today-strip-link:hover {
    border-color: var(--rlw-border-strong);
    color: var(--rlw-text);
    background: rgba(255, 255, 255, 0.055);
}

.review-loop-today-strip-link svg,
.review-loop-today-strip-link i {
    width: 14px;
    height: 14px;
}

.review-loop-today-strip-list {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.review-loop-today-strip .review-loop-empty {
    min-height: 0;
    padding: 10px 11px;
    font-size: 13px;
}

.review-loop-today-strip .review-loop-trade {
    min-height: 46px;
    padding: 9px 11px;
    background: rgba(255, 255, 255, 0.018);
}

.review-loop-today-strip .review-loop-trade strong {
    font-size: 13px;
}

.review-loop-today-strip .review-loop-trade span {
    font-size: 11px;
}

@media (max-width: 560px) {
    .review-loop-today-strip-head {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .review-loop-today-strip-title {
        flex: 1 1 calc(100% - 44px);
    }

    .review-loop-today-strip-metrics {
        order: 3;
        flex-basis: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: stretch;
    }

    .review-loop-today-strip-metrics span {
        justify-content: center;
    }
}

.review-loop-score input {
    width: 100%;
    accent-color: var(--rlw-accent);
}

.review-loop-score span {
    display: flex;
    justify-content: space-between;
}

.review-loop-score strong {
    color: var(--rlw-accent);
    font-family: "DM Mono", monospace;
}

.review-loop-deck-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--rlw-border);
}

.review-loop-open-full {
    min-height: 42px;
    color: var(--rlw-muted);
    font-size: 14px;
    font-weight: 600;
}

.review-loop-step-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: var(--rlw-muted);
    cursor: default;
    font-family: "DM Mono", monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    pointer-events: none;
}

.review-loop-nudge {
    position: absolute;
    right: 0;
    bottom: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: min(380px, calc(100vw - 28px));
    padding: 12px;
    border: 1px solid rgba(130, 210, 197, 0.24);
    border-radius: var(--rlw-radius-section);
    background: var(--rlw-surface);
    color: var(--rlw-text);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

.review-loop-nudge-copy {
    min-width: 0;
}

.review-loop-nudge-copy span {
    display: block;
    color: var(--rlw-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.review-loop-nudge-copy strong {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: var(--rlw-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-loop-nudge-copy p {
    margin: 6px 0 0;
    color: var(--rlw-muted);
    font-size: 12.5px;
    line-height: 1.35;
}

.review-loop-nudge-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-loop-nudge-primary {
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
    white-space: nowrap;
}

.review-loop-nudge-primary svg,
.review-loop-nudge-primary i {
    width: 16px;
    height: 16px;
}

html.light .review-loop-widget {
    --rlw-surface: #ffffff;
    --rlw-card: #f8fafc;
    --rlw-control: #ffffff;
    --rlw-border: rgba(15, 23, 42, 0.12);
    --rlw-border-strong: rgba(15, 23, 42, 0.22);
    --rlw-text: #111827;
    --rlw-muted: #4b5563;
    --rlw-faint: #6b7280;
    --rlw-accent: #0f766e;
    --rlw-danger: #dc2626;
}

html.light .review-loop-backdrop {
    background: rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

html.light .review-loop-fab,
html.light .review-loop-widget[data-state="closed"] .review-loop-fab {
    border-color: rgba(15, 23, 42, 0.16);
    background: #ffffff;
    color: #4b5563;
    box-shadow: none;
}

html.light .review-loop-fab:hover {
    border-color: rgba(17, 122, 105, 0.36);
    background: rgba(77, 171, 154, 0.10);
    color: #075f52;
}

html.light .review-loop-fab-badge {
    border-color: #ffffff;
    background: #0f766e;
    color: #ffffff;
}

html.light .review-loop-deck {
    border-left-color: rgba(15, 23, 42, 0.14);
    box-shadow: none;
}

html.light .review-loop-icon-btn:hover,
html.light .review-loop-nav-btn:hover,
html.light .review-loop-open-full:hover,
html.light .review-loop-nudge-close:hover {
    background: rgba(15, 23, 42, 0.045);
}

html.light .review-loop-steps button {
    border-bottom-color: rgba(15, 23, 42, 0.12);
}

html.light .review-loop-steps button:hover {
    border-bottom-color: rgba(17, 122, 105, 0.28);
    color: #374151;
}

html.light .review-loop-steps button.is-complete {
    border-bottom-color: rgba(17, 122, 105, 0.22);
    color: #0f766e;
}

html.light .review-loop-card-track {
    scrollbar-color: rgba(15, 23, 42, 0.18) transparent;
}

html.light .review-loop-trade-gate div,
html.light .review-loop-mini-field input,
html.light .review-loop-mini-field textarea,
html.light .review-loop-today-strip-metrics span,
html.light .review-loop-today-strip .review-loop-trade {
    background: #f8fafc;
}

html.light .review-loop-mini-field span {
    color: #475569;
}

html.light .review-loop-section-label,
html.light .review-loop-card-kicker {
    color: #0f766e;
}

html.light .review-loop-plan-field svg,
html.light .review-loop-plan-field i,
html.light .review-loop-trade-gate svg,
html.light .review-loop-trade-gate i {
    color: #0f766e;
}

html.light .review-loop-mini-field input,
html.light .review-loop-mini-field textarea {
    color: #334155;
    font-weight: 500;
}

html.light .review-loop-mini-field input::placeholder,
html.light .review-loop-mini-field textarea::placeholder {
    color: #6b7280;
    opacity: 1;
}

html.light .review-loop-mini-field input:focus,
html.light .review-loop-mini-field textarea:focus {
    border-color: rgba(17, 122, 105, 0.42);
    background: #ffffff;
}

html.light .review-loop-card-alert {
    border-color: rgba(220, 38, 38, 0.22);
    background: rgba(220, 38, 38, 0.075);
    color: #b91c1c;
}

html.light .review-loop-card-alert[data-tone="info"] {
    border-color: rgba(17, 122, 105, 0.24);
    background: rgba(77, 171, 154, 0.10);
    color: #0f766e;
}

html.light .review-loop-rule-template-grid button:hover,
html.light .review-loop-rule-template-grid button.is-active {
    border-color: rgba(17, 122, 105, 0.30);
    background: rgba(77, 171, 154, 0.10);
}

html.light .review-loop-wide-btn,
html.light .review-loop-rule-actions button,
html.light .review-loop-nudge-primary {
    border-color: rgba(17, 122, 105, 0.32);
    background: rgba(77, 171, 154, 0.11);
    color: #0f766e;
}

html.light .review-loop-wide-btn:hover,
html.light .review-loop-rule-actions button:hover,
html.light .review-loop-nudge-primary:hover {
    border-color: rgba(17, 122, 105, 0.46);
    background: rgba(77, 171, 154, 0.16);
    color: #075f52;
}

html.light .review-loop-rule-actions button:nth-child(2) {
    border-color: rgba(220, 38, 38, 0.26);
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
}

html.light .review-loop-trade strong small,
html.light .review-loop-today-strip-metrics span {
    border-color: rgba(15, 23, 42, 0.12);
}

html.light .review-loop-nudge {
    border-color: rgba(17, 122, 105, 0.22);
    background: #ffffff;
    box-shadow: none;
}

@media (min-width: 1024px) {
    .review-loop-fab {
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .review-loop-widget {
        right: calc(10px + env(safe-area-inset-right));
        bottom: calc(10px + env(safe-area-inset-bottom));
    }

    .review-loop-deck {
        right: 0;
        bottom: 0;
        width: 100vw;
    }

    .review-loop-nudge {
        right: 0;
        bottom: 58px;
        width: calc(100vw - 20px);
    }

    .review-loop-deck {
        top: 0;
        max-height: none;
    }

    .review-loop-fab {
        width: 46px;
        padding: 0;
    }

    .review-loop-fab-copy {
        display: none;
    }

    .review-loop-mini-grid,
    .review-loop-plan-grid,
    .review-loop-rule-template-grid,
    .review-loop-rule-actions,
    .review-loop-trade-gate {
        grid-template-columns: 1fr;
    }

    .review-loop-nudge {
        grid-template-columns: 1fr;
    }

    .review-loop-nudge-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 40px;
    }

    .review-loop-card h3 {
        font-size: 20px;
    }
}
