@import"https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap";.dark-theme{--bg-primary: #1C1C1E;--bg-secondary: #000000;--bg-tertiary: #2C2C2E;--text-primary: #FFFFFF;--text-secondary: #EBEBF5;--text-tertiary: #8E8E93;--text-inverse: #000000;--color-success: #A7D96C;--color-success-dark: #95C55D;--color-danger: #FF453A;--color-warning: #FF9F0A;--color-info: #0A84FF;--border-color: #38383A;--border-color-hover: #0A84FF;--shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);--shadow-md: 0 4px 20px rgba(0, 0, 0, .4);--shadow-lg: 0 10px 40px rgba(0, 0, 0, .5);--gradient-bad-habit: linear-gradient(90deg, #A7D96C 0%, #FF6BF7 100%);--card-bg: #2C2C2E;--card-bg-completed: #1E3A1E;--card-bg-failed: #3A1E1E;--card-bg-hover: #3A3A3C;--habit-icon-bg: #2C3E50;--habit-icon-bg-completed: #30D158;--habit-icon-bg-failed: #FF453A;--swipe-done-bg: #A7D96C;--swipe-done-text: #000000;--swipe-undone-bg: #5E7C9E;--swipe-undone-text: #FFFFFF;--swipe-skip-bg: #FF9F0A;--swipe-skip-text: #000000;--modal-overlay: rgba(0, 0, 0, .75);--modal-bg: #2C2C2E;--input-bg: #1C1C1E;--input-border: #38383A;--input-border-focus: #0A84FF;--input-placeholder: #636366;--subscription-banner-bg: #3A2E1E;--subscription-banner-border: #FF9F0A;--subscription-banner-text: #FFD60A;--week-nav-bg: transparent;--week-nav-text: #8E8E93;--week-nav-active-bg: #A7D96C;--week-nav-active-text: #000000;--week-nav-today-text: #EBEBF5}*{transition:background-color .3s ease,color .3s ease,border-color .3s ease,box-shadow .3s ease}button:active,.habit-card.swiping,.habit-card.animating{transition:none!important}.layout{position:relative;z-index:1}.container{position:relative;z-index:2}.header{position:relative;z-index:10}.header__avatar,.header__user{position:relative;z-index:1}.today{position:relative;z-index:5}.today__stats,.today__habits,.habit-card-container{position:relative;z-index:1}.habit-card{position:relative;z-index:2}.fab{position:fixed;z-index:100!important}.subscription-modal-overlay{position:fixed;z-index:3000!important}.subscription-modal{position:relative;z-index:3001!important}.header,.header__user,.header__avatar{transform:none!important;will-change:auto!important}:root{--primary-color: #0088cc;--success-color: #A7D96C;--danger-color: #ef4444;--warning-color: #f59e0b;--gray-100: #f3f4f6;--gray-200: #e5e7eb;--gray-300: #d1d5db;--gray-400: #9ca3af;--gray-500: #6b7280;--gray-600: #4b5563;--gray-700: #374151;--gray-800: #1f2937;--gray-900: #111827;line-height:1.5;font-weight:400;overflow-y:auto;color-scheme:light;color:var(--gray-900);background-color:var(--gray-100);font-family:Space Grotesk,sans-serif;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box;margin:0;padding:0}.today__habits{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}body{margin:0;min-width:320px;min-height:100vh;overflow-x:hidden;touch-action:pan-y pinch-zoom;overscroll-behavior-y:contain;position:fixed;width:100%;height:100%;overflow:auto}#root{height:100%;overflow:auto;-webkit-overflow-scrolling:touch}button{border:none;cursor:pointer;font-family:inherit;font-size:inherit;transition:all .2s}html{touch-action:manipulation}button:active{transform:scale(.98)}input,textarea,select{font-family:inherit;font-size:inherit;border:1px solid var(--gray-300);border-radius:8px;padding:12px;width:100%;transition:border-color .2s}input:focus,textarea:focus,select:focus{outline:none;border-color:var(--primary-color)}.container{width:100%;max-width:500px;margin:0 auto;padding:0 16px}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.fade-in{animation:fadeIn .3s ease-out}::-webkit-scrollbar{width:0!important;height:0!important;background:transparent;display:none}.habit-card{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none}@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}.swipe-indicator{animation:pulse 1s ease-in-out infinite}@media (hover: none) and (pointer: coarse){.habit-card-container{touch-action:pan-y}.habit-card{-webkit-tap-highlight-color:transparent}.today__habits{-webkit-overflow-scrolling:touch;overscroll-behavior:contain}button,input,select,textarea{touch-action:manipulation}}.swipeable{touch-action:pan-y!important}*{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}@supports (-webkit-overflow-scrolling: touch){.habit-card-wrapper{-webkit-transform:translateZ(0);transform:translateZ(0)}}.onboarding{height:100vh;background:#fff;padding:0;margin:0;width:100vw}.onboarding__top{width:100vw;position:relative;overflow:hidden}.onboarding__img{width:100vw;min-height:100%;object-fit:cover;display:block;margin:0;padding:0}.onboarding__card{background:#fff;margin-top:-100px;border-radius:0 0 32px 32px;padding:48px 16px 32px;text-align:center}.onboarding__title{font-size:32px;font-weight:700;color:#1c1c1d;margin:0 0 20px;line-height:1.2}.onboarding__desc{font-size:18px;color:#454545;margin:0 0 25px;line-height:1.5;font-weight:700}.onboarding__btn{width:100%;background:#a7d96c;color:#222;font-size:18px;font-weight:700;border:none;border-radius:10px;padding:16px 0;cursor:pointer;box-shadow:0 2px 12px #00000008;transition:background .2s}.onboarding__btn:hover{background:#a5db45}@media (max-width: 430px){.onboarding__img{min-height:210px}.onboarding__card{padding-left:4vw;padding-right:4vw;min-height:210px;border-radius:0 0 22px 22px}}.dark-theme .onboarding{background:#000}.dark-theme .onboarding__card{background:#1c1c1e}.dark-theme .onboarding__title{color:#fff}.dark-theme .onboarding__desc{color:#8e8e93}.dark-theme .onboarding__btn{background:#a7d96c;color:#000}.dark-theme .onboarding__btn:hover{background:#95c55d}.layout{min-height:100vh;background:#f2f2f7;padding:16px 0;transition:background-color .3s ease}.dark-theme .layout{background:#000}.header{background:#fff;padding:16px;border-radius:16px;margin-bottom:13px;transition:background-color .3s ease,box-shadow .3s ease}.header__user{display:flex;align-items:center;gap:12px;cursor:pointer;transition:opacity .2s}.header__user:active{opacity:.8}.header__avatar{width:48px;height:48px;border-radius:50%;object-fit:cover}.header__avatar--placeholder{background:var(--primary-color);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:20px}.header__info{flex:1}.header__name{font-size:18px;font-weight:600;color:#1d1d1f;margin-bottom:2px;transition:color .3s ease}.header__username{font-size:14px;color:#8e8e93;transition:color .3s ease}.header__arrow{font-size:24px;color:#c7c7cc;transition:color .3s ease}.dark-theme .header{background:#2c2c2e;box-shadow:0 2px 8px #0000004d}.dark-theme .header__name{color:#fff}.dark-theme .header__username{color:#ebebf5}.dark-theme .header__arrow{color:#8e8e93}.habit-card-wrapper{width:100%;overflow:hidden;padding:0;margin:0}.habit-card-container{position:relative;display:flex;align-items:center;margin-bottom:6px;height:80px;touch-action:pan-y;-webkit-user-select:none;user-select:none}.habit-card{position:relative;width:100%;background:#fff;border-radius:20px;padding:16px;box-shadow:0 2px 8px #0000000a;cursor:grab;user-select:none;-webkit-user-select:none;z-index:2;will-change:transform;transition:transform .2s ease-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform:translateZ(0);transform:translateZ(0)}.habit-card.swiping{transition:none!important}.habit-card:active{cursor:grabbing}.habit-card-content{display:flex;align-items:center;height:100%;position:relative;pointer-events:none}.habit-title{font-size:17px;font-weight:600;color:#000;margin:0 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.habit-goal{font-size:14px;color:#8e8e93;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.done-button .swipe-action-icon,.done-button .swipe-action-text{color:#1d1d1f}@supports (-webkit-touch-callout: none){.habit-card{-webkit-transform:translateX(0);transform:translate(0)}}@keyframes slideIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.habit-card{animation:slideIn .3s ease-out}.habit-members-count{position:absolute;bottom:8px;right:16px;background:#a7d96c;color:#1d1d1f;padding:4px 12px;border-radius:12px;font-size:12px;font-weight:600}.habit-card-wrapper{position:relative;margin-bottom:6px}.habit-card-wrapper.has-members{margin-bottom:10px}.habit-members-badge{background:#a7d96c;color:#1d1d1f;padding:8px 0;border-radius:0 0 20px 20px;font-size:14px;font-weight:700;text-align:center;margin-top:-8px;position:relative;z-index:1;letter-spacing:.3px}.has-members .habit-card{border-radius:20px 20px 0 0;margin-bottom:0}.has-members .swipe-action-button{border-radius:20px 20px 0 0}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.empty-state__image{width:250px;height:250px;opacity:.8;transition:opacity .3s ease}.empty-state__image img{width:100%;height:100%;object-fit:contain}.empty-state__title{font-size:24px;font-weight:700;color:#1d1d1f;margin-bottom:12px;transition:color .3s ease}.empty-state__text{font-size:16px;color:#8e8e93;line-height:1.5;margin-bottom:32px;transition:color .3s ease}.dark-theme .empty-state__image{opacity:.6}.dark-theme .empty-state__title{color:#fff}.dark-theme .empty-state__text{color:#ebebf5}.create-habit{position:fixed;inset:0;background:#f2f2f7;z-index:1000;display:flex;flex-direction:column;animation:slideUp .3s ease-out}.create-habit__form{flex:1;display:flex;flex-direction:column;overflow-y:auto}.create-habit__content{flex:1;padding:44px 16px 24px;overflow-y:auto}.form-section-row,.form-section-rw2{margin-bottom:16px;position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px}.form-label-title{display:block;font-size:17px;font-weight:600;color:#000;margin-bottom:12px;white-space:nowrap;flex-shrink:0}.form-section-row .form-label-title,.form-section-rw2 .form-label-title{margin-bottom:0;min-width:fit-content}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}.category-item__name{font-size:12px;font-weight:500;text-align:center;color:#000;transition:color .2s}.category-item--selected.category-item--colored,.category-item--selected.category-item--colored .category-item__name{color:#fff!important}.form-dropdown-button{width:100%;padding:17px 16px;font-size:17px;border:none;border-radius:12px;background:#fff;color:#000;text-align:center;font-weight:400;cursor:pointer;position:relative;transition:all .2s}.form-dropdown-button:active{background:#e5e5ea}.dropdown-button{flex:0 0 140px;width:140px;padding:12px 10px;font-size:15px;border:1px solid #C6C6C8;border-radius:10px;background:#fff;color:#8e8e93;text-align:center;font-weight:400;cursor:pointer;position:relative;transition:all .2s;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (max-width: 375px){.dropdown-button{flex:0 0 120px;width:120px;padding:10px 8px;font-size:14px}.form-section-row,.form-section-rw2{gap:6px}}@media (max-width: 320px){.dropdown-button{flex:0 0 100px;width:100px;padding:10px 6px;font-size:13px}.form-section-row,.form-section-rw2{gap:4px}}.time-picker-close{background:none;border:none;font-size:20px;color:#8e8e93;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center}.time-picker{position:absolute;top:calc(100% + 8px);left:0;right:0;background:#fff;border-radius:12px;box-shadow:0 10px 40px #0000001f;padding:16px;z-index:1000;max-height:280px}.time-picker-input{width:100%;padding:12px;font-size:17px;border:1px solid #E5E5EA;border-radius:8px;margin-bottom:12px}.time-picker-preset{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.time-picker-preset button{padding:10px;background:#f2f2f7;border:none;border-radius:8px;font-size:15px;cursor:pointer}.time-picker-preset button:active{background:#e5e5ea}.time-picker__columns{display:flex;height:240px;position:relative}.time-picker__columns:before{content:"";position:absolute;top:50%;left:0;right:0;height:40px;transform:translateY(-50%);background:#007aff1a;border-radius:8px;pointer-events:none;z-index:1}.time-picker__column{flex:1;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;-ms-overflow-style:none;position:relative}.time-picker__column::-webkit-scrollbar{display:none}.time-picker__column--period{flex:.7}.time-picker__scroll{padding:100px 0}.time-picker__item{height:40px;display:flex;align-items:center;justify-content:center;font-size:20px;color:#8e8e93;cursor:pointer;scroll-snap-align:center;transition:all .2s}.time-picker__item--selected{color:#000;font-weight:600;font-size:22px}.bad-habit-section{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.toggle-buttons{display:flex;gap:0;background:#f2f2f7;border-radius:9px;padding:2px}.toggle-button{padding:6px 20px;font-size:13px;font-weight:500;background:transparent;border:none;border-radius:7px;color:#000;cursor:pointer;transition:all .2s}.toggle-buttons{display:flex;background:#fff;border-radius:12px;padding:2px;gap:0}.toggle-button{padding:10px 32px;font-size:15px;font-weight:600;background:transparent;border:none;border-radius:10px;color:#000;cursor:pointer;transition:all .2s}.toggle-button--active{background:#007aff;color:#fff}.toggle-button--inactive{color:#8e8e93}.submit-button{width:100%;padding:17px;font-size:17px;font-weight:600;background:#c8c8cd;color:#fff;border:none;border-radius:12px;cursor:pointer;transition:all .2s}.submit-button:not(:disabled){background:#007aff}.submit-button:disabled{cursor:not-allowed;opacity:.6}.toggle-switch{position:relative;width:51px;height:31px;background:#e5e5ea;border-radius:16px;cursor:pointer;transition:all .3s ease;flex-shrink:0}.dark-theme .create-habit{background:#1c1c1e}.dark-theme .time-picker-close{color:#8e8e93}.dark-theme .time-picker{background:#2c2c2e;box-shadow:0 10px 40px #0009}.dark-theme .time-picker-preset button{background:#3a3a3c;color:#fff}.dark-theme .time-picker-preset button:active{background:#48484a}.dark-theme .time-picker__columns:before{background:#34c75926}.dark-theme .time-picker__item{color:#6e6e73}.dark-theme .time-picker__item--selected{color:#fff}.week-navigation{margin:0 0 9px;padding:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;position:relative;overscroll-behavior-x:contain;overscroll-behavior-y:none;height:60px;display:flex;align-items:center;max-width:100%;width:100%}.week-navigation::-webkit-scrollbar{display:none}.week-navigation__scroll{display:flex;gap:6px;padding:4px 0;min-width:min-content;align-items:center;height:100%;-webkit-overflow-scrolling:touch;position:relative}.week-navigation__day{padding:10px 24px;border-radius:24px;font-weight:500;font-size:15px;color:#8e8e93;background:transparent;border:none;cursor:pointer;transition:all .2s;white-space:nowrap;flex-shrink:0;height:44px;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.week-navigation__day:hover:not(.week-navigation__day--active){background:#a7d96c1a}.week-navigation__day--active{background:#a7d96c!important;color:#fff!important;font-weight:600}.week-navigation__day--today:not(.week-navigation__day--active){font-weight:700;color:#111827}.week-navigation__day--yesterday:not(.week-navigation__day--active){color:#374151}.week-navigation__day--past:not(.week-navigation__day--active){opacity:.5}.week-navigation__day--readonly{opacity:.7;cursor:default}.week-navigation__day--readonly:hover{background:transparent}.week-navigation__day-label{display:block;color:inherit;pointer-events:none}.week-navigation__day-badge{position:absolute;top:-4px;right:-4px;font-size:10px;background:#fef3c7;border-radius:50%;width:16px;height:16px;display:flex;align-items:center;justify-content:center}@supports (-webkit-touch-callout: none){.week-navigation{-webkit-overflow-scrolling:touch;overscroll-behavior:contain}}@media (hover: none) and (pointer: coarse){.week-navigation{touch-action:pan-x;overscroll-behavior:contain}.week-navigation__scroll{touch-action:pan-x}}.profile{position:fixed;inset:0;background:#f2f2f7;z-index:1000;display:flex;flex-direction:column;animation:slideUp .3s ease-out}.profile__header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#fff;border-bottom:.5px solid rgba(60,60,67,.12);position:relative}.profile__back{background:none;border:none;color:#007aff;font-size:17px;padding:0;cursor:pointer;font-weight:400;z-index:2}.profile__title{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center}.profile__title h2{font-size:17px;font-weight:600;margin:0;color:#000;line-height:22px}.profile__subtitle{font-size:11px;color:#8e8e93;font-weight:400;line-height:13px;margin-top:2px;display:block}.profile__menu{background:none;border:none;color:#007aff;font-size:30px;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center;cursor:pointer;line-height:1;z-index:2}.profile__content{flex:1;overflow-y:auto;background:#f2f2f7}.profile__user{display:flex;flex-direction:column;align-items:center;padding:30px 20px;background:linear-gradient(180deg,#e3f2fd,#bbdefb)}.profile__avatar{width:100px;height:100px;border-radius:50%;margin-bottom:16px;object-fit:cover;border:3px solid white;box-shadow:0 4px 12px #0000001a}.profile__avatar--placeholder{background:#c7c7cc;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:40px}.profile__name{font-size:28px;font-weight:700;color:#000;margin:0 0 4px;line-height:1.2}.profile__username{font-size:16px;color:#6c6c70;margin:0;font-weight:400}.profile__section{background:#fff;border-radius:12px;margin:16px 16px 0;overflow:hidden}.profile__section--highlighted{border:2px solid #A7D96C;box-shadow:0 2px 8px #a7d96c26}.profile__section--special{border:2px solid #A7D96C;background:linear-gradient(135deg,#a7d96c0d,#a7d96c05)}.profile__item{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 16px;background:none;text-align:left;border:none;transition:background .2s;cursor:pointer;position:relative;min-height:44px}.profile__item:not(:last-child):after{content:"";position:absolute;bottom:0;left:52px;right:0;height:.5px;background:#3c3c431f}.profile__item--legal:not(:last-child):after{left:16px}.profile__item:active{background:#f2f2f7}.profile__item-left{display:flex;align-items:center;gap:12px;flex:1}.profile__item-icon{font-size:22px;width:24px;display:flex;align-items:center;justify-content:center}.profile__item-label{font-size:17px;color:#000;font-weight:400;line-height:22px}.profile__item--legal .profile__item-label{color:#000}.profile__item-right{display:flex;align-items:center;gap:8px}.profile__item-arrow{color:#c7c7cc;font-size:20px;font-weight:300}.profile__subscription-badge{padding:4px 12px;border-radius:20px;font-size:15px;font-weight:600;line-height:20px}.profile__subscription-badge--free{background:#a7d96c;color:#fff}.profile__subscription-badge--active{background:linear-gradient(135deg,#7c3aed,#a855f7);color:#fff;box-shadow:0 2px 8px #a855f74d}.profile__item--subscription{min-height:56px}.profile__item--special{background:linear-gradient(135deg,rgba(167,217,108,.05) 0%,transparent 100%)}.profile__version{text-align:center;padding:24px 20px 32px;color:#8e8e93;font-size:13px;line-height:18px}.profile__version p{margin:2px 0}.profile__version p:first-child{font-weight:500;color:#6c6c70;margin-bottom:4px}@media (max-width: 375px){.profile__name{font-size:24px}.profile__avatar{width:90px;height:90px}.profile__item{padding:11px 16px}.profile__subscription-badge{font-size:14px;padding:3px 10px}}.dark-theme .profile{background:#000}.dark-theme .profile__header{background:#1c1c1e;border-bottom-color:#5454584d}.dark-theme .profile__back{color:#0a84ff}.dark-theme .profile__title h2{color:#fff}.dark-theme .profile__subtitle{color:#8e8e93}.dark-theme .profile__menu{color:#0a84ff}.dark-theme .profile__content{background:#000}.dark-theme .profile__user{background:linear-gradient(180deg,#1c3a4a,#0f2a3a)}.dark-theme .profile__name{color:#fff}.dark-theme .profile__username{color:#8e8e93}.dark-theme .profile__section{background:#1c1c1e}.dark-theme .profile__section--highlighted{border-color:#a7d96c;box-shadow:0 2px 8px #a7d96c33}.dark-theme .profile__section--special{border-color:#a7d96c;background:linear-gradient(135deg,#a7d96c14,#a7d96c08)}.dark-theme .profile__item{background:transparent}.dark-theme .profile__item:not(:last-child):after{background:#5454584d}.dark-theme .profile__item:active{background:#2c2c2e}.dark-theme .profile__item-label,.dark-theme .profile__item--legal .profile__item-label{color:#fff}.dark-theme .profile__item-arrow{color:#48484a}.dark-theme .profile__subscription-badge--free{background:#a7d96c;color:#000}.dark-theme .profile__subscription-badge--active{background:linear-gradient(135deg,#7c3aed,#a855f7);color:#fff;box-shadow:0 2px 8px #a855f766}.dark-theme .profile__item--special{background:linear-gradient(135deg,rgba(167,217,108,.08) 0%,transparent 100%)}.dark-theme .profile__version{color:#8e8e93}.dark-theme .profile__version p:first-child{color:#6e6e73}.loader{display:flex;justify-content:center;align-items:center;padding:20px}.loader__spinner{border:3px solid var(--gray-200);border-radius:50%;border-top:3px solid var(--primary-color);animation:spin 1s linear infinite}.loader--small .loader__spinner{width:20px;height:20px}.loader--medium .loader__spinner{width:40px;height:40px}.loader--large .loader__spinner{width:60px;height:60px}.loader--primary .loader__spinner{border-top-color:var(--primary-color)}.loader--success .loader__spinner{border-top-color:var(--success-color)}.purchase-history{position:fixed;inset:0;background:#f2f2f7;z-index:1000;display:flex;flex-direction:column;animation:slideUp .3s ease-out}.purchase-history__header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#fff;border-bottom:.5px solid rgba(60,60,67,.12);position:relative}.purchase-history__back{background:none;border:none;color:#007aff;font-size:17px;padding:0;cursor:pointer;font-weight:400;z-index:2}.purchase-history__title-wrapper{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;width:100%;pointer-events:none}.purchase-history__title{font-size:17px;font-weight:600;margin:0;color:#000;line-height:22px}.purchase-history__subtitle{font-size:11px;color:#8e8e93;font-weight:400;line-height:13px;margin-top:2px;display:block}.purchase-history__menu{background:none;border:none;color:#007aff;font-size:30px;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center;cursor:pointer;line-height:1;z-index:2}.purchase-history__content{flex:1;overflow-y:auto;padding:16px}.purchase-history__list{display:flex;flex-direction:column;gap:0}.purchase-history__date-group{margin-bottom:16px}.purchase-history__date{font-size:13px;font-weight:400;color:#8e8e93;text-transform:uppercase;margin:0 0 8px 16px;letter-spacing:.5px}.purchase-history__items{background:#fff;border-radius:12px;overflow:hidden}.purchase-history__item{display:flex;align-items:center;padding:16px;position:relative}.purchase-history__item:not(:last-child):after{content:"";position:absolute;bottom:0;left:16px;right:16px;height:.5px;background:#3c3c431f}.purchase-history__item-icon{width:40px;height:40px;background:#f2f2f7;border-radius:10px;display:flex;align-items:center;justify-content:center;margin-right:12px;font-size:20px}.purchase-history__item-info{flex:1}.purchase-history__item-title{font-size:17px;font-weight:600;color:#000;margin:0 0 2px}.purchase-history__item-subscription{font-size:15px;color:#8e8e93;margin:0}.purchase-history__item-details{display:flex;flex-direction:column;align-items:flex-end}.purchase-history__item-price{display:flex;align-items:center;gap:2px;font-size:17px;font-weight:600;color:#000;margin-bottom:2px}.purchase-history__item-star{font-size:16px}.purchase-history__item-order{font-size:13px;color:#8e8e93}.purchase-history__item-validity{display:flex;align-items:center;gap:16px;padding:8px 16px;background:#f8f8fa}.purchase-history__validity-label{font-size:13px;color:#8e8e93;min-width:60px}.purchase-history__validity-value{font-size:15px;color:#000;font-weight:500}.purchase-history__validity-order{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end}.purchase-history__empty{text-align:center;padding:60px 20px}.purchase-history__empty-icon{font-size:48px;margin-bottom:16px}.purchase-history__empty-text{font-size:17px;color:#8e8e93;margin:0}.dark-theme .purchase-history{background:#000}.dark-theme .purchase-history__header{background:#1c1c1e;border-bottom-color:#5454584d}.dark-theme .purchase-history__back{color:#0a84ff}.dark-theme .purchase-history__title{color:#fff}.dark-theme .purchase-history__subtitle{color:#8e8e93}.dark-theme .purchase-history__menu{color:#0a84ff}.dark-theme .purchase-history__content{background:#000}.dark-theme .purchase-history__date{color:#8e8e93}.dark-theme .purchase-history__items{background:#1c1c1e}.dark-theme .purchase-history__item:not(:last-child):after{background:#5454584d}.dark-theme .purchase-history__item-icon{background:#2c2c2e}.dark-theme .purchase-history__item-title{color:#fff}.dark-theme .purchase-history__item-subscription{color:#8e8e93}.dark-theme .purchase-history__item-price{color:#fff}.dark-theme .purchase-history__item-order{color:#8e8e93}.dark-theme .purchase-history__item-validity{background:#2c2c2e}.dark-theme .purchase-history__validity-label{color:#8e8e93}.dark-theme .purchase-history__validity-value{color:#fff}.dark-theme .purchase-history__empty-text{color:#8e8e93}.subscription-new{position:fixed;inset:0;background:#f2f2f7;z-index:2000;display:flex;flex-direction:column;overflow:hidden}.subscription-new__menu{background:none;border:none;font-size:20px;color:#007aff;padding:0;cursor:pointer}.subscription-new__content{flex:1;overflow-y:auto;padding:20px 16px 40px}.subscription-new__hero{text-align:center;margin-bottom:24px}.subscription-new__title{font-size:34px;font-weight:700;margin:0 0 8px;color:#000}.subscription-new__subtitle{font-size:17px;color:#8e8e93;margin:0}.subscription-new__section{margin-bottom:24px}.subscription-new__section-title{font-size:17px;font-weight:600;color:#000;margin:0 0 12px}.subscription-new__payment-method{display:flex;align-items:center;background:#fff;border-radius:12px;padding:16px;gap:12px}.subscription-new__payment-icon{font-size:28px}.subscription-new__payment-info{display:flex;flex-direction:column}.subscription-new__payment-title{font-size:17px;font-weight:500;color:#000}.subscription-new__payment-subtitle{font-size:14px;color:#8e8e93;margin-top:2px}.subscription-new__quantity{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:12px;padding:12px 16px;margin-bottom:12px}.subscription-new__quantity-label{font-size:17px;color:#000}.subscription-new__quantity-controls{display:flex;align-items:center;gap:20px}.subscription-new__quantity-btn{width:30px;height:30px;border-radius:50%;border:none;background:#e5e5ea;color:#000;font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:opacity .2s}.subscription-new__quantity-btn:disabled{opacity:.3;cursor:not-allowed}.subscription-new__quantity-btn:active:not(:disabled){transform:scale(.95)}.subscription-new__quantity-value{font-size:17px;font-weight:600;color:#000;min-width:20px;text-align:center}.subscription-new__checkbox-container{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:12px;padding:12px 16px;margin-bottom:12px;cursor:pointer}.subscription-new__checkbox-label{font-size:17px;color:#000}.subscription-new__checkbox{display:none}.subscription-new__checkbox-custom{width:24px;height:24px;border:2px solid #C7C7CC;border-radius:50%;position:relative;transition:all .2s}.subscription-new__checkbox:checked+.subscription-new__checkbox-custom{background:#34c759;border-color:#34c759}.subscription-new__checkbox:checked+.subscription-new__checkbox-custom:after{content:"✓";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;font-size:14px;font-weight:700}.subscription-new__gift-note{font-size:13px;color:#8e8e93;line-height:1.4;margin:8px 0 0}.subscription-new__plan{display:flex;align-items:center;background:#fff;border:2px solid #E5E5EA;border-radius:12px;padding:14px 16px;margin-bottom:8px;cursor:pointer;transition:all .2s}.subscription-new__plan--selected{border-color:#a7d96c;background:#fff}.subscription-new__plan-radio{display:none}.subscription-new__plan-checkmark{width:24px;height:24px;min-width:24px;border-radius:50%;border:2px solid #C7C7CC;display:flex;align-items:center;justify-content:center;margin-right:12px;color:#fff;font-weight:700;font-size:14px;transition:all .2s;flex-shrink:0}.subscription-new__plan--selected .subscription-new__plan-checkmark{background:#a7d96c;border-color:#a7d96c}.subscription-new__plan-info{flex:1;display:flex;flex-direction:column;gap:4px}.subscription-new__plan-name-wrapper{display:flex;align-items:center;gap:8px}.subscription-new__plan-name{font-size:17px;font-weight:400;color:#000}.subscription-new__plan-total{font-size:13px;color:#8e8e93;display:flex;align-items:center;gap:2px}.subscription-new__plan-price{font-size:17px;color:#000;font-weight:400;margin-left:auto;display:flex;align-items:center;gap:2px;white-space:nowrap;flex-shrink:0}.subscription-new__promo{width:100%;padding:14px 16px;background:#fff;border:none;border-radius:12px;font-size:17px;color:#000}.subscription-new__promo::placeholder{color:#c7c7cc}.subscription-new__benefits{background:#fff;border-radius:12px;padding:12px 16px}.subscription-new__benefit{display:flex;align-items:center;gap:12px;padding:8px 0}.subscription-new__benefit:not(:last-child){border-bottom:.5px solid rgba(60,60,67,.12)}.subscription-new__benefit-icon{width:24px;height:24px;background:#a7d96c;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:14px}.subscription-new__benefit-text{font-size:17px;color:#000}.subscription-new__about{font-size:15px;color:#000;line-height:1.5;margin:0;padding:16px;background:#fff;border-radius:12px}.subscription-new__agreement{display:flex;align-items:flex-start;gap:12px;margin:24px 0;cursor:pointer}.subscription-new__agreement-checkbox{display:none}.subscription-new__agreement-checkmark{width:24px;height:24px;min-width:24px;border:2px solid #C7C7CC;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:14px;transition:all .2s;margin-top:2px}.subscription-new__agreement-checkbox:checked+.subscription-new__agreement-checkmark{background:#a7d96c;border-color:#a7d96c}.subscription-new__agreement-text{font-size:14px;color:#a7d96c;line-height:1.4}.subscription-new__subscribe{width:100%;padding:17px;background:#a7d96c;color:#1d1d1f;border:none;border-radius:16px;font-size:17px;font-weight:600;cursor:pointer;transition:all .2s}.subscription-new__subscribe--disabled{background:#e5e5ea;color:#8e8e93;cursor:not-allowed}.subscription-new__subscribe:active:not(.subscription-new__subscribe--disabled){transform:scale(.98)}.subscription-page{position:fixed;inset:0;background:#f2f2f7;z-index:1000;display:flex;flex-direction:column;animation:slideUp .3s ease-out}.subscription-page--loading{display:flex;align-items:center;justify-content:center}.subscription-page__content{flex:1;padding:20px;overflow-y:auto}.subscription-status{background:#fff;border-radius:16px;padding:20px;margin-bottom:20px}.subscription-status h3{font-size:24px;font-weight:700;margin:0 0 12px;color:#000}.subscription-status p{font-size:16px;color:#8e8e93;margin:8px 0}.subscription-usage{font-weight:600;color:#000;margin-top:16px!important}.subscription-status--premium{background:linear-gradient(135deg,#a7d96c,#95c55d);color:#fff}.subscription-status--premium h3,.subscription-status--premium p{color:#fff}.days-warning{color:#ffd60a!important;font-weight:600}.trial-badge{display:inline-block;padding:4px 12px;background:#ffd60a;color:#000;border-radius:12px;font-size:12px;font-weight:700;margin-top:12px}.subscription-page__cancel-btn{width:100%;padding:16px;background:#fff;color:#ff3b30;border:1px solid #FF3B30;border-radius:12px;font-size:17px;font-weight:600;margin-bottom:20px;cursor:pointer;transition:all .2s}.subscription-page__cancel-btn:active{transform:scale(.98)}.subscription-history{background:#fff;border-radius:16px;padding:20px}.subscription-history h3{font-size:20px;font-weight:600;margin:0 0 16px;color:#000}.history-item{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #F2F2F7}.history-item:last-child{border-bottom:none}.history-action{font-size:16px;color:#000;text-transform:capitalize}.history-date{font-size:14px;color:#8e8e93}.subscription-page__cancel-btn:disabled{opacity:.5;cursor:not-allowed}.subscription-page__cancel-btn:not(:disabled):hover{background:#ff3b30;color:#fff}.dark-theme .subscription-page{background:#000}.dark-theme .subscription-page__content{background:transparent}.dark-theme .subscription-status{background:#1c1c1e}.dark-theme .subscription-status h3{color:#fff}.dark-theme .subscription-status p{color:#8e8e93}.dark-theme .subscription-usage{color:#fff}.dark-theme .subscription-status--premium{background:linear-gradient(135deg,#a7d96c,#95c55d);color:#000}.dark-theme .subscription-status--premium h3,.dark-theme .subscription-status--premium p,.dark-theme .subscription-status--premium .subscription-usage{color:#000}.dark-theme .days-warning{color:#ffd60a!important}.dark-theme .trial-badge{background:#ffd60a;color:#000}.dark-theme .subscription-page__cancel-btn{background:#1c1c1e;color:#ff453a;border-color:#ff453a}.dark-theme .subscription-page__cancel-btn:not(:disabled):hover{background:#ff453a;color:#fff}.dark-theme .subscription-history{background:#1c1c1e}.dark-theme .subscription-history h3{color:#fff}.dark-theme .history-item{border-bottom-color:#2c2c2e}.dark-theme .history-action{color:#fff}.dark-theme .history-date{color:#8e8e93}.language-selector{position:fixed;inset:0;background:#f2f2f7;z-index:1100;display:flex;flex-direction:column;animation:slideUp .3s ease-out}.language-selector__header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#fff;border-bottom:.5px solid rgba(60,60,67,.12);position:relative}.language-selector__close{background:none;border:none;color:#007aff;font-size:17px;padding:0;cursor:pointer;font-weight:400;z-index:2}.language-selector__title-wrapper{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;pointer-events:none}.language-selector__title{font-size:17px;font-weight:600;margin:0;color:#000;line-height:22px}.language-selector__subtitle{font-size:11px;color:#8e8e93;font-weight:400;line-height:13px;margin-top:2px;display:block}.language-selector__menu{background:none;border:none;color:#007aff;font-size:30px;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center;cursor:pointer;line-height:1;z-index:2}.language-selector__content{flex:1;overflow-y:auto;background:#f2f2f7;padding:20px 0}.language-selector__heading{font-size:17px;font-weight:600;color:#000;margin:0 0 8px 16px}.language-selector__list{background:#fff;border-radius:12px;margin:0 16px;overflow:hidden}.language-selector__item{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 16px;background:none;text-align:left;border:none;transition:all .2s;cursor:pointer;position:relative;min-height:60px}.language-selector__item:disabled{opacity:.7;cursor:not-allowed}.language-selector__item:not(:last-child):after{content:"";position:absolute;bottom:0;left:16px;right:0;height:.5px;background:#3c3c431f}.language-selector__item:active:not(:disabled){background:#f2f2f7}.language-selector__item-info{flex:1;display:flex;flex-direction:column;gap:2px}.language-selector__item-name{font-size:17px;color:#000;font-weight:400;line-height:22px}.language-selector__item--selected .language-selector__item-name{color:#007aff}.language-selector__item-subtitle{font-size:13px;color:#8e8e93;line-height:18px}.language-selector__item--selected .language-selector__item-subtitle{color:#007aff;opacity:.8}.language-selector__item-check{font-size:17px;color:#007aff;font-weight:600;margin-left:12px}.dark-theme .language-selector{background:#000}.dark-theme .language-selector__header{background:#1c1c1e;border-bottom-color:#5454584d}.dark-theme .language-selector__close{color:#0a84ff}.dark-theme .language-selector__title{color:#fff}.dark-theme .language-selector__subtitle{color:#8e8e93}.dark-theme .language-selector__menu{color:#0a84ff}.dark-theme .language-selector__content{background:#000}.dark-theme .language-selector__heading{color:#fff}.dark-theme .language-selector__list{background:#1c1c1e}.dark-theme .language-selector__item{background:transparent}.dark-theme .language-selector__item:not(:last-child):after{background:#5454584d}.dark-theme .language-selector__item:active:not(:disabled){background:#2c2c2e}.dark-theme .language-selector__item-name{color:#fff}.dark-theme .language-selector__item--selected .language-selector__item-name{color:#0a84ff}.dark-theme .language-selector__item-subtitle{color:#8e8e93}.dark-theme .language-selector__item--selected .language-selector__item-subtitle{color:#0a84ff;opacity:.8}.dark-theme .language-selector__item-check{color:#0a84ff}.settings{position:fixed;inset:0;background:#f2f2f7;z-index:1000;display:flex;flex-direction:column;animation:slideUp .3s ease-out}.settings__header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#fff;border-bottom:.5px solid rgba(60,60,67,.12);position:relative}.settings__back{background:none;border:none;color:#007aff;font-size:17px;padding:0;cursor:pointer;font-weight:400;z-index:2}.settings__title-wrapper{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;pointer-events:none}.settings__title{font-size:17px;font-weight:600;margin:0;color:#000;line-height:22px}.settings__subtitle{font-size:11px;color:#8e8e93;font-weight:400;line-height:13px;margin-top:2px;display:block}.settings__menu{background:none;border:none;color:#007aff;font-size:30px;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center;cursor:pointer;line-height:1;z-index:2}.settings__content{flex:1;overflow-y:auto;background:#f2f2f7;padding:20px 0}.settings__section{margin-bottom:35px}.settings__section-title{font-size:17px;font-weight:600;color:#000;margin:0 0 8px 16px;text-transform:none}.settings__items{background:#fff;border-radius:12px;margin:0 16px;overflow:hidden}.settings__item{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 16px;background:none;text-align:left;border:none;transition:background .2s;cursor:pointer;position:relative;min-height:44px}.settings__item:not(:last-child):after{content:"";position:absolute;bottom:0;left:16px;right:0;height:.5px;background:#3c3c431f}.settings__item:active{background:#f2f2f7}.settings__item-label{font-size:17px;color:#000;font-weight:400;flex:1}.settings__item-content{flex:1;display:flex;flex-direction:column;gap:4px}.settings__item-description{font-size:13px;color:#8e8e93;line-height:16px}.settings__item-right{display:flex;align-items:center;gap:8px}.settings__item-value{font-size:17px;color:#8e8e93;font-weight:400}.settings__item-arrow{color:#c7c7cc;font-size:20px;font-weight:300}.settings__theme-section{padding:0 16px;margin-bottom:35px}.settings__theme-item{display:flex;align-items:center;justify-content:space-between;padding:0}.settings__theme-label{font-size:17px;font-weight:600;color:#000}.settings__toggle{width:51px;height:31px;background:#78788029;border-radius:15.5px;position:relative;cursor:pointer;border:none;transition:background .3s;padding:0}.settings__toggle--active{background:#4cd964}.settings__toggle-slider{width:27px;height:27px;background:#fff;border-radius:50%;position:absolute;top:2px;left:2px;transition:transform .3s;box-shadow:0 3px 8px #00000026,0 3px 1px #0000000f;display:flex;align-items:center;justify-content:center}.settings__toggle--active .settings__toggle-slider{transform:translate(20px)}.settings__toggle-icon{font-size:16px}.dark-theme .settings{background:#000}.dark-theme .settings__header{background:#1c1c1e;border-bottom-color:#5454584d}.dark-theme .settings__back{color:#0a84ff}.dark-theme .settings__title{color:#fff}.dark-theme .settings__subtitle{color:#8e8e93}.dark-theme .settings__menu{color:#0a84ff}.dark-theme .settings__content{background:#000}.dark-theme .settings__section-title{color:#fff}.dark-theme .settings__items{background:#1c1c1e}.dark-theme .settings__item{background:transparent}.dark-theme .settings__item:not(:last-child):after{background:#5454584d}.dark-theme .settings__item:active{background:#2c2c2e}.dark-theme .settings__item-label{color:#fff}.dark-theme .settings__item-description,.dark-theme .settings__item-value{color:#8e8e93}.dark-theme .settings__item-arrow{color:#48484a}.dark-theme .settings__theme-label{color:#fff}.dark-theme .settings__toggle{background:#48484a}.dark-theme .settings__toggle--active{background:#4cd964}.modal-overlay{position:fixed;inset:0;background:var(--modal-overlay, rgba(0, 0, 0, .75));display:flex;align-items:center;justify-content:center;z-index:2000;padding:20px;animation:fadeIn .2s ease-out}.modal-content{background:var(--modal-bg, white);border-radius:20px;padding:32px 24px;max-width:340px;width:100%;box-shadow:var(--shadow-lg, 0 20px 60px rgba(0, 0, 0, .3));animation:slideUp .3s ease-out}.delete-modal__title{font-size:24px;font-weight:700;color:var(--text-primary, #000);text-align:center;margin:0 0 32px;line-height:1.3}.delete-modal__buttons{display:flex;gap:16px}.delete-modal__button{flex:1;padding:20px;border:none;border-radius:16px;font-size:20px;font-weight:700;cursor:pointer;transition:all .2s ease;background:var(--color-success, #A7D96C);color:#000}.delete-modal__button:active{transform:scale(.98)}.delete-modal__button--yes,.delete-modal__button--no{background:var(--color-success, #A7D96C);color:#000}.copy-modal__title{font-size:28px;font-weight:700;color:var(--text-primary, #000);text-align:center;margin:0 0 12px}.copy-modal__subtitle{font-size:18px;color:var(--text-tertiary, #8E8E93);text-align:center;margin:0 0 32px}.copy-modal__button{width:100%;padding:20px;border:none;border-radius:16px;background:var(--color-success, #A7D96C);color:#000;font-size:20px;font-weight:700;cursor:pointer;transition:all .2s ease}.copy-modal__button:active{transform:scale(.98)}@media (max-width: 375px){.modal-content{padding:24px 20px}.delete-modal__title{font-size:20px;margin-bottom:24px}.delete-modal__button{font-size:18px;padding:18px}.copy-modal__title{font-size:24px}.copy-modal__subtitle{font-size:16px}}.delete-modal.modal-content{background:var(--bg-tertiary, #3A3A3C)!important;border-radius:20px;padding:40px 24px 32px;text-align:center;max-width:640px;width:90%;box-shadow:var(--shadow-lg, 0 20px 60px rgba(0, 0, 0, .5))}.delete-modal__title{font-size:24px;font-weight:600;color:var(--text-primary, #FFFFFF);margin:0 0 40px;line-height:1.3;letter-spacing:-.3px}.delete-modal__buttons{display:flex;gap:16px;width:100%}.delete-modal__button{flex:1;padding:20px 24px;border-radius:16px;font-size:20px;font-weight:600;border:none;cursor:pointer;transition:all .2s ease;min-height:64px}.delete-modal__button--yes{background:var(--color-success, #A7D96C);color:#000}.delete-modal__button--yes:hover{background:var(--color-success-dark, #95C55D)}.delete-modal__button--yes:active{transform:scale(.95)}.delete-modal__button--no{background:var(--color-success, #A7D96C);color:#000}.delete-modal__button--no:hover{background:var(--color-success-dark, #95C55D)}.delete-modal__button--no:active{transform:scale(.95)}.light-theme .delete-modal.modal-content{background:#fff!important}.light-theme .delete-modal__title{color:#000}@media (max-width: 375px){.delete-modal.modal-content{padding:36px 20px 28px;max-width:90%}.delete-modal__title{font-size:20px;margin-bottom:36px}.delete-modal__button{font-size:18px;padding:18px 20px;min-height:60px}.delete-modal__buttons{gap:12px}}@media (max-width: 320px){.delete-modal.modal-content{padding:32px 16px 24px}.delete-modal__title{font-size:18px;margin-bottom:32px}.delete-modal__button{font-size:17px;padding:16px;min-height:56px}}.toast-container{position:fixed;top:0;left:0;right:0;display:flex;justify-content:center;pointer-events:none;z-index:9999;padding:20px}.toast{background:#fff;padding:16px 24px;border-radius:16px;box-shadow:0 4px 20px #00000026;display:flex;align-items:center;gap:12px;max-width:calc(100vw - 40px);font-size:16px;font-weight:500;pointer-events:auto;transform:translateY(-100px);opacity:0;animation:toastSlideIn .3s ease-out forwards}.toast--success{background:linear-gradient(135deg,#a7d96c,#95c55d);color:#1d1d1f}.toast--error{background:linear-gradient(135deg,#ff6b6b,#ff3b30);color:#fff}.toast--warning{background:linear-gradient(135deg,#ffd93d,#ffb300);color:#1d1d1f}.toast--info{background:linear-gradient(135deg,#6c9eff,#007aff);color:#fff}.toast__icon{font-size:20px;flex-shrink:0}.toast__message{flex:1;line-height:1.4}@keyframes toastSlideIn{0%{transform:translateY(-100px);opacity:0}to{transform:translateY(0);opacity:1}}.toast--leaving{animation:toastSlideOut .3s ease-out forwards}@keyframes toastSlideOut{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100px);opacity:0}}@media (max-width: 375px){.toast-container{padding:16px}.toast{padding:14px 20px;font-size:15px}.toast__icon{font-size:18px}}.toast *{pointer-events:none}.subscription-modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:3000;animation:fadeIn .3s ease-out}.subscription-modal{background:#5b9bd5;width:100%;height:100%;max-width:500px;max-height:100vh;display:flex;flex-direction:column;position:relative;overflow:hidden}.subscription-modal__content{flex:1;display:flex;flex-direction:column;position:relative;height:100%;overflow:hidden}.subscription-modal__illustration{height:30%;position:relative;display:flex;align-items:center;justify-content:center;background:#5b9bd5;padding:20px 20px 0;flex-shrink:0}.subscription-modal__illustration img{width:100%;max-width:380px;height:100%;object-fit:contain}.subscription-modal__info{flex:1;background:#fff;border-radius:32px 32px 0 0;padding:32px 24px 24px;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}.subscription-modal__info::-webkit-scrollbar{width:0px;background:transparent}.subscription-modal__info{scrollbar-width:none;-ms-overflow-style:none}.subscription-modal__main-title{font-size:32px;font-weight:700;color:#1d1d1f;margin:0 0 8px;text-align:center;flex-shrink:0;letter-spacing:-.5px}.subscription-modal__subtitle{font-size:18px;color:#8e8e93;font-weight:400;margin:0 0 24px;text-align:center;flex-shrink:0}.subscription-modal__features{display:flex;flex-direction:column;gap:8px;margin-bottom:20px;flex-shrink:0}.subscription-modal__feature{display:flex;align-items:center;gap:12px}.subscription-modal__feature-icon{width:28px;height:28px;flex-shrink:0}.subscription-modal__feature-text{font-size:18px;font-weight:400;color:#1d1d1f}.subscription-modal__plans{display:flex;flex-direction:column;gap:12px;margin-bottom:16px;flex-shrink:0}.subscription-modal__plan{display:flex;align-items:center;padding:16px;background:#fff;border:2px solid #E5E5EA;border-radius:14px;cursor:pointer;transition:all .2s ease;position:relative;min-height:70px}.subscription-modal__plan--selected{border-color:#93df72;background:#f8fff4}.subscription-modal__plan-radio{width:28px;height:28px;border:2px solid #C7C7CC;border-radius:50%;margin-right:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:#fff;transition:all .2s ease}.subscription-modal__plan--selected .subscription-modal__plan-radio{border-color:#93df72;background:#93df72}.subscription-modal__plan-radio-inner{display:flex;align-items:center;justify-content:center}.subscription-modal__plan-details{flex:1}.subscription-modal__plan-name{font-size:18px;font-weight:400;color:#1d1d1f;margin-bottom:4px}.subscription-modal__plan-total{font-size:15px;color:#8e8e93;display:flex;align-items:center;gap:4px;font-weight:400}.subscription-modal__plan-price{font-size:18px;font-weight:400;color:#1d1d1f;display:flex;align-items:center;gap:4px;margin-left:auto}.subscription-modal__star{font-size:16px}.subscription-modal__links{display:flex;justify-content:center;gap:32px;margin-bottom:20px;flex-shrink:0;margin-top:4px}.subscription-modal__link{color:#1d1d1f;text-decoration:none;font-size:15px;font-weight:400;border-bottom:1px solid #1D1D1F}.subscription-modal__continue{width:100%;padding:18px;background:#93df72;color:#1d1d1f;border:none;border-radius:14px;font-size:19px;font-weight:600;cursor:pointer;transition:all .2s ease;flex-shrink:0;margin-bottom:8px}.subscription-modal__continue--disabled{background:#93df72;color:#1d1d1f;opacity:.4;cursor:not-allowed}.subscription-modal__continue:not(.subscription-modal__continue--disabled):active{transform:scale(.98);opacity:.9}@media (max-height: 800px){.subscription-modal__illustration{height:28%}.subscription-modal__info{padding:28px 22px 22px}.subscription-modal__main-title{font-size:30px;margin-bottom:6px}.subscription-modal__subtitle{font-size:17px;margin-bottom:20px}.subscription-modal__features{gap:6px;margin-bottom:18px}.subscription-modal__feature-icon{width:26px;height:26px}.subscription-modal__feature-text{font-size:17px}.subscription-modal__plan{padding:14px;min-height:65px}.subscription-modal__plan-radio{width:26px;height:26px}.subscription-modal__plan-name,.subscription-modal__plan-price{font-size:17px}.subscription-modal__plans{gap:10px;margin-bottom:14px}.subscription-modal__links{margin-bottom:18px;gap:28px}.subscription-modal__continue{padding:16px;font-size:18px}}@media (max-height: 700px){.subscription-modal__illustration{height:25%}.subscription-modal__info{padding:24px 20px 20px}.subscription-modal__main-title{font-size:28px;margin-bottom:4px}.subscription-modal__subtitle{font-size:16px;margin-bottom:18px}.subscription-modal__features{gap:6px;margin-bottom:16px}.subscription-modal__feature-icon{width:24px;height:24px}.subscription-modal__feature-text{font-size:16px}.subscription-modal__plan{padding:12px 14px;min-height:60px}.subscription-modal__plan-radio{width:24px;height:24px}.subscription-modal__plan-name{font-size:16px}.subscription-modal__plan-total{font-size:14px}.subscription-modal__plan-price{font-size:16px}.subscription-modal__plans{gap:8px;margin-bottom:12px}.subscription-modal__links{margin-bottom:16px;gap:24px}.subscription-modal__link{font-size:14px}.subscription-modal__continue{padding:15px;font-size:17px}}@media (max-height: 640px){.subscription-modal__illustration{height:22%}.subscription-modal__info{padding:20px 18px 18px}.subscription-modal__main-title{font-size:26px;margin-bottom:4px}.subscription-modal__subtitle{font-size:15px;margin-bottom:16px}.subscription-modal__features{gap:5px;margin-bottom:14px}.subscription-modal__feature-icon{width:22px;height:22px}.subscription-modal__feature-text{font-size:15px}.subscription-modal__plan{padding:10px 12px;min-height:56px}.subscription-modal__plan-radio{width:22px;height:22px;margin-right:12px}.subscription-modal__plan-name{font-size:15px;margin-bottom:2px}.subscription-modal__plan-total{font-size:13px}.subscription-modal__plan-price{font-size:15px}.subscription-modal__plans{gap:8px;margin-bottom:10px}.subscription-modal__links{margin-bottom:14px;gap:20px}.subscription-modal__link{font-size:13px}.subscription-modal__continue{padding:14px;font-size:16px}}@media (max-width: 375px){.subscription-modal__info{padding:28px 18px 20px}.subscription-modal__main-title{font-size:28px}.subscription-modal__subtitle,.subscription-modal__feature-text{font-size:16px}.subscription-modal__plan{padding:12px}.subscription-modal__plan-name,.subscription-modal__plan-price{font-size:16px}.subscription-modal__links{gap:20px}}@media (max-width: 320px){.subscription-modal__info{padding:24px 16px 18px}.subscription-modal__main-title{font-size:26px}.subscription-modal__subtitle{font-size:15px}.subscription-modal__feature-icon{width:22px;height:22px}.subscription-modal__feature-text{font-size:15px}.subscription-modal__plan{padding:10px}.subscription-modal__plan-radio{width:22px;height:22px;margin-right:10px}.subscription-modal__plan-name{font-size:15px}.subscription-modal__plan-total{font-size:13px}.subscription-modal__plan-price{font-size:15px}.subscription-modal__links{gap:16px;flex-wrap:wrap}.subscription-modal__link{font-size:13px}.subscription-modal__continue{padding:14px;font-size:16px}}.habit-detail{min-height:100vh;background:var(--bg-primary, #F5F5F7);display:flex;flex-direction:column}.habit-detail--loading{display:flex;align-items:center;justify-content:center}.habit-detail__header{background:var(--card-bg, white);padding:16px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border-color, #E5E5EA)}.habit-detail__close{background:none;border:none;color:var(--color-info, #007AFF);font-size:17px;padding:0;cursor:pointer}.habit-detail__title-wrapper{text-align:center;flex:1}.habit-detail__app-title{font-size:17px;font-weight:600;margin:0;color:var(--text-primary, #000)}.habit-detail__app-subtitle{font-size:13px;color:var(--text-tertiary, #8E8E93);margin:0}.habit-detail__menu{background:none;border:none;color:var(--color-info, #007AFF);font-size:22px;padding:0;cursor:pointer}.habit-detail__content{flex:1;padding:20px;overflow-y:auto}.habit-detail__habit-info{border-radius:16px;margin-bottom:16px;overflow:hidden}.habit-detail__habit-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px;gap:12px}.habit-detail__habit-title-section{display:flex;align-items:flex-start;align-content:center;gap:6px;flex:1;min-width:0;overflow:hidden}.habit-detail__emoji{font-size:24px;flex-shrink:0;line-height:1}.habit-detail__habit-title{font-size:24px;font-weight:600;margin:0;color:var(--text-primary, #000);word-wrap:break-word;word-break:break-word;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;flex:1;min-width:0;line-height:1.3}.habit-detail__edit-btn{background:none;border:2px solid var(--color-success, #A7D96C);color:var(--color-success, #A7D96C);font-size:16px;font-weight:600;padding:8px 20px;border-radius:20px;cursor:pointer;transition:all .2s ease;flex-shrink:0;white-space:nowrap}.habit-detail__edit-btn:hover{background:var(--color-success, #A7D96C);color:var(--text-inverse, white)}.habit-detail__habit-goal{font-size:16px;color:var(--text-secondary, #1D1D1F);margin:0 0 0 5px;word-wrap:break-word;word-break:break-word;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;line-height:1.4}.habit-detail__creator-notice{font-size:14px;color:var(--color-info, #007AFF);background:var(--bg-tertiary, #E8F4FD);border-radius:8px;padding:12px;margin-top:12px;line-height:1.4;word-wrap:break-word}.habit-detail__statistics{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:20px}.habit-detail__stat-card{background:var(--card-bg, white);border-radius:16px;padding:20px;text-align:left;border:1px solid var(--border-color, transparent)}.habit-detail__stat-circle{width:100px;height:100px;margin:0 auto 12px;position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column}.habit-detail__stat-circle:before{content:"";position:absolute;width:100%;height:100%;border-radius:50%;border:8px solid var(--bg-tertiary, #F2F2F7);box-sizing:border-box}.habit-detail__stat-circle:after{content:"";position:absolute;width:100%;height:100%;border-radius:50%;border:8px solid var(--color, #A7D96C);border-top-color:transparent;border-right-color:transparent;transform:rotate(calc(var(--progress, 0) * 3.6deg - 90deg));box-sizing:border-box;transition:transform .5s ease}.habit-detail__stat-value{font-size:32px;font-weight:700;color:var(--text-primary, #000);z-index:1}.habit-detail__stat-total{font-size:14px;color:var(--text-tertiary, #8E8E93);z-index:1}.habit-detail__stat-title{font-size:16px;font-weight:600;margin:0 0 4px;color:var(--text-primary, #000)}.habit-detail__stat-subtitle{font-size:14px;color:var(--text-tertiary, #8E8E93);margin:0}.habit-detail__motivation{background:var(--color-success, #A7D96C);border-radius:16px;padding:24px;margin-bottom:20px;text-align:center}.habit-detail__motivation-text{font-size:24px;font-weight:600;color:var(--text-inverse, #1D1D1F);margin:0;font-style:italic}.habit-detail__friends{display:flex;flex-direction:column;background:var( white);border-radius:16px;padding:20px;margin-bottom:20px;text-align:left;border:1px solid var(--border-color, transparent)}.habit-detail__friends-title{font-size:20px;font-weight:600;margin:0 0 8px;color:var(--text-primary, #000)}.habit-detail__friends-subtitle{font-size:14px;color:var(--text-tertiary, #8E8E93);margin:0 0 16px}.habit-detail__share-buttons{display:flex;gap:12px;margin-bottom:16px}.habit-detail__btn--copy-link{flex:0 0 auto;min-width:120px;background:var(--card-bg, white);color:var(--color-success, #A7D96C);border:2px solid var(--color-success, #A7D96C);padding:16px 24px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:600}.habit-detail__btn--copy-link:hover{background:var(--card-bg-hover, #F8FFF4)}.habit-detail__btn--copy-link svg{width:20px;height:20px}.habit-detail__btn--share{flex:1}.habit-detail__btn{padding:16px;border-radius:12px;font-size:17px;font-weight:600;border:none;cursor:pointer;transition:all .2s ease}.habit-detail__btn--primary{background:var(--color-success, #A7D96C);color:var(--text-inverse, #1D1D1F)}.habit-detail__btn--primary:hover{background:var(--color-success-dark, #95C55D)}.habit-detail__btn--outline{background:var(--card-bg, white);color:var(--color-success, #A7D96C);border:2px solid var(--color-success, #A7D96C)}.habit-detail__btn--outline:hover{background:var(--card-bg-hover, #F8FFF4)}.habit-detail__btn--danger{background:var(--card-bg, white);color:var(--text-primary, #000);border:1px solid var(--border-color, #E5E5EA);width:100%}.habit-detail__btn--danger:hover{background:var(--card-bg-failed, #FFE5E5);color:var(--color-danger, #FF3B30);border-color:var(--color-danger, #FF3B30)}.habit-detail__members-list{margin-bottom:16px}.habit-detail__btn--add-friend{background:var(--color-success, #A7D96C);color:var(--text-inverse, #1D1D1F);width:100%;margin-bottom:16px}.friend-card-container{position:relative;display:flex;align-items:center;margin-bottom:12px;height:64px;overflow:hidden;border-radius:16px}.friend-card{width:100%;background:var(--bg-tertiary, #F8F8FA);border-radius:16px;padding:12px 16px;display:flex;align-items:center;gap:12px;z-index:2;cursor:grab;transition:transform .3s ease-out;will-change:transform;border:1px solid var(--border-color, transparent)}.friend-card__avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;background:var(--border-color, #E5E5EA)}.friend-card__name{flex:1;font-size:17px;font-weight:500;color:var(--text-primary, #000)}.friend-action{position:absolute;top:0;bottom:0;width:100px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;font-size:15px;border-radius:16px;gap:4px}.friend-action--punch{right:0;background:#ff6b6b}.friend-action--remove{left:0;background:var(--color-danger, #FF3B30)}@media (max-width: 375px){.habit-detail__statistics{gap:12px}.habit-detail__stat-circle{width:80px;height:80px}.habit-detail__stat-value{font-size:24px}.habit-detail__stat-title{font-size:15px}.habit-detail__habit-title{font-size:20px}.habit-detail__habit-goal{font-size:14px;margin-left:40px}.habit-detail__edit-btn{font-size:14px;padding:6px 16px}}@media (max-width: 320px){.habit-detail__habit-title{font-size:18px}.habit-detail__emoji{font-size:28px}.habit-detail__habit-goal{font-size:13px;margin-left:36px}}.dark-theme .habit-detail__motivation-text{color:#000}.dark-theme .habit-detail__btn--copy-link:hover,.dark-theme .habit-detail__btn--outline:hover{background:var(--bg-tertiary)}.dark-theme .habit-detail__creator-notice{background:#0a84ff26}.friend-hint-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:3000;animation:fadeIn .3s ease-out;padding:20px}.friend-hint{background:#fff;border-radius:24px;padding:28px 24px 24px;margin:0 20px;max-width:360px;width:100%;box-shadow:0 20px 60px #0000004d;animation:slideUp .3s ease-out}.friend-hint__title{font-size:24px;font-weight:700;text-align:center;margin-bottom:24px;color:#1c1c1d}.friend-hint__content{display:flex;flex-direction:column;gap:20px;margin-bottom:28px}.friend-hint__item{display:flex;align-items:center;gap:16px;padding:16px;background:#f8f8fa;border-radius:16px}.friend-hint__arrow{width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:50%;flex-shrink:0;font-size:24px;box-shadow:0 2px 8px #0000001a}.friend-hint__arrow--left{background:#ff6b6b;color:#fff}.friend-hint__arrow--right{background:#ff3b30;color:#fff}.friend-hint__text{flex:1;font-size:15px;color:#3c3c43;line-height:1.4}.friend-hint__text strong{color:#000;font-weight:600}.friend-hint__button{width:100%;padding:16px;background:#a7d96c;color:#1d1d1f;border:none;border-radius:14px;font-size:17px;font-weight:600;cursor:pointer;transition:all .2s}.friend-hint__button:active{transform:scale(.98);background:#95c55d}@keyframes slideUp{0%{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}.friend-hint-overlay--hiding{animation:fadeOut .3s ease-out forwards}.habit-card-container{position:relative;display:flex;align-items:center;margin-bottom:12px;height:80px}.habit-card{position:relative;width:100%;background:#fff;border-radius:20px;padding:16px;box-shadow:0 2px 8px #0000000a;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;z-index:2;will-change:transform;transition:transform .3s ease-out,background-color .3s ease}.habit-card.touching{transition:none!important}.habit-card.animating{transition:transform .3s ease-out}.habit-card.completed{background:#e8f5e9}.habit-card.failed{background:#ffebee}.habit-card-content{display:flex;align-items:center;height:100%;position:relative}.habit-icon{width:48px;height:48px;background:#e8f4f9;border-radius:14px;display:flex;align-items:center;justify-content:center;margin-right:12px;flex-shrink:0;transition:background-color .3s ease}.habit-icon.completed{background:#34c759}.habit-icon.failed{background:#ff3b30}.habit-emoji{font-size:24px}.habit-info{flex:1;min-width:0}.habit-title{font-size:17px;font-weight:600;color:#000;margin:0 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .3s ease}.habit-goal{font-size:14px;color:#8e8e93;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .3s ease}.status-indicator{position:absolute;right:0;top:50%;transform:translateY(-50%);width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff}.today__stats{text-align:center;margin-bottom:4px}.today__container{display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:24px;color:#1d1d1f;margin-bottom:4px;transition:color .3s ease}.today__container2{display:flex;align-items:center;justify-content:space-between;font-weight:700;color:#1d1d1f;transition:color .3s ease}.today__title{font-size:24px;font-weight:700;color:#1d1d1f;line-height:1.3;transition:color .3s ease}.today__count{font-size:24px;font-weight:700;color:#1d1d1f;transition:color .3s ease}.today__subtitle{font-size:24px;color:#c3c3c3;margin-top:4px;transition:color .3s ease}.today__motivation{max-width:200px;background:#fff;border-radius:16px;padding:10px;text-align:center;font-size:16px;color:#1d1d1f;box-shadow:0 2px 8px #0000000a;transition:background-color .3s ease,color .3s ease}.today__motivation--updating{animation:motivationPulse .5s ease}@keyframes motivationPulse{0%{transform:scale(1)}50%{transform:scale(1.05)}to{transform:scale(1)}}@media (max-width: 375px){.today__motivation{max-width:160px;font-size:14px;padding:8px 16px}}.today__motivation--encouragement{background:#ffb3ba!important}.today__motivation--success{background:#b5e7a0!important}.today__motivation--perfect{background:#87ceeb!important}.today__motivation--streak{background:#a7d96c!important}.today__habits{margin-bottom:80px;padding:0}.today__readonly-notice{background:#fef3c7;color:#92400e;padding:10px 14px;border-radius:12px;margin-bottom:20px;font-size:14px;text-align:center;transition:background-color .3s ease,color .3s ease}.status-indicator.completed{background:#34c759}.status-indicator.failed{background:#ff3b30}.status-indicator.skipped{background:#ff9500}.swipe-action-button{position:absolute;top:0;bottom:0;width:100px;border-radius:20px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;opacity:0;transform:scale(.8);transition:opacity .2s ease-out,transform .2s ease-out;z-index:1}.swipe-action-button.visible{opacity:1;transform:scale(1)}.swipe-action-icon{color:#fff;font-size:24px;font-weight:700;line-height:1}.swipe-action-text{color:#fff;font-size:14px;font-weight:600}.done-button{background:#a7d96c;display:flex;align-items:center;flex-direction:row;color:#1d1d1f}.undone-button{background:#456486;display:flex;align-items:center;flex-direction:row;color:#fff}.skip-button{background:#ff9500;box-shadow:0 2px 8px #ff95004d}.habit-card-container{touch-action:pan-y;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}@supports (-webkit-touch-callout: none){.habit-card-container{-webkit-overflow-scrolling:touch}.habit-card{-webkit-transform:translateX(0);-webkit-transition:-webkit-transform .3s ease-out}.habit-card.touching{-webkit-transition:none!important}}.habit-card *{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;pointer-events:none}.habit-card{pointer-events:auto}.fab{position:fixed;bottom:24px;right:24px;width:56px;height:56px;border-radius:50%;background:var(--success-color);color:#fff;font-size:32px;font-weight:300;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #00000026;transition:all .3s;z-index:100}.habits-skeleton{display:flex;flex-direction:column;gap:12px;padding:16px;animation:fadeIn .3s ease-out}.skeleton-card{display:flex;align-items:center;gap:12px;padding:16px;background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000000d;transition:background-color .3s ease}.skeleton-icon{width:48px;height:48px;border-radius:12px;background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0,#f0f0f0 75%);background-size:200% 100%;animation:shimmer 1.5s infinite}.skeleton-content{flex:1;display:flex;flex-direction:column;gap:8px}.skeleton-title{width:60%;height:16px;border-radius:4px;background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0,#f0f0f0 75%);background-size:200% 100%;animation:shimmer 1.5s infinite}.skeleton-goal{width:40%;height:12px;border-radius:4px;background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0,#f0f0f0 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;animation-delay:.2s}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.dark-theme .habit-card{background:#2c2c2e;box-shadow:0 2px 8px #0000004d}.dark-theme .habit-card.completed{background:#1e3a1e}.dark-theme .habit-card.failed{background:#3a1e1e}.dark-theme .habit-card.skipped{background:#2c2c2e}.dark-theme .habit-icon{background:#3a3a3c}.dark-theme .habit-icon.completed{background:#30d158}.dark-theme .habit-icon.failed{background:#ff453a}.dark-theme .habit-icon.skipped{background:#3a3a3c}.dark-theme .habit-title{color:#fff}.dark-theme .habit-goal{color:#ebebf5}.dark-theme .today__container,.dark-theme .today__container2,.dark-theme .today__title,.dark-theme .today__count{color:#fff}.dark-theme .today__subtitle{color:#8e8e93}.dark-theme .today__motivation{background:#3a3a3c;color:#fff;box-shadow:0 2px 8px #0000004d}.dark-theme .today__motivation--encouragement{background:#5e3a3d!important;color:#ffb3ba!important}.dark-theme .today__motivation--success{background:#3a4a35!important;color:#b5e7a0!important}.dark-theme .today__motivation--perfect{background:#2d4b5c!important;color:#87ceeb!important}.dark-theme .today__motivation--streak{background:#3f4a2e!important;color:#a7d96c!important}.dark-theme .today__readonly-notice{background:#3a2e1e;color:#ffd60a}.dark-theme .skeleton-card{background:#2c2c2e}.dark-theme .skeleton-icon,.dark-theme .skeleton-title,.dark-theme .skeleton-goal{background:linear-gradient(90deg,#3a3a3c 25%,#48484a,#3a3a3c 75%);background-size:200% 100%}.swipe-hint-overlay{position:fixed;inset:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .3s ease-out}.swipe-hint{background:#fff;border-radius:20px;padding:24px;margin:0 20px;max-width:340px;box-shadow:0 10px 40px #0003;animation:slideUp .3s ease-out}.swipe-hint__title{font-size:20px;font-weight:700;text-align:center;margin-bottom:20px;color:#1c1c1d}.swipe-hint__content{display:flex;flex-direction:column;gap:16px}.swipe-hint__item{display:flex;align-items:center;gap:16px;padding:12px 16px;background:#f8f8f8;border-radius:12px}.swipe-hint__arrow{width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:50%;flex-shrink:0}.swipe-hint__arrow--left{background:#34c759;color:#fff}.swipe-hint__arrow--right{background:#ff9500;color:#fff}.swipe-hint__text{flex:1;font-size:15px;color:#3c3c43;line-height:1.4}.swipe-hint__progress{display:flex;gap:6px;justify-content:center;margin-top:20px}.swipe-hint__dot{width:6px;height:6px;border-radius:50%;background:#d1d1d6;transition:all .3s}.swipe-hint__dot--active{background:#007aff;width:20px;border-radius:3px}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.swipe-hint-overlay--hiding{animation:fadeOut .3s ease-out forwards}.edit-habit{position:fixed;inset:0;background:#f2f2f7;z-index:1000;display:flex;flex-direction:column;animation:slideUp .3s ease-out}.edit-habit__form{flex:1;display:flex;flex-direction:column;overflow-y:auto}.edit-habit__content{flex:1;padding:44px 16px 24px;overflow-y:auto}.form-section{margin-bottom:16px;position:relative}.form-section-row{margin-bottom:16px;position:relative;display:flex;align-items:center;justify-content:space-between;gap:124px}.form-section-rw2{margin-bottom:16px;position:relative;display:flex;align-items:center;justify-content:space-between;gap:145px}.form-label{display:block}.form-label-title{display:block;font-size:17px;font-weight:600;color:#000;margin-bottom:12px}.form-input,.form-textarea{width:100%;padding:15px 12px;font-size:17px;border:none;border-radius:12px;background:#fff;color:#000;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,sans-serif;-webkit-appearance:none;transition:all .2s}.form-input::placeholder,.form-textarea::placeholder{color:#c7c7cc}.form-input:focus,.form-textarea:focus{outline:none;box-shadow:0 0 0 2px #007aff}.form-textarea{resize:none;line-height:1.4}.form-hint{font-size:13px;color:#6e6e73;line-height:18px;margin-top:8px}.category-scroll-container{margin-top:12px;margin-left:-16px;margin-right:-16px;padding:0 16px}.category-scroll{display:flex;gap:12px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none;-ms-overflow-style:none}.category-scroll::-webkit-scrollbar{display:none}.category-item{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:6px 15px;background:#fff;border:2px solid transparent;border-radius:16px;cursor:pointer;transition:all .2s;flex-shrink:0}.category-item--selected{border-color:#007aff;background:#e8f4fd}.category-item__icon{font-size:24px;margin-bottom:4px}.category-item__name{font-size:12px;font-weight:500;text-align:center;color:#000}.days-section{max-height:0;overflow:hidden;opacity:0;transition:all .3s ease-out;margin-bottom:0}.days-section--visible{max-height:150px;opacity:1;margin-bottom:32px}.days-selector{display:flex;gap:8px;margin-top:12px;justify-content:space-between}.day-button{flex:1;height:52px;border-radius:12px;border:none;background:#fff;color:#000;font-weight:600;font-size:15px;cursor:pointer;transition:all .2s}.day-button--selected{background:#007aff;color:#fff}.dropdown-button{width:100%;padding:12px 16px;font-size:17px;border:1px solid #C6C6C8;border-radius:10px;background:#fff;color:#8e8e93;text-align:center;font-weight:400;cursor:pointer;position:relative;transition:all .2s}.dropdown-button.active{color:#000;border-color:#007aff}.dropdown-button:active{background:#f2f2f7}.dropdown-menu{position:absolute;top:calc(100% + 8px);left:0;right:0;background:#fff;border-radius:12px;box-shadow:0 10px 40px #0000001f;overflow:hidden;z-index:1000}.dropdown-item{width:100%;padding:16px;font-size:17px;text-align:center;background:none;border:none;border-bottom:1px solid #E5E5EA;cursor:pointer;transition:background .1s;color:#007aff}.dropdown-item:last-child{border-bottom:none}.dropdown-item:active{background:#f2f2f7}.time-picker-dropdown{position:absolute;top:calc(100% + 4px);left:0;right:0;background:#fff;border-radius:12px;box-shadow:0 4px 20px #00000026;padding:16px;z-index:1000}.time-picker-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.time-picker-header span{font-size:17px;font-weight:600}.time-picker-done{background:none;border:none;color:#007aff;font-size:17px;font-weight:600;padding:0;cursor:pointer}.time-picker-input{width:100%;padding:12px;font-size:17px;border:1px solid #E5E5EA;border-radius:8px}.bad-habit-toggle{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:8px}.bad-habit-label{display:flex;align-items:center;gap:8px}.toggle-switch{position:relative;width:51px;height:31px;background:#e5e5ea;border-radius:16px;cursor:pointer;transition:all .3s ease;flex-shrink:0;border:none}.toggle-switch--active{background:linear-gradient(90deg,#93df72,#ef73ff)}.toggle-switch__slider{position:absolute;top:2px;left:2px;width:27px;height:27px;background:#fff;border-radius:50%;transition:transform .3s ease;box-shadow:0 2px 4px #0003}.toggle-switch--active .toggle-switch__slider{transform:translate(20px)}.form-footer{padding:16px;background:#f2f2f7;border-top:1px solid #E5E5EA}.submit-button{width:100%;padding:17px;font-size:17px;font-weight:600;background:#007aff;color:#fff;border:none;border-radius:12px;cursor:pointer;transition:all .2s}.submit-button:disabled{background:#c8c8cd;cursor:not-allowed;opacity:.6}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@media (max-width: 320px){.category-grid{grid-template-columns:repeat(2,1fr)}.days-selector{flex-wrap:wrap}}.dark-theme .edit-habit{background:#1c1c1e}.dark-theme .form-input,.dark-theme .form-textarea{background:#2c2c2e;color:#fff;border:none}.dark-theme .form-input::placeholder,.dark-theme .form-textarea::placeholder{color:#6e6e73}.dark-theme .form-input:focus,.dark-theme .form-textarea:focus{box-shadow:0 0 0 2px #34c759;border-color:#34c759}.dark-theme .form-label-title{color:#8e8e93}.dark-theme .form-hint{color:#6e6e73}.dark-theme .category-item{background:#2c2c2e99;border-color:transparent}.dark-theme .category-item--selected{border-color:transparent;background:#2c2c2e}.dark-theme .category-item__name{color:#fff}.dark-theme .day-button{background:#2c2c2e;color:#fff}.dark-theme .day-button--selected{background:#34c759;color:#000}.dark-theme .dropdown-button{background:#2c2c2e;color:#6e6e73;border-color:#3a3a3c}.dark-theme .dropdown-button.active{color:#fff;border-color:#3a3a3c}.dark-theme .dropdown-button:active{background:#3a3a3c}.dark-theme .dropdown-menu{background:#2c2c2e;box-shadow:0 10px 40px #0009}.dark-theme .dropdown-item{color:#0a84ff;border-bottom-color:#3a3a3c}.dark-theme .dropdown-item:active{background:#3a3a3c}.dark-theme .time-picker-dropdown{background:#2c2c2e;box-shadow:0 4px 20px #0009}.dark-theme .time-picker-header span{color:#fff}.dark-theme .time-picker-done{color:#0a84ff}.dark-theme .time-picker-input{background:#1c1c1e;border-color:#3a3a3c;color:#fff}.dark-theme .toggle-switch{background:#48484a}.dark-theme .toggle-switch--active{background:linear-gradient(90deg,#93df72,#ef73ff)}.dark-theme .form-footer{background:#1c1c1e;border-top-color:#2c2c2e}.dark-theme .submit-button{background:#2c2c2e;color:#6e6e73}.dark-theme .submit-button:not(:disabled){background:#34c759;color:#000}.pull-to-refresh-container{position:relative;width:100%;height:100%;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}.pull-to-refresh-indicator{position:fixed;top:0;left:50%;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px;z-index:1000;pointer-events:none;transition:opacity .2s ease-out}.refresh-icon{width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:var(--primary-color, #0088cc);transition:transform .1s ease-out}.refresh-icon.spinning{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.refresh-text{font-size:14px;font-weight:500;color:var(--gray-600, #666);white-space:nowrap}.pull-to-refresh-content{min-height:100%;will-change:transform}body.pulling{overflow:hidden}@media (hover: none){.pull-to-refresh-container{overscroll-behavior-y:contain}}.loading,.error{display:flex;justify-content:center;align-items:center;height:100vh;font-size:18px}.error{color:#f44}.loading{color:#08c}.app-loading,.app-error{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;padding:20px;text-align:center}.app-error h2{color:var(--danger-color);margin-bottom:12px}.app-error p{color:var(--gray-600)}
