/* AdaptEat HSL Green-Centric Style Declarations */

/* ===== MOBILE ZOOM PREVENTION =====
   Prevents iOS/Android from zooming when tapping input fields.
   iOS Safari auto-zooms if input font-size < 16px — this overrides that. */
@media screen and (max-width: 768px) {
    input,
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    input[type="date"],
    input[type="time"],
    input[type="datetime-local"],
    textarea,
    select {
        font-size: 16px !important;
    }
}


:root {
    --primary: #00694c;
    --primary-container: #008560;
    --secondary-container: #fc7127;
    --surface-container-low: #edf4ff;
    --surface-container-high: #d9eaff;
    --surface-container-lowest: #ffffff;
    --outline-variant: #bccac1;
    --error: #ba1a1a;
    --tertiary: #735c00;
    --lab-ok: #1D9E75;
    --lab-ok-bg: #E1F5EE;
    --lab-ok-fg: #085041;
    --lab-warn: #EF9F27;
    --lab-warn-bg: #FAEEDA;
    --lab-warn-fg: #633806;
    --lab-bad: #E24B4A;
    --lab-bad-bg: #FCEBEB;
    --lab-bad-fg: #791F1F;
}

/* Smooth Navigation Transitions */
.page-section {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-section.hidden {
    display: none;
    opacity: 0;
    transform: translateY(8px);
}

/* Glassmorphism Modals */
.glass-modal {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 108, 78, 0.08);
}

/* High-End Minimalist Custom Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #bccac1;
    border-radius: 20px;
    transition: background-color 0.2s;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary);
}

/* Active navigation state matching the original first dashboard */
.nav-link {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link.active-nav {
    background-color: var(--primary-container) !important;
    color: #ffffff !important;
    font-weight: 600;
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 105, 76, 0.15);
}

/* Critical Biomarkers Glow Animations */
.glow-critical {
    box-shadow: 0 0 15px rgba(186, 26, 26, 0.1);
    animation: criticalAlert 2.5s infinite alternate;
}

@keyframes criticalAlert {
    0% {
        border-color: rgba(186, 26, 26, 0.3);
    }
    100% {
        border-color: rgba(186, 26, 26, 0.8);
        box-shadow: 0 0 20px rgba(186, 26, 26, 0.2);
    }
}

/* Warning (Near-Critical) Glow Animations */
.glow-warning {
    box-shadow: 0 0 12px rgba(180, 130, 0, 0.1);
    animation: warningAlert 3s infinite alternate;
}

@keyframes warningAlert {
    0% {
        border-color: rgba(180, 130, 0, 0.3);
    }
    100% {
        border-color: rgba(180, 130, 0, 0.7);
        box-shadow: 0 0 16px rgba(180, 130, 0, 0.15);
    }
}

/* Good (Normal) Subtle Glow */
.glow-good {
    box-shadow: 0 0 10px rgba(0, 105, 76, 0.06);
}

/* Entry Animation for Chat Bubbles */
.chat-bubble-appear {
    animation: slideUpAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ========================================
   AUTH PAGE — Premium Modern Design
   ======================================== */

/* Animated Gradient Background */
.auth-bg-gradient {
    background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 25%, #f3e5f5 50%, #e8f5e9 75%, #e3f2fd 100%);
    background-size: 400% 400%;
    animation: authBgShift 12s ease infinite;
}

@keyframes authBgShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Particles/Orbs */
.auth-bg-gradient::before,
.auth-bg-gradient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}
.auth-bg-gradient::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,133,96,0.25), transparent);
    top: -100px;
    right: -100px;
    animation: orbFloat1 8s ease-in-out infinite alternate;
}
.auth-bg-gradient::after {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(252,113,39,0.2), transparent);
    bottom: -80px;
    left: -80px;
    animation: orbFloat2 10s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, 60px) scale(1.15); }
}
@keyframes orbFloat2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -40px) scale(1.1); }
}

/* Glassmorphism Auth Card */
.auth-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 8px 32px rgba(0, 108, 78, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    animation: authCardAppear 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authCardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Auth Tab System with Slider */
.auth-tabs {
    position: relative;
    display: flex;
    background: rgba(0, 105, 76, 0.06);
    border-radius: 12px;
    padding: 4px;
}

.auth-tab-btn {
    flex: 1;
    padding: 10px 0;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    color: #6d7a73;
    transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    z-index: 1;
    text-align: center;
    border: none;
    background: transparent;
}

.auth-tab-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #00694c, #008560);
    box-shadow: 0 2px 10px rgba(0, 105, 76, 0.3);
}

/* Floating Label Input Group */
.auth-input-group {
    position: relative;
    margin-bottom: 4px;
}

.auth-input-group input,
.auth-input-group select {
    width: 100%;
    padding: 16px 16px 8px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #091d2e;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(188, 202, 193, 0.45);
    border-radius: 20px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

.auth-input-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' viewBox='0 -960 960 960' width='24'%3E%3Cpath d='M480-360 280-560h400L480-360Z' fill='%236d7a73'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.auth-input-group input:focus,
.auth-input-group select:focus {
    border-color: #00694c;
    box-shadow: 0 0 0 3px rgba(0, 105, 76, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.auth-input-group input.input-error,
.auth-input-group select.input-error {
    border-color: #ba1a1a;
    box-shadow: 0 0 0 3px rgba(186, 26, 26, 0.08);
}

.auth-input-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #6d7a73;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: 0 4px;
}

.auth-input-group input:focus ~ label,
.auth-input-group input:not(:placeholder-shown) ~ label,
.auth-input-group select:focus ~ label,
.auth-input-group select:valid ~ label,
.auth-input-group select ~ label {
    top: 6px;
    transform: translateY(0);
    font-size: 11px;
    font-weight: 600;
    color: #00694c;
    letter-spacing: 0.03em;
}

.auth-input-group input.input-error:focus ~ label,
.auth-input-group input.input-error:not(:placeholder-shown) ~ label,
.auth-input-group select.input-error:focus ~ label,
.auth-input-group select.input-error ~ label {
    color: #ba1a1a;
}

/* Password Toggle Button */
.auth-pass-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6d7a73;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.auth-pass-toggle:hover {
    color: #00694c;
}

/* Password Strength Bar */
.password-strength-container {
    padding: 0 4px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
}
.password-strength-container.visible {
    max-height: 40px;
    opacity: 1;
}

.password-strength-track {
    width: 100%;
    height: 4px;
    background: rgba(188, 202, 193, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 6px;
}

.password-strength-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease, background 0.4s ease;
    width: 0%;
}

.password-strength-fill.strength-weak {
    width: 33%;
    background: linear-gradient(90deg, #ba1a1a, #d32f2f);
}
.password-strength-fill.strength-medium {
    width: 66%;
    background: linear-gradient(90deg, #f9a825, #fbc02d);
}
.password-strength-fill.strength-strong {
    width: 100%;
    background: linear-gradient(90deg, #00694c, #2e7d32);
}

.password-strength-text {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    transition: color 0.3s;
}
.password-strength-text.strength-weak   { color: #ba1a1a; }
.password-strength-text.strength-medium { color: #f9a825; }
.password-strength-text.strength-strong { color: #00694c; }

/* Auth Error Message */
.auth-error-box {
    background: rgba(186, 26, 26, 0.06);
    border: 1px solid rgba(186, 26, 26, 0.2);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: authErrorAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-error-box .material-symbols-outlined {
    color: #ba1a1a;
    font-size: 18px;
}

.auth-error-box span:last-child {
    font-size: 13px;
    color: #93000a;
    font-weight: 500;
}

@keyframes authErrorAppear {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shake animation for errors */
@keyframes authShake {
    0%, 100% { transform: translateX(0); }
    15%  { transform: translateX(-6px); }
    30%  { transform: translateX(5px); }
    45%  { transform: translateX(-4px); }
    60%  { transform: translateX(3px); }
    75%  { transform: translateX(-2px); }
}
.auth-shake {
    animation: authShake 0.5s ease;
}

/* Submit Button — Gradient + Glow */
.auth-submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: #ffffff;
    background: linear-gradient(135deg, #00694c, #008560);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 105, 76, 0.25);
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(0, 105, 76, 0.35);
}

.auth-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 105, 76, 0.2);
}

.auth-submit-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.auth-submit-btn:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner inside button */
.auth-btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authSpin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes authSpin {
    to { transform: rotate(360deg); }
}

/* Auth Success Checkmark */
.auth-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #00694c, #008560);
    border-radius: 50%;
    color: #fff;
    animation: authSuccessPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authSuccessPop {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Auth divider line */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(188, 202, 193, 0.4);
}
.auth-divider span {
    font-size: 12px;
    color: #6d7a73;
    font-weight: 500;
}

/* Lab value slider (Manuel Gir) */
.lab-slider-card {
    background: var(--surface-container-lowest);
    border: 1px solid rgba(188, 202, 193, 0.25);
    border-radius: 24px;
    padding: 16px;
    transition: opacity 180ms ease;
}

.lab-slider-card.is-disabled .lab-slider-wrap,
.lab-slider-card.is-disabled [data-role="value"],
.lab-slider-card.is-disabled [data-role="min-label"],
.lab-slider-card.is-disabled [data-role="max-label"] {
    opacity: 0.45;
}

.lab-slider-card.is-disabled .lab-badge {
    opacity: 0.65;
}

.lab-slider-input:disabled {
    cursor: not-allowed;
}

.lab-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    transition: background-color 180ms ease, color 180ms ease;
    white-space: nowrap;
}

.lab-slider-value {
    transition: color 180ms ease;
}

.lab-slider-wrap {
    position: relative;
    height: 44px;
    display: flex;
    align-items: center;
}

.lab-slider-track {
    position: absolute;
    left: 0;
    right: 0;
    height: 10px;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.lab-slider-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 44px;
    margin: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.lab-slider-input:focus {
    outline: none;
}

.lab-slider-input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 8px;
}

.lab-slider-input::-webkit-slider-runnable-track {
    height: 10px;
    background: transparent;
    border-radius: 999px;
}

.lab-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin-top: -5px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--lab-thumb, var(--lab-ok));
    box-shadow: 0 2px 6px rgba(9, 29, 46, 0.18);
    transition: border-color 180ms ease, box-shadow 180ms ease;
    cursor: grab;
}

.lab-slider-input:active::-webkit-slider-thumb {
    cursor: grabbing;
    box-shadow: 0 3px 10px rgba(9, 29, 46, 0.22);
}

.lab-slider-input::-moz-range-track {
    height: 10px;
    background: transparent;
    border: none;
    border-radius: 999px;
}

.lab-slider-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--lab-thumb, var(--lab-ok));
    box-shadow: 0 2px 6px rgba(9, 29, 46, 0.18);
    transition: border-color 180ms ease, box-shadow 180ms ease;
    cursor: grab;
}

.lab-slider-input:active::-moz-range-thumb {
    cursor: grabbing;
}

/* Onboarding preference chips — lab-slider-card visual language */
.ob-card-prefs {
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 24px 28px;
}
.ob-step-prefs {
    display: none;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}
.ob-card-prefs .ob-step-prefs {
    display: flex;
}
.ob-prefs-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
}
.ob-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.ob-pref-card {
    background: var(--surface-container-lowest);
    border: 1px solid rgba(188, 202, 193, 0.22);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(9, 29, 46, 0.035);
}
.ob-pref-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.ob-pref-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #091d2e;
}
.ob-pref-count {
    background: rgba(188, 202, 193, 0.28);
    color: #3d4943;
}
.ob-pref-count.is-ok {
    background: var(--lab-ok-bg);
    color: var(--lab-ok-fg);
}
.ob-pref-count.is-muted {
    background: rgba(109, 122, 115, 0.14);
    color: #3d4943;
}

.ob-chip-label {
    font-size: 14px;
    font-weight: 700;
    color: #091d2e;
    margin-bottom: 8px;
}
.ob-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ob-chip-custom-row:empty {
    display: none;
}
.ob-chip-custom-row:not(:empty) {
    margin-top: 8px;
}
.ob-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 13px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid rgba(188, 202, 193, 0.55);
    background: #f4f7f5;
    color: #3d4943;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.ob-chip:hover {
    border-color: var(--lab-ok);
    color: var(--lab-ok-fg);
}
.ob-chip.selected {
    background: var(--lab-ok-bg);
    border-color: var(--lab-ok);
    color: var(--lab-ok-fg);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(8, 80, 65, 0.08);
}
.ob-chip-none.selected {
    background: rgba(109, 122, 115, 0.14);
    border-color: #6d7a73;
    color: #3d4943;
    box-shadow: none;
}
.ob-chip-x {
    font-size: 15px;
    line-height: 1;
    margin-left: 2px;
}
input.ob-chip-input,
.ob-chip-input[type="text"],
.ob-chip-input {
    width: 100% !important;
    margin-top: 12px !important;
    padding: 12px 18px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    color: #091d2e !important;
    background-color: #f4f7f5 !important;
    border: 1px solid rgba(188, 202, 193, 0.45) !important;
    border-radius: 9999px !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease !important;
}
input.ob-chip-input::placeholder,
.ob-chip-input::placeholder {
    color: #6d7a73 !important;
    opacity: 0.85 !important;
}
input.ob-chip-input:hover,
.ob-chip-input:hover {
    border-color: rgba(0, 105, 76, 0.4) !important;
    background-color: #f7faf8 !important;
}
input.ob-chip-input:focus,
.ob-chip-input:focus {
    border-color: var(--primary) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(0, 105, 76, 0.12) !important;
}
.ob-chip-hint {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #ba1a1a;
}
.ob-chip-hint.hidden {
    display: none;
}
.ob-fridge-mode {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ob-fridge-mode-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ob-fridge-mode-sub {
    margin: -4px 0 2px;
    font-size: 13px;
    line-height: 1.45;
    color: #3d4943;
}
.ob-fridge-mode-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    font-family: inherit;
    color: #091d2e;
    background: #f7faf8;
    border: 1px solid rgba(188, 202, 193, 0.4);
    border-radius: 20px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.ob-fridge-mode-card:hover {
    border-color: var(--primary);
}
.ob-fridge-mode-card.is-selected {
    border-color: var(--lab-ok);
    background: var(--lab-ok-bg);
    box-shadow: 0 0 0 1px var(--lab-ok);
}
.ob-fridge-mode-icon {
    font-size: 22px;
    color: var(--primary);
    margin-top: 1px;
}
.ob-fridge-mode-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
    padding-right: 8px;
}
.ob-fridge-mode-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.ob-fridge-mode-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}
.ob-fridge-mode-desc {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    color: #3d4943;
}
.ob-fridge-mode-badge {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lab-ok-fg);
    background: rgba(29, 158, 117, 0.18);
}
.ob-fridge-mode-radio {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 2px solid #bccac1;
    border-radius: 50%;
    background: #ffffff;
}
.ob-fridge-mode-card.is-selected .ob-fridge-mode-radio {
    border-color: var(--lab-ok);
    box-shadow: inset 0 0 0 4px var(--lab-ok);
}
.ob-fridge-mode-note {
    margin: 2px 0 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: #6d7a73;
}
.profile-pref-chips {
    margin-top: 4px;
}
.profile-pref-chips .ob-chip-label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
}
.profile-pref-chips .ob-chip-input {
    background: #f4f7f5;
}

/* Profile / modal form fields — softer, fully rounded */
#profile-edit-form input[type="text"],
#profile-edit-form input[type="number"],
#profile-edit-form select,
#routine-add-task-form input,
#routine-add-task-form select,
#add-family-form input,
#add-family-form select,
#grocery-add-prompt-form input {
    border-radius: 20px !important;
}

@media (max-width: 480px) {
    .ob-card-prefs {
        padding: 18px 16px;
        max-height: calc(100dvh - 1rem);
        border-radius: 22px;
    }
    .ob-chip {
        padding: 5px 10px;
        font-size: 12px;
    }
    .ob-chip-input {
        padding: 10px 16px !important;
        font-size: 16px !important;
        border-radius: 9999px !important;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .auth-card {
        margin: 12px;
        padding: 24px 20px !important;
    }
    .auth-card.ob-card-prefs {
        margin: 0;
        padding: 16px !important;
        max-height: calc(100dvh - 1rem);
        border-radius: 22px;
    }
    .auth-bg-gradient::before,
    .auth-bg-gradient::after {
        width: 200px;
        height: 200px;
    }
}
