/* Extracted from diet.blade.php — page-specific styles */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        html, body, .diet-app, .diet-app button, .diet-app input, .diet-app select, .diet-app textarea {
            font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
        }
        .main-content { word-break: break-word; overflow-wrap: break-word; }
        [style*="overflow-x: auto"] { -webkit-overflow-scrolling: touch; }
        /* 食物搜索 - 移动端优化 */
        .food-search-wrapper { display: flex; gap: 10px; }
        @media (max-width: 640px) {
            .food-search-wrapper { flex-direction: column; }
            .food-search-btn { width: 100% !important; min-width: 100% !important; }
        }
        #food-search-suggestions {
            position: absolute; left: 0; right: 0; top: 100%;
            background: white; border: 1px solid #ddd; border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15); max-height: 280px;
            overflow-y: auto; z-index: 1000; margin-top: 4px;
            -webkit-overflow-scrolling: touch;
        }
        #food-search-suggestions .food-suggestion-item,
        #food-search-suggestions > div {
            padding: 12px 16px; cursor: pointer; border-bottom: 1px solid #eee;
            min-height: 44px; display: flex; align-items: center; flex-wrap: wrap;
        }
        
        body.diet-page,
        body:has(#diet-app) {
            background-color: var(--app-bg, #f4f6f9);
            color: var(--app-text, #0f172a);
            line-height: 1.6;
        }
        
        .diet-container {
            background-color: white;
            border-radius: 16px;
            box-shadow: 0 2px 12px rgba(0, 82, 155, 0.06);
            overflow: hidden;
            margin-bottom: 30px;
        }
        
        .diet-header {
            background: linear-gradient(135deg, #00529B 0%, #003d75 100%);
            color: white;
            padding: 30px;
            text-align: center;
            border-bottom: 5px solid #ffcc00;
        }
        
        .diet-header h1 {
            font-size: 2.2rem;
            margin-bottom: 10px;
        }
        
        .subtitle {
            font-size: 1.1rem;
            opacity: 0.9;
            max-width: 800px;
            margin: 0 auto;
        }
        
        .nav-tabs {
            display: flex;
            background-color: #f0f7ff;
            border-bottom: 1px solid #d1e3ff;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            scroll-snap-type: x mandatory;
        }
        .nav-tabs::-webkit-scrollbar { display: none; }
        
        .tab {
            padding: 14px 20px;
            cursor: pointer;
            font-weight: 600;
            border-right: 1px solid #d1e3ff;
            white-space: nowrap;
            transition: all 0.2s;
            color: #555;
            flex-shrink: 0;
            scroll-snap-align: start;
            min-height: 48px;
            display: flex;
            align-items: center;
        }
        
        .tab:hover {
            background-color: #e1eeff;
        }
        
        .tab.active {
            background-color: white;
            color: #00529B;
            border-bottom: 3px solid #00529B;
        }
        
        .tab-content {
            display: none;
            padding: 24px;
        }
        
        .tab-content.active {
            display: block;
        }
        
        .section-title {
            color: #00529B;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #e1eeff;
            font-size: 1.5rem;
        }
        
        .input-group {
            margin-bottom: 25px;
        }
        
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #444;
        }
        
        input, select, textarea {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ccc;
            border-radius: 8px;
            font-size: 16px;
            transition: border 0.2s;
            box-sizing: border-box;
        }
        input:not([type="checkbox"]):not([type="radio"]), select {
            min-height: 44px;
        }
        
        input:focus, select:focus {
            border-color: #00529B;
            outline: none;
            box-shadow: 0 0 0 3px rgba(26, 109, 204, 0.1);
        }
        
        .form-row {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
        }
        
        .form-col {
            flex: 1;
            min-width: 200px;
        }
        
        .checkbox-group {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 10px;
        }
        
        .checkbox-label {
            display: flex;
            align-items: center;
            cursor: pointer;
        }
        
        .checkbox-label input {
            width: auto;
            margin-right: 8px;
        }
        
        .btn {
            background-color: var(--primary-color, #00529B);
            color: white;
            border: none;
            padding: 12px 22px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            transition: background-color 0.2s, opacity 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 48px;
            text-decoration: none;
            font-family: inherit;
        }
        
        .btn:hover {
            background-color: var(--primary-dark, #003d75);
        }

        .btn:active { opacity: 0.92; }
        
        .btn-secondary {
            background-color: #f1f5f9;
            color: #334155;
            border: 1px solid #e2e8f0;
        }
        
        .btn-secondary:hover {
            background-color: #e2e8f0;
            color: #0f172a;
        }
        
        .btn-container {
            display: flex;
            gap: 15px;
            margin-top: 30px;
        }
        
        .result-card {
            background-color: #f8fbff;
            border-left: 5px solid #00529B;
            padding: 25px;
            border-radius: 8px;
            margin-top: 20px;
            display: none;
        }
        
        .result-card h3 {
            color: #00529B;
            margin-bottom: 15px;
        }
        
        .result-items-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-top: 20px;
        }
        
        .result-item {
            padding: 15px;
            border: 1px solid #e1eeff;
            border-radius: 8px;
            background-color: #f8f9fa;
            transition: all 0.3s ease;
        }
        
        .result-item:hover {
            background-color: #f0f7ff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        
        /* 响应式设计：小屏幕时每排显示1个，中等屏幕显示2个 */
        @media (max-width: 768px) {
            .result-items-container {
                grid-template-columns: 1fr;
            }
        }
        
        @media (min-width: 769px) and (max-width: 1024px) {
            .result-items-container {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        .result-label {
            font-weight: 600;
            color: #555;
            margin-bottom: 5px;
        }
        
        .result-value {
            font-size: 1.2rem;
            color: #003d75;
        }
        
        .recipe-section {
            /* display: none; 移除默认隐藏，改为在需要时显示 */
            margin-top: 30px;
        }
        
        .recipe-card {
            background-color: white;
            border: 1px solid #e1eeff;
            border-radius: 10px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }
        
        .recipe-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .recipe-title {
            font-size: 1.3rem;
            color: #00529B;
        }
        
        .recipe-meta {
            display: flex;
            gap: 15px;
            color: #666;
            font-size: 0.9rem;
        }
        
        .meal-section {
            margin-bottom: 25px;
        }
        
        .meal-title {
            color: #003d75;
            margin-bottom: 10px;
            padding-bottom: 5px;
            border-bottom: 1px solid #e1eeff;
        }
        
        .meal-items {
            padding-left: 20px;
        }
        
        .meal-item {
            margin-bottom: 8px;
        }
        
        .nutrient-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 12px;
            margin-top: 20px;
        }
        
        .nutrient-item {
            background-color: #f0f7ff;
            padding: 15px;
            border-radius: 8px;
            text-align: center;
        }
        
        .nutrient-value {
            font-size: 1.3rem;
            font-weight: 700;
            color: #00529B;
            margin: 5px 0;
        }
        
        .nutrient-label {
            font-size: 0.9rem;
            color: #666;
        }

        /* 个性化食谱营养成分：多列紧凑展示 */
        .nutrients-section {
            margin-top: 14px;
            padding-top: 12px;
            border-top: 1px solid #e1eeff;
        }
        .nutrients-section > h4 {
            font-size: 1.05rem;
            margin-bottom: 10px;
            color: #00529B;
        }
        .nutrients-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px 12px;
        }
        .nutrients-grid .nutrient-item {
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            justify-content: flex-start;
            gap: 3px 6px;
            padding: 8px 12px;
            background-color: #f0f7ff;
            border-radius: 6px;
            text-align: left;
        }
        .nutrients-grid .nutrient-label {
            font-size: 0.95rem;
            color: #666;
            font-weight: 500;
            white-space: nowrap;
        }
        .nutrients-grid .nutrient-value {
            font-size: 1.05rem;
            font-weight: 700;
            color: #00529B;
            margin: 0;
        }
        @media (max-width: 900px) {
            .nutrients-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }
        @media (max-width: 520px) {
            .nutrients-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }
        
        .alert {
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .alert-info {
            background-color: #e1f0ff;
            border-left: 5px solid #00529B;
        }
        
        .alert-warning {
            background-color: #fff8e1;
            border-left: 5px solid #ffcc00;
        }
        
        .alert-danger {
            background-color: #ffeaea;
            border-left: 5px solid #dc3545;
        }
        
        .alert i {
            font-size: 1.5rem;
        }
        
        .icon {
            margin-right: 8px;
        }
        
        .food-recommendation {
            background-color: #f9f9f9;
            border-radius: 8px;
            padding: 20px;
            margin: 20px 0;
        }
        
        .food-category {
            margin-bottom: 20px;
        }
        
        .food-category h4 {
            color: #00529B;
            margin-bottom: 10px;
        }
        
        .food-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .food-item {
            background-color: white;
            border: 1px solid #e1eeff;
            border-radius: 20px;
            padding: 8px 15px;
            font-size: 0.9rem;
        }
        
        .food-item.recommended {
            background-color: #e1f0ff;
            border-color: #00529B;
        }
        
        .food-item.limited {
            background-color: #fff8e1;
            border-color: #ffcc00;
        }
        
        .food-item.avoid {
            background-color: #ffeaea;
            border-color: #dc3545;
        }
        
        .adjustment-info {
            background-color: #f0f7ff;
            border-radius: 8px;
            padding: 20px;
            margin-top: 20px;
        }
        
        
        /* 移动端优化样式 */
        @media (max-width: 768px) {
            /* 容器和间距优化 */
            .diet-container {
                margin: 0;
                border-radius: 12px;
            }
            
            .diet-header {
                padding: 20px 15px;
            }
            
            .diet-header h1 {
                font-size: 1.5rem;
                margin-bottom: 8px;
            }
            
            .subtitle {
                font-size: 0.95rem;
                line-height: 1.5;
            }
            
            /* 导航标签优化 */
            .nav-tabs {
                flex-direction: row;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                -ms-overflow-style: none;
            }
            
            .nav-tabs::-webkit-scrollbar {
                display: none;
            }
            
            .tab {
                padding: 12px 16px;
                font-size: 0.875rem;
                border-right: 1px solid #d1e3ff;
                border-bottom: none;
                min-width: fit-content;
                white-space: nowrap;
                touch-action: manipulation;
            }
            
            .tab.active {
                border-bottom: 3px solid #00529B;
            }
            
            /* 内容区域优化 */
            .tab-content {
                padding: 0;
            }
            
            .main-content {
                padding: 0 !important;
            }
            
            .section-title {
                font-size: 1.3rem;
                margin-bottom: 15px;
            }
            
            /* 表单优化 */
            .form-row {
                flex-direction: column;
                gap: 15px;
            }
            
            .form-col {
                min-width: 100%;
                width: 100%;
            }
            
            .input-group {
                margin-bottom: 20px;
            }
            
            label {
                font-size: 0.95rem;
                margin-bottom: 6px;
            }
            
            input, select {
                padding: 14px 12px;
                font-size: 16px; /* 防止iOS自动缩放 */
                border-radius: 6px;
            }
            
            /* 输入组优化 */
            .input-group .input-group {
                flex-direction: column;
                gap: 8px;
            }
            
            .input-group-text {
                width: 100% !important;
                min-width: 100% !important;
                max-width: 100% !important;
                text-align: left;
                padding: 8px 12px;
                border-radius: 6px;
                margin-left: 0 !important;
                margin-top: 5px;
            }
            
            /* 复选框和单选框优化 */
            .checkbox-group {
                flex-direction: column;
                gap: 12px;
            }
            
            .checkbox-label {
                font-size: 0.95rem;
            }
            
        .checkbox-label input[type="checkbox"],
        .checkbox-label input[type="radio"] {
            width: 22px;
            height: 22px;
            min-width: 22px;
            min-height: 22px;
            margin-right: 10px;
        }
            
            /* 按钮优化 */
            .btn {
                padding: 14px 20px;
                font-size: 1rem;
                width: 100%;
                border-radius: 8px;
            }
            
            .btn-container {
                flex-direction: column;
                gap: 12px;
            }
            
            .btn-container .btn {
                width: 100%;
            }
            
            /* 结果卡片优化 */
            .result-section {
                padding: 15px;
                margin-bottom: 15px;
                border-radius: 8px;
            }
            
            .parameter-box {
                padding: 12px;
                margin-bottom: 12px;
                border-radius: 6px;
            }
            
            .parameter-box h4 {
                font-size: 1rem;
                margin-bottom: 8px;
            }
            
            /* 食谱卡片优化 */
            .recipe-card {
                padding: 15px;
                margin-bottom: 15px;
                border-radius: 8px;
            }
            
            .recipe-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
                margin-bottom: 15px;
            }
            
            .recipe-title {
                font-size: 1.1rem;
                line-height: 1.4;
            }
            
            .recipe-content {
                font-size: 0.95rem;
            }
            
            .meal-section {
                margin-bottom: 15px;
            }
            
            .meal-section h4 {
                font-size: 1rem;
                margin-bottom: 8px;
            }
            
            .meal-section p {
                font-size: 0.9rem;
                line-height: 1.6;
            }
            
            /* 营养成分：移动端略增内边距 */
            .nutrients-grid .nutrient-item {
                padding: 7px 8px;
            }
            
            /* 食物列表优化 */
            .food-list {
                flex-direction: column;
                gap: 10px;
            }
            
            .food-item {
                padding: 10px 12px;
                font-size: 0.9rem;
            }
            
            /* 警告框和提示框优化 */
            .alert {
                padding: 15px;
                margin-bottom: 15px;
                border-radius: 8px;
                font-size: 0.9rem;
                line-height: 1.6;
            }
            
            /* 表格优化 */
            table {
                font-size: 0.85rem;
                display: block;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            
            table thead,
            table tbody,
            table tr {
                display: block;
            }
            
            table th,
            table td {
                padding: 8px 6px;
                min-width: 80px;
            }
            
            
            /* 评分徽章优化 */
            .badge {
                font-size: 0.85rem;
                padding: 6px 12px;
                white-space: nowrap;
            }
            
            /* 烹饪技巧卡片优化 */
            .principles-list .recipe-card {
                padding: 15px;
                margin-bottom: 15px;
            }
            
            .principles-list .recipe-title {
                font-size: 1.1rem;
                margin-bottom: 12px;
            }
            
            .principles-list ul {
                padding-left: 20px;
                margin-top: 10px;
            }
            
            .principles-list li {
                margin-bottom: 8px;
                font-size: 0.9rem;
                line-height: 1.6;
            }
            
            /* 一周食谱优化 */
            .recipe-card[data-week-day] {
                padding: 15px;
                margin-bottom: 20px;
            }
            
            /* 食物交换份表格优化 */
            #exchange-content table {
                font-size: 0.8rem;
            }
            
            #exchange-content th,
            #exchange-content td {
                padding: 6px 4px;
            }

            .exchange-plan-grid {
                grid-template-columns: repeat(2, 1fr) !important;
            }

            .exchange-meal-grid {
                grid-template-columns: 1fr !important;
            }
        }

        /* 食物交换份配餐 */
        .exchange-plan-card {
            background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
            border: 1px solid #c5ddf5;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 24px;
        }

        .exchange-plan-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 12px;
            margin-top: 16px;
        }

        .exchange-plan-item {
            background: white;
            border-radius: 10px;
            padding: 14px;
            text-align: center;
            border: 1px solid #e1eeff;
            box-shadow: 0 2px 8px rgba(26, 109, 204, 0.06);
        }

        .exchange-plan-item .portion-num {
            font-size: 1.8rem;
            font-weight: 700;
            color: #00529B;
            line-height: 1.2;
        }

        .exchange-plan-item .portion-label {
            font-size: 0.85rem;
            color: #666;
            margin-top: 4px;
        }

        .exchange-tracker-row {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid #eef3f9;
            flex-wrap: wrap;
        }

        .exchange-tracker-row:last-child {
            border-bottom: none;
        }

        .exchange-tracker-label {
            min-width: 100px;
            font-weight: 600;
            color: #333;
        }

        .exchange-tracker-bar-wrap {
            flex: 1;
            min-width: 120px;
        }

        .exchange-tracker-bar {
            height: 8px;
            background: #e9ecef;
            border-radius: 4px;
            overflow: hidden;
        }

        .exchange-tracker-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, #00529B, #4a9eff);
            border-radius: 4px;
            transition: width 0.3s;
        }

        .exchange-tracker-bar-fill.over {
            background: linear-gradient(90deg, #e74c3c, #f39c12);
        }

        .exchange-tracker-count {
            min-width: 70px;
            text-align: right;
            font-size: 0.9rem;
            color: #666;
        }

        .exchange-tracker-count strong {
            color: #00529B;
        }

        .exchange-meal-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-top: 12px;
        }

        .exchange-meal-block {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 12px;
            font-size: 0.9rem;
        }

        .exchange-meal-block h5 {
            color: #00529B;
            margin: 0 0 8px 0;
            font-size: 0.95rem;
        }

        .exchange-selected-list {
            margin-top: 12px;
            max-height: 200px;
            overflow-y: auto;
        }

        .exchange-selected-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            background: #f8f9fa;
            border-radius: 6px;
            margin-bottom: 6px;
            font-size: 0.9rem;
        }

        .exchange-ref-toggle {
            margin: 20px 0 12px;
        }

        .exchange-add-btn {
            padding: 6px 12px;
            font-size: 0.8rem;
            background: #28a745;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
        }

        .exchange-calc-btn {
            padding: 6px 12px;
            font-size: 0.8rem;
            background: #00529B;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
        }

        .exchange-calc-btn:hover {
            background: #1557a8;
        }

        .exchange-add-btn:hover {
            background: #218838;
        }

        @keyframes exchangeFlash {
            0%, 100% { box-shadow: none; }
            40% { box-shadow: 0 0 0 4px rgba(26, 109, 204, 0.45); }
        }

        .exchange-highlight-flash {
            animation: exchangeFlash 1.6s ease-out;
            border-radius: 10px;
        }
        
        /* 超小屏幕优化（小于480px） */
        @media (max-width: 480px) {
            .diet-header h1 {
                font-size: 1.3rem;
            }
            
            .subtitle {
                font-size: 0.9rem;
            }
            
            .tab {
                padding: 10px 12px;
                font-size: 0.85rem;
            }
            
            .tab-content {
                padding: 0;
            }
            
            .section-title {
                font-size: 1.2rem;
            }
            
            input, select {
                padding: 12px 10px;
                font-size: 16px;
            }
            
            .btn {
                padding: 12px 16px;
                font-size: 0.95rem;
            }
            
            .recipe-card {
                padding: 12px;
            }
            
            .recipe-title {
                font-size: 1rem;
            }
        }

        /* AI 食谱生成等待动画 */
        .ai-recipe-loading {
            --arl-accent: #00529B;
            --arl-accent-soft: rgba(26, 109, 204, 0.12);
            --arl-accent-glow: rgba(26, 109, 204, 0.35);
            text-align: center;
            padding: 48px 32px 40px;
            margin: 20px 0;
            border-radius: 20px;
            background: linear-gradient(165deg, #ffffff 0%, #f4f9ff 45%, #eef5fc 100%);
            border: 1px solid rgba(26, 109, 204, 0.12);
            box-shadow: 0 12px 40px rgba(26, 109, 204, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
            position: relative;
            overflow: hidden;
        }
        .ai-recipe-loading::before {
            content: '';
            position: absolute;
            inset: -40% -20% auto;
            height: 70%;
            background: radial-gradient(ellipse at 50% 0%, var(--arl-accent-soft) 0%, transparent 70%);
            pointer-events: none;
        }
        .ai-recipe-loading--weekly {
            --arl-accent: #27ae60;
            --arl-accent-soft: rgba(39, 174, 96, 0.12);
            --arl-accent-glow: rgba(39, 174, 96, 0.35);
            background: linear-gradient(165deg, #ffffff 0%, #f4fbf6 45%, #eef8f1 100%);
            border-color: rgba(39, 174, 96, 0.12);
            box-shadow: 0 12px 40px rgba(39, 174, 96, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }
        .ai-recipe-loading__ring-wrap {
            position: relative;
            width: 168px;
            height: 168px;
            margin: 0 auto 28px;
        }
        .ai-recipe-loading__svg {
            width: 100%;
            height: 100%;
            transform: rotate(-90deg);
            filter: drop-shadow(0 4px 12px var(--arl-accent-glow));
        }
        .ai-recipe-loading__track {
            fill: none;
            stroke: var(--arl-accent-soft);
            stroke-width: 6;
        }
        .ai-recipe-loading__progress {
            fill: none;
            stroke: url(#arl-gradient);
            stroke-width: 6;
            stroke-linecap: round;
            stroke-dasharray: 339.292;
            stroke-dashoffset: 0;
            transition: stroke-dashoffset 0.85s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .ai-recipe-loading__orbit {
            position: absolute;
            inset: 8px;
            border-radius: 50%;
            border: 2px dashed var(--arl-accent-soft);
            animation: arl-orbit-spin 12s linear infinite;
            pointer-events: none;
        }
        .ai-recipe-loading__orbit::after {
            content: '';
            position: absolute;
            top: -4px;
            left: 50%;
            width: 8px;
            height: 8px;
            margin-left: -4px;
            border-radius: 50%;
            background: var(--arl-accent);
            box-shadow: 0 0 10px var(--arl-accent-glow);
        }
        .ai-recipe-loading__center {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
        }
        .ai-recipe-loading__seconds {
            font-size: 3rem;
            font-weight: 800;
            line-height: 1;
            color: var(--arl-accent);
            font-variant-numeric: tabular-nums;
            letter-spacing: -0.02em;
            animation: arl-pulse 2s ease-in-out infinite;
        }
        .ai-recipe-loading__unit {
            font-size: 0.85rem;
            font-weight: 600;
            color: #64748b;
            letter-spacing: 0.15em;
        }
        .ai-recipe-loading__icon {
            position: absolute;
            bottom: -6px;
            right: -6px;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: white;
            border: 2px solid var(--arl-accent-soft);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--arl-accent);
            font-size: 1.1rem;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
            animation: arl-icon-bob 2.5s ease-in-out infinite;
        }
        .ai-recipe-loading__title {
            position: relative;
            font-size: 1.35rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 10px;
        }
        .ai-recipe-loading__subtitle {
            position: relative;
            color: #64748b;
            font-size: 0.95rem;
            margin-bottom: 20px;
            max-width: 360px;
            margin-left: auto;
            margin-right: auto;
        }
        .ai-recipe-loading__step {
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 10px 18px;
            background: white;
            border-radius: 999px;
            border: 1px solid var(--arl-accent-soft);
            color: var(--arl-accent);
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 14px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            min-height: 42px;
        }
        .ai-recipe-loading__step-dots {
            display: flex;
            gap: 4px;
        }
        .ai-recipe-loading__step-dots span {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--arl-accent);
            animation: arl-dot-bounce 1.2s ease-in-out infinite;
        }
        .ai-recipe-loading__step-dots span:nth-child(2) { animation-delay: 0.15s; }
        .ai-recipe-loading__step-dots span:nth-child(3) { animation-delay: 0.3s; }
        .ai-recipe-loading__label {
            position: relative;
            color: #94a3b8;
            font-size: 0.88rem;
            margin-bottom: 8px;
        }
        .ai-recipe-loading__hint {
            position: relative;
            color: #94a3b8;
            font-size: 0.82rem;
        }
        .ai-recipe-loading__chips {
            position: relative;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px;
            margin-top: 20px;
        }
        .ai-recipe-loading__chip {
            padding: 5px 12px;
            font-size: 0.75rem;
            color: #64748b;
            background: rgba(255, 255, 255, 0.8);
            border: 1px solid #e2e8f0;
            border-radius: 999px;
        }
        @keyframes arl-orbit-spin {
            to { transform: rotate(360deg); }
        }
        @keyframes arl-pulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.03); opacity: 0.92; }
        }
        @keyframes arl-icon-bob {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-4px); }
        }
        @keyframes arl-dot-bounce {
            0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
            40% { transform: scale(1); opacity: 1; }
        }
        @media (max-width: 480px) {
            .ai-recipe-loading {
                padding: 36px 20px 32px;
            }
            .ai-recipe-loading__ring-wrap {
                width: 148px;
                height: 148px;
            }
            .ai-recipe-loading__seconds {
                font-size: 2.5rem;
            }
        }
