/* recoveryAdaptive.css — Scoped to adaptive system classes only. */

.adapt-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    padding: 16px;
    pointer-events: none;
    transition: background 0.35s ease;
}

.adapt-modal-overlay.adapt-modal-visible {
    background: rgba(0, 0, 0, 0.55);
    pointer-events: all;
}

.adapt-modal-content {
    background: #ffffff;
    border-radius: 28px 28px 22px 22px;
    width: 100%;
    max-width: 460px;
    padding: 28px 24px 24px;
    box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.2);
    border-top: 4px solid #14b8a6;
    transform: translateY(60px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.adapt-modal-overlay.adapt-modal-visible .adapt-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.adapt-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.adapt-modal-avatar {
    font-size: 2rem;
    line-height: 1;
}

.adapt-modal-close {
    background: rgba(241, 245, 249, 0.9);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adapt-modal-close:hover { background: #e2e8f0; }

.adapt-modal-acknowledge {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.5;
    margin: 0 0 16px;
}

.adapt-modal-action-box {
    background: linear-gradient(135deg, rgba(20,184,166,0.07), rgba(13,148,136,0.04));
    border: 1px solid rgba(20,184,166,0.18);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.adapt-modal-action-text {
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.6;
    margin: 0;
}

.adapt-modal-footer { margin-top: 14px; text-align: center; }

.adapt-modal-privacy {
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 0;
}

.adapt-breathe-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 0 10px;
}

.adapt-breathe-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20,184,166,0.3), rgba(13,148,136,0.1));
    border: 3px solid rgba(20,184,166,0.5);
    transition: transform 4s ease-in-out;
    transform: scale(1);
}

.adapt-breathe-cue {
    font-size: 1rem;
    font-weight: 700;
    color: #0F766E;
}

.adapt-exercise-meta {
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 6px 0 0;
}

.adapt-grounding {
    text-align: center;
    padding: 12px 0;
}

.adapt-grounding-step {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 14px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adapt-grounding-bar {
    height: 6px;
    background: rgba(20,184,166,0.15);
    border-radius: 999px;
    margin-bottom: 14px;
}

.adapt-grounding-fill {
    height: 100%;
    background: linear-gradient(90deg, #14b8a6, #0F766E);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.adapt-next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #14b8a6, #0F766E);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    min-height: 48px;
    box-shadow: 0 4px 16px rgba(13,148,136,0.3);
    letter-spacing: 0.02em;
}

.adapt-next-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(13,148,136,0.4); filter: brightness(1.06); }
.adapt-next-btn:active { transform: translateY(0); box-shadow: 0 2px 10px rgba(13,148,136,0.2); }
.adapt-next-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.adapt-countdown {
    text-align: center;
    padding: 10px 0;
}

.adapt-countdown-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.adapt-countdown-text {
    position: absolute;
    font-size: 1.4rem;
    font-weight: 800;
    color: #0F766E;
}

.adapt-urge-meter {
    height: 8px;
    background: rgba(0,0,0,0.06);
    border-radius: 999px;
    margin: 8px 0 4px;
    overflow: hidden;
}

.adapt-urge-bar {
    height: 100%;
    background: #ef4444;
    border-radius: 999px;
    transition: width 1s linear, background 1s ease;
}

.adapt-urge-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.adapt-reflect { padding: 10px 0; }

.adapt-reflect-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.9rem;
    color: #1e293b;
    background: #f8fafc;
    resize: none;
    box-sizing: border-box;
    margin-bottom: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.adapt-reflect-input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20,184,166,0.12);
    background: #fff;
}

.urge-surf-panic-btn {
    position: fixed;
    bottom: 155px;
    right: 18px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 22px rgba(14,165,233,0.4);
    animation: urgePulseShadow 2.5s ease-in-out infinite;
    transition: transform 0.2s ease;
    letter-spacing: 0.02em;
    min-height: 52px;
}

.urge-surf-panic-btn:hover { transform: scale(1.04) translateY(-2px); }
.urge-surf-panic-btn:active { transform: scale(0.97); box-shadow: 0 2px 12px rgba(14,165,233,0.3); animation: none; }

.urge-surf-icon { font-size: 1.2rem; }

@keyframes urgePulseShadow {
    0%, 100% { box-shadow: 0 4px 22px rgba(14,165,233,0.4); }
    50%       { box-shadow: 0 6px 32px rgba(14,165,233,0.65); }
}

@media (min-width: 768px) { .urge-surf-panic-btn { bottom: 80px; } }

.urge-surf-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0,0,0,0);
    padding: 16px;
    pointer-events: none;
    transition: background 0.35s ease;
}

.urge-surf-overlay.urge-surf-visible {
    background: rgba(0,0,0,0.6);
    pointer-events: all;
}

.urge-surf-modal {
    background: #fff;
    border-radius: 28px 28px 22px 22px;
    border-top: 4px solid #0ea5e9;
    width: 100%;
    max-width: 460px;
    padding: 28px 24px 24px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 -8px 48px rgba(0,0,0,0.22);
    transform: translateY(60px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

.urge-surf-overlay.urge-surf-visible .urge-surf-modal {
    transform: translateY(0);
    opacity: 1;
}

.urge-surf-header {
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}

.urge-surf-avatar { font-size: 2.5rem; margin-bottom: 8px; display: block; }

.urge-surf-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.urge-surf-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.urge-surf-close {
    position: absolute;
    top: 0;
    right: 0;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.urge-surf-phase { animation: adaptFadeIn 0.35s ease-out; }
.urge-surf-phase.hidden { display: none; }

@keyframes adaptFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.urge-surf-question {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 14px;
    text-align: center;
}

.urge-surf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 18px;
}

.us-chip {
    padding: 11px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.18s;
    font-family: inherit;
    min-height: 44px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.us-chip:hover { border-color: #0ea5e9; color: #0284c7; background: #f0f9ff; box-shadow: 0 3px 12px rgba(14,165,233,0.15); }
.us-chip:active { transform: scale(0.97); }

.us-chip.us-chip-selected {
    background: linear-gradient(135deg, rgba(14,165,233,0.12), rgba(2,132,199,0.08));
    border-color: #0ea5e9;
    color: #0369a1;
    box-shadow: 0 2px 12px rgba(14,165,233,0.2);
}

/* Breathe ring */
.urge-surf-breathe-wrap { display: flex; justify-content: center; margin-bottom: 18px; }

.urge-breathe-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.urge-breathe-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14,165,233,0.25), rgba(2,132,199,0.05));
    border: 3px solid rgba(14,165,233,0.4);
    transform: scale(1);
}

.urge-breathe-cue {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0284c7;
}

/* Urge countdown */
.urge-surf-countdown-wrap { text-align: center; padding: 8px 0 14px; }

.urge-surf-countdown {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

.urge-surf-count-label {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0 0 14px;
}

.urge-intensity-track {
    height: 8px;
    background: rgba(0,0,0,0.06);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
}

.urge-intensity-fill {
    height: 100%;
    border-radius: 999px;
    background: #ef4444;
    transition: width 1s linear, background 1s ease;
    width: 100%;
}

.urge-intensity-text {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

/* Success screen */
.urge-surf-success { font-size: 3rem; text-align: center; margin-bottom: 10px; }

.urge-surf-success-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin: 0 0 8px;
}

.urge-surf-success-sub {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
    line-height: 1.55;
    margin: 0 0 18px;
}

.urge-surf-btn-primary {
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    min-height: 52px;
    box-shadow: 0 4px 20px rgba(14,165,233,0.35);
    letter-spacing: 0.02em;
}

.urge-surf-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(14,165,233,0.45); filter: brightness(1.06); }
.urge-surf-btn-primary:active { transform: translateY(0); box-shadow: 0 2px 10px rgba(14,165,233,0.2); }

.adapt-micro-widget {
    margin: 14px 0 0;
    border-top: 1px solid rgba(20,184,166,0.12);
    padding-top: 14px;
}

.adapt-micro-inner { animation: adaptFadeIn 0.3s ease; }

.adapt-micro-q {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
}

.adapt-micro-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.adapt-micro-chip {
    padding: 11px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.18s;
    font-family: inherit;
    min-height: 44px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.adapt-micro-chip:hover { border-color: #14b8a6; color: #0F766E; background: #f0fdfa; box-shadow: 0 3px 12px rgba(20,184,166,0.15); }
.adapt-micro-chip:active { transform: scale(0.97); }

.adapt-micro-chip.adapt-micro-selected {
    background: linear-gradient(135deg, rgba(20,184,166,0.12), rgba(13,148,136,0.06));
    border-color: #14b8a6;
    color: #0F766E;
    box-shadow: 0 2px 12px rgba(20,184,166,0.2);
}

.adapt-micro-slider-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.adapt-micro-slider {
    flex: 1;
    accent-color: #14b8a6;
}

.adapt-micro-slider-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0F766E;
    min-width: 24px;
    text-align: center;
}

.adapt-micro-done {
    font-size: 0.9rem;
    font-weight: 600;
    color: #16a34a;
    margin: 6px 0 0;
    animation: adaptFadeIn 0.3s ease;
}

.adapt-distraction-card {
    margin: 14px 0 0;
    border: 1px solid rgba(14,165,233,0.15);
    border-radius: 18px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(240,249,255,0.9), rgba(255,255,255,0.98));
}

.adapt-distraction-header {
    margin-bottom: 12px;
}

.adapt-distraction-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0284c7;
}

.adapt-distraction-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.adapt-distraction-icon { font-size: 1.8rem; flex-shrink: 0; }

.adapt-distraction-body { flex: 1; }

.adapt-distraction-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.adapt-distraction-detail {
    font-size: 0.83rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 6px;
}

.adapt-distraction-dur {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0ea5e9;
    background: rgba(14,165,233,0.08);
    padding: 2px 10px;
    border-radius: 999px;
}

.adapt-distraction-refresh {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 14px;
    color: #0369a1;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 13px 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    width: 100%;
    min-height: 48px;
    box-shadow: 0 2px 10px rgba(14,165,233,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.adapt-distraction-refresh:hover { background: linear-gradient(135deg, #e0f2fe, #bae6fd); border-color: #7dd3fc; box-shadow: 0 4px 16px rgba(14,165,233,0.2); transform: translateY(-1px); }
.adapt-distraction-refresh:active { transform: translateY(0); box-shadow: 0 1px 6px rgba(14,165,233,0.1); }

.adapt-progress-card {
    margin: 14px 0 0;
    border: 1px solid rgba(34,197,94,0.18);
    border-radius: 18px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(240,253,244,0.9), rgba(255,255,255,0.98));
}

.adapt-progress-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.adapt-progress-icon { font-size: 1.2rem; }

.adapt-progress-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.adapt-progress-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.adapt-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(34,197,94,0.15);
    border-radius: 12px;
    padding: 10px 14px;
    min-width: 70px;
}

.adapt-stat-good { border-color: rgba(34,197,94,0.3); background: rgba(240,253,244,0.9); }

.adapt-stat-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: #16a34a;
    line-height: 1;
    margin-bottom: 4px;
}

.adapt-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    line-height: 1.3;
}

.adapt-progress-note {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
    font-style: italic;
}

.adapt-replacement-engine {
    margin: 0 0 14px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(15, 118, 110, 0.24);
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.95), rgba(255, 255, 255, 0.99));
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.adapt-replacement-engine:focus {
    outline: 3px solid rgba(20, 184, 166, 0.28);
    outline-offset: 2px;
}

.adapt-replacement-engine--high {
    border-color: rgba(239, 68, 68, 0.35);
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.96), rgba(255, 255, 255, 0.99));
}

.adapt-ra-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.adapt-ra-kicker {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f766e;
}

.adapt-ra-state {
    font-size: 0.74rem;
    font-weight: 700;
    color: #334155;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    padding: 4px 10px;
}

.adapt-ra-primary {
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #0ea5a4, #0f766e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.24);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.adapt-ra-primary:hover { transform: translateY(-1px); }

.adapt-ra-primary-label {
    font-size: 0.93rem;
    text-align: left;
}

.adapt-ra-primary-time {
    font-size: 0.74rem;
    font-weight: 700;
    opacity: 0.92;
}

.adapt-ra-alt-row {
    margin-top: 8px;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
}

.adapt-ra-alt {
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #1f2937;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    padding: 10px 12px;
    text-align: left;
}

.adapt-ra-guided-inner {
    margin-top: 10px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(14, 165, 233, 0.24);
    background: rgba(240, 249, 255, 0.75);
}

.adapt-ra-guided-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0369a1;
}

.adapt-ra-guided-title {
    margin: 4px 0 6px;
    font-size: 0.98rem;
    color: #0f172a;
}

.adapt-ra-guided-copy {
    margin: 0 0 8px;
    font-size: 0.84rem;
    color: #334155;
}

.adapt-ra-timer {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0369a1;
    margin-bottom: 8px;
}

.adapt-ra-done {
    min-height: 40px;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    background: #0f766e;
    color: #fff;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.adapt-ra-done:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.adapt-ra-feedback {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(15, 23, 42, 0.15);
}

.adapt-ra-feedback p {
    margin: 0 0 8px;
    font-size: 0.82rem;
    color: #334155;
}

.adapt-ra-feedback-actions {
    display: flex;
    gap: 8px;
}

.adapt-ra-fb-btn {
    min-height: 36px;
    border-radius: 9px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #fff;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 8px 12px;
    cursor: pointer;
    font-family: inherit;
}

.adapt-relapse-content {
    border-top-color: #3b82f6;
}

.adapt-relapse-header { text-align: center; margin-bottom: 18px; }

.adapt-relapse-intro {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
    margin: 10px 0 0;
}

.adapt-relapse-step { animation: adaptFadeIn 0.35s ease; }
.adapt-relapse-step.hidden { display: none; }

.adapt-relapse-q {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 14px;
    text-align: center;
}

.adapt-relapse-success {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
}

.adapt-relapse-success-sub {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
    line-height: 1.55;
    margin: 0 0 18px;
}

.adapt-insight-toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5000;
    width: calc(100% - 32px);
    max-width: 440px;
    background: #0f172a;
    color: #fff;
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    transition: top 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.adapt-insight-toast.adapt-insight-visible { top: 16px; }

.adapt-insight-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.adapt-insight-icon { font-size: 1.5rem; flex-shrink: 0; }

.adapt-insight-body { flex: 1; }

.adapt-insight-body strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: #0F766E;
    margin-bottom: 4px;
    letter-spacing: 0.03em;
}

.adapt-insight-body p {
    font-size: 0.83rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.45;
}

.adapt-insight-close {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.75rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adapt-insight-close:hover { background: rgba(255,255,255,0.15); }

.adapt-toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: #0f172a;
    color: #fff;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    transition: bottom 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.adapt-toast.adapt-toast-visible { bottom: 90px; }

@media (min-width: 768px) { .adapt-toast.adapt-toast-visible { bottom: 30px; } }

.adapt-early-warning-card {
    margin: 12px 0 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(20, 184, 166, 0.22);
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.92), rgba(255, 255, 255, 0.98));
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.adapt-early-warning-card--medium {
    border-color: rgba(245, 158, 11, 0.35);
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(255, 255, 255, 0.98));
}

.adapt-early-warning-card--high {
    border-color: rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.96), rgba(255, 255, 255, 0.99));
}

.adapt-early-warning-card--learning {
    border-style: dashed;
}

.adapt-ew-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.adapt-ew-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f766e;
}

.adapt-ew-badge {
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(20, 184, 166, 0.12);
    color: #0F766E;
}

.adapt-ew-badge--medium {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

.adapt-ew-badge--high {
    background: rgba(239, 68, 68, 0.16);
    color: #b91c1c;
}

.adapt-ew-message {
    margin: 0 0 8px;
    font-size: 0.93rem;
    line-height: 1.55;
    color: #1f2937;
    font-weight: 600;
}

.adapt-ew-signals {
    margin: 0 0 8px;
    color: #4b5563;
    font-size: 0.8rem;
    line-height: 1.45;
}

.adapt-ew-meta {
    margin: 0;
    font-size: 0.74rem;
    color: #6b7280;
}

.adapt-ew-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.adapt-ew-btn {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.adapt-ew-btn--primary {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: #fff;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.22);
}

.adapt-ew-btn--secondary {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.12);
    color: #334155;
}

.adapt-ew-btn:hover {
    transform: translateY(-1px);
}
