@import"https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap";@keyframes ob-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes ob-slideUp{0%{transform:translateY(60px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes ob-btnAppear{0%{transform:translateY(16px) scale(.96);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes ob-imgAppear{0%{opacity:0;transform:scale(1.04) translateY(0)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes ob-ride{0%{transform:translateY(0) rotate(0)}20%{transform:translateY(-9px) rotate(.6deg)}45%{transform:translateY(-5px) rotate(-.4deg)}65%{transform:translateY(-10px) rotate(.5deg)}85%{transform:translateY(-3px) rotate(-.3deg)}to{transform:translateY(0) rotate(0)}}.onboarding{height:100vh;background:#fff;padding:0;margin:0;width:100vw;overflow:hidden}.ob-enter{animation:ob-fadeIn .22s ease-out both}.onboarding__top{width:100vw;position:relative;overflow:hidden}.onboarding__img{width:100vw;min-height:100%;object-fit:cover;display:block;margin:0;padding:0;opacity:0}.onboarding__img--riding{animation:ob-imgAppear .45s ease-out forwards,ob-ride 2.4s ease-in-out .45s infinite}.onboarding__card{background:#fff;margin-top:-100px;border-radius:0 0 32px 32px;padding:48px 16px 32px;text-align:center}.ob-card-enter{animation:ob-slideUp .42s cubic-bezier(.22,1,.36,1) .08s both}.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,transform .15s}.ob-btn-enter{animation:ob-btnAppear .38s cubic-bezier(.22,1,.36,1) .32s both}.onboarding__btn:hover{background:#a5db45}.onboarding__btn:active{transform:scale(.97)}@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}.habit-card-pack-stripe{position:absolute;left:0;top:12px;bottom:12px;width:4px;border-radius:0 4px 4px 0;z-index:1}.habit-pack-label{font-size:11px;font-weight:600;margin:2px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.85}.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.habit-card--leaving{animation:habitLeaveSlide .55s cubic-bezier(.4,0,.6,1) forwards;pointer-events:none;overflow:hidden}@keyframes habitLeaveSlide{0%{opacity:1;transform:translate(0);max-height:200px;margin-bottom:6px}40%{opacity:0;transform:translate(-90px);max-height:200px;margin-bottom:6px}to{opacity:0;transform:translate(-90px);max-height:0;margin-bottom:0}}.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}.lock-badge{position:absolute;top:10px;right:10px;font-size:16px;background:#667eea1a;padding:4px 8px;border-radius:6px;z-index:10}.habit-card.locked{border:2px solid #667eea;background:linear-gradient(to bottom,#f8f9ff,#fff)}.dark-theme .habit-card.locked{border-color:#667eea;background:linear-gradient(to bottom,#2a2d4a,#2c2c2e)}.dark-theme .lock-badge{background:#667eea33}.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-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{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}@media(max-width:320px){.category-grid{grid-template-columns:repeat(2,1fr)}.days-selector{flex-wrap:wrap}}.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}}.dark-theme .week-navigation__day{color:#ebebf5}.dark-theme .week-navigation__day:hover:not(.week-navigation__day--active){background:#a7d96c26}.dark-theme .week-navigation__day--active{background:#a7d96c!important;color:#1d1d1f!important;font-weight:600}.dark-theme .week-navigation__day--today:not(.week-navigation__day--active){font-weight:700;color:#fff!important;background:#a7d96c33}.dark-theme .week-navigation__day--yesterday:not(.week-navigation__day--active){color:#ebebf5;font-weight:500}.dark-theme .week-navigation__day--past:not(.week-navigation__day--active){opacity:.5;color:#8e8e93}.dark-theme .week-navigation__day--readonly{opacity:.6;cursor:default}.dark-theme .week-navigation__day--readonly:hover{background:transparent}.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}.special-habits-button{width:100%;display:flex;align-items:center;gap:15px;padding:16px;background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:12px;cursor:pointer;transition:transform .2s,box-shadow .2s;box-shadow:0 4px 12px #667eea4d}.special-habits-button:hover{transform:translateY(-2px);box-shadow:0 6px 20px #667eea66}.special-habits-button .button-icon{font-size:32px;flex-shrink:0}.special-habits-button .button-content{flex:1;text-align:left}.special-habits-button .button-title{font-size:16px;font-weight:700;color:#fff;margin-bottom:3px}.special-habits-button .button-subtitle{font-size:13px;color:#ffffffe6}.special-habits-button .button-arrow{font-size:20px;color:#fff;flex-shrink:0}.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,.ph-page{position:fixed;inset:0;background:var(--bg-secondary, #F2F2F7);z-index:1000;display:flex;flex-direction:column;animation:ph-slideUp .3s ease-out}@keyframes ph-slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.ph-page__content,.purchase-history__content{flex:1;overflow-y:auto;padding:16px 16px 32px;display:flex;flex-direction:column;gap:24px}.ph-page__loader{flex:1;display:flex;align-items:center;justify-content:center}.ph-group{display:flex;flex-direction:column;gap:8px}.ph-group__date{font-size:12px;font-weight:500;color:var(--text-tertiary, #8E8E93);letter-spacing:.5px;text-transform:uppercase;margin:0 0 4px 4px}.ph-group__items{display:flex;flex-direction:column;gap:8px}.ph-card{display:flex;align-items:center;gap:12px;padding:14px;border-radius:16px;background:var(--bg-primary, #fff);box-shadow:0 1px 4px #0000000f;transition:opacity .2s}.ph-card--inactive{opacity:.6}.ph-card__icon-wrap{width:46px;height:46px;border-radius:12px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:22px;overflow:hidden}.ph-card__icon-wrap--sub{background:linear-gradient(135deg,#fbbf24,#f59e0b)}.ph-card__icon-wrap--pack{background:linear-gradient(135deg,#c084fc,#a855f7)}.ph-card__pack-img{width:100%;height:100%;object-fit:cover;border-radius:12px}.ph-card__emoji{line-height:1}.ph-card__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.ph-card__row{display:flex;align-items:center;gap:6px}.ph-card__row--top{justify-content:space-between}.ph-card__row--bottom{flex-wrap:wrap;gap:6px}.ph-card__title{font-size:15px;font-weight:600;color:var(--text-primary, #000);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}.ph-card__price{font-size:15px;font-weight:700;color:var(--text-primary, #000);white-space:nowrap;flex-shrink:0}.ph-card__star{font-size:13px}.ph-card__desc{font-size:12px;color:var(--text-tertiary, #8E8E93);flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ph-card__order{font-size:11px;color:var(--text-tertiary, #8E8E93);letter-spacing:.3px;margin-left:auto}.ph-badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:20px;font-size:11px;font-weight:600;white-space:nowrap}.ph-badge--green{background:#34c75926;color:#34c759}.ph-badge--grey{background:#8e8e9326;color:#8e8e93}.ph-badge--blue{background:#5a82d726;color:var(--color-primary, #5A82D7)}.ph-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;gap:10px}.ph-empty__icon{font-size:52px}.ph-empty__title{font-size:17px;font-weight:600;color:var(--text-primary, #000);margin:0}.ph-empty__sub{font-size:14px;color:var(--text-tertiary, #8E8E93);margin:0;text-align:center}.dark-theme .ph-page,.dark-theme .purchase-history{background:#000}.dark-theme .ph-card{background:#1c1c1e;box-shadow:none}.dark-theme .ph-card__title,.dark-theme .ph-card__price,.dark-theme .ph-empty__title{color:#fff}.subscription-new{position:fixed;inset:0;background:#f2f2f7;z-index:2000;display:flex;flex-direction:column;overflow:hidden;transition:background-color .3s ease}.subscription-new__menu{background:none;border:none;font-size:20px;color:#007aff;padding:0;cursor:pointer;transition:color .3s ease}.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;transition:color .3s ease}.subscription-new__subtitle{font-size:17px;color:#8e8e93;margin:0;transition:color .3s ease}.subscription-new__section{margin-bottom:24px}.subscription-new__section-title{font-size:17px;font-weight:600;color:#000;margin:0 0 12px;transition:color .3s ease}.subscription-new__payment-method{display:flex;align-items:center;background:#fff;border-radius:12px;padding:16px;gap:12px;transition:background-color .3s ease}.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;transition:color .3s ease}.subscription-new__payment-subtitle{font-size:14px;color:#8e8e93;margin-top:2px;transition:color .3s ease}.subscription-new__quantity{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:12px;padding:12px 16px;margin-bottom:12px;transition:background-color .3s ease}.subscription-new__quantity-label{font-size:17px;color:#000;transition:color .3s ease}.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:background-color .3s ease,color .3s ease,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;transition:color .3s ease}.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;transition:background-color .3s ease}.subscription-new__checkbox-label{font-size:17px;color:#000;transition:color .3s ease}.subscription-new__checkbox{display:none}.subscription-new__checkbox-custom{width:24px;height:24px;border:2px solid #C7C7CC;border-radius:50%;position:relative;transition:all .3s ease}.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;transition:color .3s ease}.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 .3s ease}.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 .3s ease;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;transition:color .3s ease}.subscription-new__plan-total{font-size:13px;color:#8e8e93;display:flex;align-items:center;gap:2px;transition:color .3s ease}.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;transition:color .3s ease}.subscription-new__promo-wrapper{position:relative;background:#fff;border-radius:12px;transition:background-color .3s ease}.subscription-new__promo-field{width:100%;padding:14px 44px 14px 16px;background:transparent;border:none;border-radius:12px;font-size:17px;color:#000;outline:none;box-sizing:border-box;transition:color .3s ease}.subscription-new__promo-field::placeholder{color:#c7c7cc;transition:color .3s ease}.subscription-new__promo-spinner,.subscription-new__promo-check{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:18px;pointer-events:none}.subscription-new__promo-check{color:#34c759;font-weight:700;font-size:20px}.subscription-new__promo-message{padding:6px 6px 0;font-size:13px}.subscription-new__promo-message--success{color:#34c759;margin-bottom:20px}.subscription-new__promo-message--error{color:#ff3b30;margin-bottom:20px}.subscription-new__benefits{background:#fff;border-radius:12px;padding:12px 16px;transition:background-color .3s ease}.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);transition:border-color .3s ease}.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;transition:color .3s ease}.subscription-new__about{font-size:15px;color:#000;line-height:1.5;margin:0;padding:16px;background:#fff;border-radius:12px;transition:background-color .3s ease,color .3s ease}.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 .3s ease;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 .3s ease}.subscription-new__subscribe--disabled{background:#e5e5ea;color:#8e8e93;cursor:not-allowed}.subscription-new__subscribe:active:not(.subscription-new__subscribe--disabled){transform:scale(.98)}.dark-theme .subscription-new{background:#000}.dark-theme .subscription-new__menu{color:#0a84ff}.dark-theme .subscription-new__title{color:#fff}.dark-theme .subscription-new__subtitle{color:#8e8e93}.dark-theme .subscription-new__section-title{color:#fff}.dark-theme .subscription-new__payment-method{background:#2c2c2e}.dark-theme .subscription-new__payment-title{color:#fff}.dark-theme .subscription-new__payment-subtitle{color:#8e8e93}.dark-theme .subscription-new__quantity{background:#2c2c2e}.dark-theme .subscription-new__quantity-label{color:#fff}.dark-theme .subscription-new__quantity-btn{background:#3a3a3c;color:#fff}.dark-theme .subscription-new__quantity-value{color:#fff}.dark-theme .subscription-new__checkbox-container{background:#2c2c2e}.dark-theme .subscription-new__checkbox-label{color:#fff}.dark-theme .subscription-new__checkbox-custom{border-color:#48484a}.dark-theme .subscription-new__checkbox:checked+.subscription-new__checkbox-custom{background:#30d158;border-color:#30d158}.dark-theme .subscription-new__gift-note{color:#8e8e93}.dark-theme .subscription-new__plan{background:#2c2c2e;border-color:#3a3a3c}.dark-theme .subscription-new__plan--selected{border-color:#a7d96c;background:#2c2c2e}.dark-theme .subscription-new__plan-checkmark{border-color:#48484a}.dark-theme .subscription-new__plan--selected .subscription-new__plan-checkmark{background:#a7d96c;border-color:#a7d96c}.dark-theme .subscription-new__plan-name{color:#fff}.dark-theme .subscription-new__plan-total{color:#8e8e93}.dark-theme .subscription-new__plan-price{color:#fff}.dark-theme .subscription-new__promo-wrapper{background:#2c2c2e}.dark-theme .subscription-new__promo-field{color:#fff}.dark-theme .subscription-new__promo-field::placeholder{color:#636366}.dark-theme .subscription-new__benefits{background:#2c2c2e}.dark-theme .subscription-new__benefit:not(:last-child){border-bottom:.5px solid rgba(235,235,245,.12)}.dark-theme .subscription-new__benefit-icon{background:#a7d96c;color:#000}.dark-theme .subscription-new__benefit-text{color:#fff}.dark-theme .subscription-new__about{background:#2c2c2e;color:#fff}.dark-theme .subscription-new__agreement-checkmark{border-color:#48484a}.dark-theme .subscription-new__agreement-checkbox:checked+.subscription-new__agreement-checkmark{background:#a7d96c;border-color:#a7d96c}.dark-theme .subscription-new__subscribe{background:#a7d96c;color:#000}.dark-theme .subscription-new__subscribe--disabled{background:#3a3a3c;color:#8e8e93}.dark-theme .subscription-new__test-warning{background:#3a2e1e;border-color:#ff9f0a;color:#ffd60a}.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}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.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;border-radius:25px}.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;stroke-linecap:round;-webkit-stroke-linecap:round}.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;margin-bottom:20px;text-align:left}.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, #DFDFE1);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);flex-shrink:0}.friend-card__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.friend-card__name{font-size:17px;font-weight:500;color:var(--text-primary, #000);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.friend-card__status{font-size:14px;font-weight:500;white-space:nowrap}.friend-card__status--done{color:#34c759}.friend-card__status--undone{color:#8e8e93}.friend-card__status--failed{color:#ff3b30}.friend-card__status--skipped{color:#ff9500}.dark-theme .friend-card{background:#2c2c2e}.dark-theme .friend-card__name{color:#fff}.dark-theme .friend-card__status--undone{color:#98989d}.friend-card--disabled{cursor:default!important;opacity:.7}.friend-card--disabled:active{cursor:default!important}.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}.habit-detail__edit-btn--locked{opacity:.5;cursor:not-allowed;background:#c7c7cc;border-color:#c7c7cc;color:#8e8e93}.dark-theme .habit-detail__edit-btn--locked{background:#48484a;border-color:#48484a;color:#6e6e73}.hd-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.hd-header__title-section{display:flex;align-items:flex-start;gap:8px;flex:1;min-width:0}.hd-header__emoji{font-size:26px;line-height:1;flex-shrink:0;margin-top:2px}.hd-header__text{flex:1;min-width:0}.hd-header__title{font-size:22px;font-weight:700;margin:0;color:var(--text-primary, #000);word-break:break-word;line-height:1.3}.hd-header__goal{font-size:14px;color:var(--text-secondary, #8E8E93);margin:2px 0 0;word-break:break-word;line-height:1.4}.hd-header__edit-btn{background:none;border:2px solid var(--color-success, #A7D96C);color:var(--color-success, #A7D96C);font-size:15px;font-weight:600;padding:7px 18px;border-radius:20px;cursor:pointer;flex-shrink:0;white-space:nowrap;transition:all .2s ease}.hd-header__edit-btn:hover{background:var(--color-success, #A7D96C);color:#fff}.hd-tabs{display:flex;background:var(--card-bg, #fff);border-radius:14px;padding:4px;margin-bottom:16px;gap:4px}.hd-tabs__btn{flex:1;padding:10px 8px;border:none;background:none;border-radius:10px;font-size:15px;font-weight:500;color:var(--text-tertiary, #8E8E93);cursor:pointer;transition:all .2s ease;white-space:nowrap}.hd-tabs__btn--active{background:var(--bg-primary, #F5F5F7);color:var(--text-primary, #000);font-weight:600}.dark-theme .hd-tabs{background:var(--card-bg, #1C1C1E)}.dark-theme .hd-tabs__btn--active{background:var(--bg-tertiary, #2C2C2E)}.hd-stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:16px}.hd-stat-card{background:var(--card-bg, #fff);border-radius:16px;padding:16px 10px 14px;text-align:center}.hd-stat-circle-wrapper{position:relative;width:min(100px,60%);height:auto;aspect-ratio:1;margin:0 auto 10px}.hd-stat-circle-text{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}.hd-stat-value{font-size:clamp(20px,5vw,28px);font-weight:700;color:var(--text-primary, #000);line-height:1}.hd-stat-total{font-size:clamp(11px,2.5vw,14px);color:var(--text-tertiary, #8E8E93);margin-top:2px;line-height:1}.hd-stat-title{font-size:clamp(13px,3.5vw,15px);font-weight:600;margin:0 0 2px;color:var(--text-primary, #000)}.hd-stat-subtitle{font-size:clamp(10px,2.5vw,12px);color:var(--text-tertiary, #8E8E93);margin:0}.hd-motivation{background:var(--color-success, #A7D96C);border-radius:16px;padding:20px 24px;margin-bottom:12px;text-align:center}.hd-motivation__text{font-size:20px;font-weight:700;color:#1d1d1f;margin:0}.dark-theme .hd-motivation__text{color:#000}.hd-extra-stats{display:flex;gap:12px;margin-bottom:16px}.hd-extra-stat{flex:1;background:var(--card-bg, #fff);border-radius:16px;padding:16px 12px;display:flex;flex-direction:column;align-items:center;gap:2px}.hd-extra-stat__icon{font-size:22px;line-height:1}.hd-extra-stat__value{font-size:28px;font-weight:700;color:var(--text-primary, #000);line-height:1}.hd-extra-stat__label{font-size:12px;color:var(--text-tertiary, #8E8E93);text-align:center}.hd-weekly-card{background:var(--card-bg, #fff);border-radius:16px;padding:16px 16px 14px;margin-bottom:16px}.hd-weekly-card__title{font-size:17px;font-weight:600;margin:0 0 16px;color:var(--text-primary, #000)}.hd-weekly-chart{display:flex;align-items:flex-end;gap:6px}.hd-weekly-chart__col{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px}.hd-weekly-chart__bar-wrap{width:100%;height:64px;display:flex;align-items:flex-end}.hd-weekly-chart__bar{width:100%;height:0;border-radius:6px 6px 0 0;background:var(--bg-tertiary, #E5E5EA);transition:height .45s cubic-bezier(.34,1.2,.64,1);overflow:hidden}.hd-weekly-chart__bar--done{background:var(--color-success, #A7D96C)}.hd-weekly-chart__bar--today-done{box-shadow:0 -4px 12px #a7d96ca6}.hd-weekly-chart__bar--today-pending{background:transparent;border:2px solid var(--color-success, #A7D96C);border-bottom:none;border-radius:6px 6px 0 0;box-sizing:border-box;animation:today-pulse 2s ease-in-out infinite}@keyframes today-pulse{0%,to{border-color:#a7d96c80}50%{border-color:#a7d96c}}.hd-weekly-chart__bar--future{background:var(--bg-tertiary, #E5E5EA);opacity:.45}.hd-weekly-chart__label{font-size:12px;color:var(--text-tertiary, #8E8E93)}.hd-weekly-chart__label--today{font-weight:700;color:var(--text-primary, #000)}.hd-friends-section{margin-bottom:16px}.hd-friends-section__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.hd-friends-section__title{font-size:18px;font-weight:600;margin:0;color:var(--text-primary, #000)}.hd-friends-section__count{font-size:13px;color:var(--text-tertiary, #8E8E93)}.hd-friends-section__empty{font-size:14px;color:var(--text-tertiary, #8E8E93);margin:0 0 16px;line-height:1.5}.hd-members-list{margin-bottom:12px}.hd-btn{padding:15px 20px;border-radius:14px;font-size:16px;font-weight:600;border:none;cursor:pointer;transition:all .2s ease;text-align:center}.hd-btn--full{width:100%;display:block}.hd-btn--primary{background:var(--color-success, #A7D96C);color:#1d1d1f}.hd-btn--primary:hover{background:#95c55d}.hd-btn--danger{background:var(--card-bg, #fff);color:var(--text-primary, #000);border:1px solid var(--border-color, #E5E5EA);margin-bottom:16px}.hd-btn--danger:hover{background:#ffe5e5;color:#ff3b30;border-color:#ff3b30}.hd-btn--punch{font-size:17px;margin-top:4px}.hd-friends-empty{text-align:center;padding:40px 20px}.hd-friends-empty__text{font-size:15px;color:var(--text-tertiary, #8E8E93);margin:0 0 20px;line-height:1.5}.hd-leaderboard-card{background:var(--card-bg, #fff);border-radius:16px;padding:16px;margin-bottom:12px}.hd-leaderboard-card__title{font-size:17px;font-weight:600;margin:0 0 20px;color:var(--text-primary, #000)}.hd-podium{display:flex;align-items:flex-end;justify-content:center;gap:8px;padding-bottom:8px}.hd-podium__item{display:flex;flex-direction:column;align-items:center;gap:4px;flex:1;max-width:100px}.hd-podium__crown{font-size:20px;line-height:1}.hd-podium__item--place1 .hd-podium__crown{visibility:visible}.hd-podium__item--place2 .hd-podium__crown,.hd-podium__item--place3 .hd-podium__crown{visibility:hidden;height:24px}.hd-podium__avatar{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px;font-weight:700;overflow:hidden;flex-shrink:0}.hd-podium__item--place1 .hd-podium__avatar{width:60px;height:60px;font-size:22px}.hd-podium__avatar-img{width:100%;height:100%;object-fit:cover;border-radius:50%}.hd-podium__name{font-size:13px;font-weight:500;color:var(--text-primary, #000);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:90px}.hd-podium__platform{width:100%;border-radius:8px 8px 0 0;background:var(--bg-tertiary, #E5E5EA)}.hd-podium__platform--place1{height:64px;background:#c0b6f2}.hd-podium__platform--place2{height:44px;background:#d4d4e4}.hd-podium__platform--place3{height:32px;background:#e8c999}.hd-podium__score{font-size:14px;font-weight:600;color:var(--text-primary, #000);margin-top:4px}.hd-friends-card{background:var(--card-bg, #fff);border-radius:16px;padding:16px;margin-bottom:12px}.hd-friends-card__title{font-size:17px;font-weight:600;margin:0 0 14px;color:var(--text-primary, #000)}.hd-friend-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border-color, #F2F2F7)}.hd-friend-row:last-child{border-bottom:none;padding-bottom:0}.hd-friend-row__avatar{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;font-weight:700;flex-shrink:0;overflow:hidden}.hd-friend-row__avatar-img{width:100%;height:100%;object-fit:cover;border-radius:50%}.hd-friend-row__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.hd-friend-row__name{font-size:16px;font-weight:500;color:var(--text-primary, #000);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hd-friend-row__progress{font-size:13px;color:var(--text-tertiary, #8E8E93)}.hd-friend-row__streak{font-size:15px;font-weight:600;color:var(--text-secondary, #FF9500);flex-shrink:0}.hd-comparison-card{background:var(--card-bg, #fff);border-radius:16px;padding:16px;margin-bottom:16px}.hd-comparison-card__title{font-size:17px;font-weight:600;margin:0 0 14px;color:var(--text-primary, #000)}.hd-comparison-row{display:flex;align-items:center;gap:10px;margin-bottom:10px}.hd-comparison-row:last-child{margin-bottom:0}.hd-comparison-row__avatar{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px;font-weight:700;flex-shrink:0;overflow:hidden}.hd-comparison-row__avatar--me{background:var(--bg-tertiary, #E5E5EA);font-size:16px}.hd-comparison-row__avatar-img{width:100%;height:100%;object-fit:cover;border-radius:50%}.hd-comparison-row__content{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.hd-comparison-row__name{font-size:13px;color:var(--text-secondary, #1D1D1F);font-weight:500}.hd-comparison-row__bar-track{height:8px;background:var(--bg-tertiary, #F2F2F7);border-radius:4px;overflow:hidden}.hd-comparison-row__bar{height:100%;border-radius:4px;transition:width .5s ease;min-width:4px}.hd-comparison-row__bar--me{background:var(--color-success, #A7D96C)}.hd-comparison-row__score{font-size:13px;font-weight:600;color:var(--text-tertiary, #8E8E93);flex-shrink:0;min-width:40px;text-align:right}.dark-theme .hd-stat-card,.dark-theme .hd-extra-stat,.dark-theme .hd-weekly-card,.dark-theme .hd-leaderboard-card,.dark-theme .hd-friends-card,.dark-theme .hd-comparison-card{background:var(--card-bg, #1C1C1E)}.dark-theme .hd-stat-value,.dark-theme .hd-stat-title,.dark-theme .hd-extra-stat__value,.dark-theme .hd-weekly-card__title,.dark-theme .hd-leaderboard-card__title,.dark-theme .hd-friends-card__title,.dark-theme .hd-comparison-card__title,.dark-theme .hd-friends-section__title,.dark-theme .hd-header__title,.dark-theme .hd-podium__name,.dark-theme .hd-podium__score,.dark-theme .hd-friend-row__name,.dark-theme .hd-comparison-row__name{color:#fff}.dark-theme .hd-weekly-chart__bar,.dark-theme .hd-comparison-row__bar-track{background:#3a3a3c}.dark-theme .hd-friend-row{border-bottom-color:#2c2c2e}.dark-theme .hd-podium__platform--place2{background:#3a3a3c}.dark-theme .hd-btn--danger{background:#1c1c1e;color:#fff;border-color:#3a3a3c}.dark-theme .hd-btn--danger:hover{background:#ff3b3026;color:#ff453a;border-color:#ff453a}@media(max-width:400px){.habit-detail__content{padding:16px}.hd-stats-grid{gap:10px}.hd-stat-card{padding:14px 8px 12px}.hd-header__title{font-size:20px}.hd-header__edit-btn{padding:6px 14px;font-size:14px}}@media(max-width:350px){.habit-detail__content{padding:12px}.hd-stats-grid{gap:8px}.hd-stat-card{padding:12px 6px 10px}.hd-header__title{font-size:18px}.hd-weekly-chart{gap:4px}}.hf-member{padding:14px 0;border-bottom:1px solid var(--border-color, rgba(60,60,67,.08))}.hf-member:last-child{border-bottom:none}.hf-member__header{display:flex;align-items:center;gap:10px;margin-bottom:10px}.hf-member__avatar{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;color:#fff;flex-shrink:0;overflow:hidden}.hf-member__avatar-img{width:100%;height:100%;object-fit:cover}.hf-member__name-wrap{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.hf-member__name{font-size:15px;font-weight:600;color:var(--text-primary, #000);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hf-member__streak{font-size:15px;font-weight:700;color:var(--text-primary, #000);white-space:nowrap}.hf-status{display:inline-block;font-size:11px;font-weight:600;padding:2px 7px;border-radius:20px;width:fit-content}.hf-status--done{background:#34c75926;color:#34c759}.hf-status--failed{background:#ff3b301f;color:#ff3b30}.hf-status--skipped{background:#ff95001f;color:#ff9500}.hf-status--pending{background:#8e8e931f;color:#8e8e93}.hf-member__stats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.hf-chip{background:var(--bg-secondary, #F2F2F7);border-radius:10px;padding:8px 6px;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center}.hf-chip__label{font-size:10px;color:var(--text-tertiary, #8E8E93);font-weight:500;line-height:1.2}.hf-chip__value{font-size:14px;font-weight:700;color:var(--text-primary, #000);line-height:1.2}.hf-chip__total{font-size:11px;font-weight:400;color:var(--text-tertiary, #8E8E93)}.dark-theme .hf-chip{background:#ffffff12}.fsh-overlay{position:fixed;inset:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:3000;animation:fshFadeIn .3s ease-out;padding:20px}.fsh-overlay--hiding{animation:fshFadeOut .3s ease-out forwards}.fsh-card{background:#fff;border-radius:22px;padding:22px 20px 18px;width:100%;max-width:340px;box-shadow:0 14px 40px #0000002e,0 2px 10px #00000014;animation:fshSlideUp .35s cubic-bezier(.34,1.56,.64,1)}.fsh-card__title{font-size:19px;font-weight:700;color:#1c1c1d;text-align:center;margin:0 0 18px}.fsh-rows{display:flex;flex-direction:column;gap:10px}.fsh-row{display:flex;align-items:center;gap:14px;background:#f5f5f7;border-radius:14px;padding:12px 14px}.fsh-row__icon{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;color:#fff;flex-shrink:0}.fsh-row__icon--left{background:#ff6b6b}.fsh-row__icon--right{background:#ff3b30}.fsh-row__text{font-size:14px;color:#3c3c43;line-height:1.45;margin:0}.fsh-row__action{color:#1c1c1d}.fsh-divider{height:1px;background:#e5e5ea;margin:16px 0 14px}.fsh-checkbox{display:flex;align-items:center;gap:10px;cursor:pointer;margin-bottom:16px;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}.fsh-checkbox__box{width:22px;height:22px;border-radius:6px;border:2px solid #C7C7CC;background:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .18s,border-color .18s}.fsh-checkbox__box--checked{background:#a7d96c;border-color:#a7d96c}.fsh-checkbox__box svg{width:12px;height:10px}.fsh-checkbox__label{font-size:14px;color:#3c3c43;line-height:1.4}.fsh-card__btn{width:100%;background:#a7d96c;color:#1d1d1f;border:none;border-radius:14px;padding:14px;font-size:16px;font-weight:600;cursor:pointer;transition:background .2s,transform .15s;-webkit-tap-highlight-color:transparent;box-shadow:0 2px 10px #a7d96c59}.fsh-card__btn:active{transform:scale(.97)}@keyframes fshFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fshFadeOut{0%{opacity:1}to{opacity:0}}@keyframes fshSlideUp{0%{opacity:0;transform:translateY(24px) scale(.95)}60%{transform:translateY(-4px) scale(1.01)}to{opacity:1;transform:translateY(0) scale(1)}}.dark-theme .fsh-card{background:#2c2c2e;box-shadow:0 14px 40px #00000073,0 2px 10px #0000004d}.dark-theme .fsh-card__title{color:#fff}.dark-theme .fsh-row{background:#3a3a3c}.dark-theme .fsh-row__text{color:#ebebf5}.dark-theme .fsh-row__action{color:#fff}.dark-theme .fsh-divider{background:#48484a}.dark-theme .fsh-checkbox__label{color:#ebebf5}.dark-theme .fsh-checkbox__box{background:#3a3a3c;border-color:#636366}.dark-theme .fsh-checkbox__box--checked{background:#a7d96c;border-color:#a7d96c}.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}.day-period-section{margin-bottom:24px}.day-period-header{display:flex;align-items:center;gap:8px;margin-bottom:12px;padding:0 4px}.day-period-icon{font-size:20px;line-height:1}.day-period-title{font-size:18px;font-weight:700;color:#1d1d1f;margin:0;flex:1;transition:color .3s ease}.day-period-count{font-size:14px;font-weight:600;color:#8e8e93;background:#f2f2f7;padding:4px 12px;border-radius:12px;transition:background-color .3s ease,color .3s ease}.day-period-habits{display:flex;flex-direction:column;gap:6px}.dark-theme .day-period-title{color:#fff}.dark-theme .day-period-count{background:#2c2c2e;color:#8e8e93}@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%}.fab{position:fixed;bottom:24px;right:24px;width:56px;height:56px;border-radius:50%;background:#a7d96c;color:#1d1d1f;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:9999;cursor:pointer;border:none}.fab:hover{transform:scale(1.05);box-shadow:0 6px 16px #0003}.fab:active{transform:scale(.95)}@media(max-width:430px){.fab{right:20px;bottom:20px}}.today__tabs{display:flex;gap:8px;padding:8px 16px 0;margin-bottom:4px}.today__tab{flex:1;padding:8px 12px;border:none;border-radius:12px;background:#f0f0f0;color:#666;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.today__tab--active{background:#a7d96c;color:#1d1d1f;font-weight:600;box-shadow:0 2px 8px #a7d96c66}.today__tab:active{transform:scale(.97)}.today__special-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 24px;gap:12px;text-align:center}.today__special-empty-icon{font-size:48px;line-height:1;margin:0}.today__special-empty-title{font-size:18px;font-weight:600;color:#1d1d1f;margin:0}.today__special-empty-desc{font-size:14px;color:#8e8e93;margin:0;max-width:240px;line-height:1.4}.today__special-empty-btn{margin-top:8px;padding:12px 28px;background:linear-gradient(135deg,#a7d96c,#7bc443);color:#1d1d1f;border:none;border-radius:14px;font-size:15px;font-weight:600;cursor:pointer;box-shadow:0 4px 12px #a7d96c59;transition:all .2s ease}.today__special-empty-btn:active{transform:scale(.97)}.dark-theme .today__tab{background:#2c2c2e;color:#aeaeb2}.dark-theme .today__tab--active{background:#a7d96c;color:#1d1d1f}.dark-theme .today__special-empty-title{color:#f2f2f7}.dark-theme .today__special-empty-desc{color:#636366}.dark-theme .fab{background:#a7d96c;color:#1d1d1f}.sh-overlay{position:fixed;inset:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:3000;animation:shFadeIn .3s ease-out;padding:20px}.sh-overlay--hiding{animation:shFadeOut .3s ease-out forwards}.sh-card{background:#fff;border-radius:22px;padding:22px 20px 18px;width:100%;max-width:340px;box-shadow:0 14px 40px #0000002e,0 2px 10px #00000014;animation:shSlideUp .35s cubic-bezier(.34,1.56,.64,1)}.sh-card__title{font-size:19px;font-weight:700;color:#1c1c1d;text-align:center;margin:0 0 18px}.sh-rows{display:flex;flex-direction:column;gap:10px}.sh-row{display:flex;align-items:center;gap:14px;background:#f5f5f7;border-radius:14px;padding:12px 14px}.sh-row__icon{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;color:#fff;flex-shrink:0}.sh-row__icon--left{background:#34c759}.sh-row__icon--right{background:#ff9500}.sh-row__text{font-size:14px;color:#3c3c43;line-height:1.45;margin:0}.sh-row__action{color:#1c1c1d}.sh-divider{height:1px;background:#e5e5ea;margin:16px 0 14px}.sh-checkbox{display:flex;align-items:center;gap:10px;cursor:pointer;margin-bottom:16px;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}.sh-checkbox__box{width:22px;height:22px;border-radius:6px;border:2px solid #C7C7CC;background:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .18s,border-color .18s}.sh-checkbox__box--checked{background:#a7d96c;border-color:#a7d96c}.sh-checkbox__box svg{width:12px;height:10px}.sh-checkbox__label{font-size:14px;color:#3c3c43;line-height:1.4}.sh-card__btn{width:100%;background:#a7d96c;color:#1d1d1f;border:none;border-radius:14px;padding:14px;font-size:16px;font-weight:600;cursor:pointer;transition:background .2s,transform .15s;-webkit-tap-highlight-color:transparent;box-shadow:0 2px 10px #a7d96c59}.sh-card__btn:active{transform:scale(.97)}@keyframes shFadeIn{0%{opacity:0}to{opacity:1}}@keyframes shFadeOut{0%{opacity:1}to{opacity:0}}@keyframes shSlideUp{0%{opacity:0;transform:translateY(24px) scale(.95)}60%{transform:translateY(-4px) scale(1.01)}to{opacity:1;transform:translateY(0) scale(1)}}.dark-theme .sh-card{background:#2c2c2e;box-shadow:0 14px 40px #00000073,0 2px 10px #0000004d}.dark-theme .sh-card__title{color:#fff}.dark-theme .sh-row{background:#3a3a3c}.dark-theme .sh-row__text{color:#ebebf5}.dark-theme .sh-row__action{color:#fff}.dark-theme .sh-divider{background:#48484a}.dark-theme .sh-checkbox__label{color:#ebebf5}.dark-theme .sh-checkbox__box{background:#3a3a3c;border-color:#636366}.dark-theme .sh-checkbox__box--checked{background:#a7d96c;border-color:#a7d96c}.swipe-guide{position:fixed;inset:0;z-index:9998;pointer-events:none;animation:sgFadeIn .3s ease-out}.swipe-guide--hiding{animation:sgFadeOut .4s ease-in forwards}.sg-panel{position:fixed;background:#0009;pointer-events:all;z-index:9998}.sg-panel--top{top:0;left:0;right:0}.sg-panel--bottom{left:0;right:0;bottom:0}.sg-panel--left{left:0}.sg-panel--right{right:0}.swipe-guide__wiggle-frame{position:fixed;border-radius:18px;border:2.5px dashed rgba(255,255,255,.6);z-index:9999;pointer-events:none;animation:sgWiggle 1.5s ease-in-out infinite}.swipe-guide__hand-container{position:fixed;z-index:10000;pointer-events:none;animation:sgHandSwipe 2s cubic-bezier(.4,0,.2,1) infinite}.swipe-guide__hand{display:flex;align-items:center;justify-content:center;filter:drop-shadow(0 4px 12px rgba(0,0,0,.4))}.swipe-guide__hand-emoji{font-size:40px;display:block;transform:rotate(-20deg)}.swipe-guide__label{position:fixed;z-index:10000;display:flex;align-items:center;justify-content:center;gap:8px;pointer-events:none;animation:sgLabelPulse 2s ease-in-out infinite}.swipe-guide__label-arrow{display:flex;align-items:center;animation:sgArrowSlide 2s ease-in-out infinite}.swipe-guide__label-arrow span{font-size:22px;font-weight:800;color:#10b981;text-shadow:0 0 12px rgba(16,185,129,.5)}.swipe-guide__label-text{font-size:15px;font-weight:700;color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.5);white-space:nowrap}.swipe-guide__skip{position:fixed;bottom:48px;left:50%;transform:translate(-50%);z-index:10001;pointer-events:all;background:#ffffff26;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.3);color:#fff;font-size:15px;font-weight:600;padding:12px 36px;border-radius:24px;cursor:pointer;transition:all .2s}.swipe-guide__skip:active{transform:translate(-50%) scale(.95);background:#ffffff40}@keyframes sgFadeIn{0%{opacity:0}to{opacity:1}}@keyframes sgFadeOut{0%{opacity:1}to{opacity:0}}@keyframes sgWiggle{0%,to{transform:translate(0)}20%{transform:translate(-8px)}40%{transform:translate(4px)}60%{transform:translate(-4px)}80%{transform:translate(2px)}}@keyframes sgHandSwipe{0%{transform:translate(0);opacity:.7}10%{opacity:1}50%{transform:translate(-100px);opacity:1}60%{opacity:.5}70%{transform:translate(0);opacity:0}to{transform:translate(0);opacity:.7}}@keyframes sgArrowSlide{0%,to{transform:translate(0);opacity:.6}50%{transform:translate(-10px);opacity:1}}@keyframes sgLabelPulse{0%,to{opacity:.8}50%{opacity:1}}.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,.form-section-rw2{margin-bottom:16px;position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px}.form-label{display:block}.form-label-title{display:block;font-size:17px;font-weight:600;color:#000;margin-bottom:12px;white-space:nowrap}.form-section-row .form-label-title,.form-section-rw2 .form-label-title{margin-bottom:0;min-width:fit-content;white-space:nowrap;flex-shrink:0}.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{flex:0 0 auto;min-width:100px;max-width:160px;padding:12px 16px;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}.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:375px){.dropdown-button{min-width:90px;max-width:140px;padding:10px 12px;font-size:14px}.form-section-row,.form-section-rw2{gap:6px}}@media(max-width:320px){.dropdown-button{min-width:80px;max-width:120px;padding:10px 8px;font-size:13px}.form-section-row,.form-section-rw2{gap:4px}.form-label-title{font-size:15px}.category-item{padding:4px 12px}.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}}.fab-hint-overlay-wrapper{position:fixed;inset:0;z-index:9998;animation:fadeIn .4s ease-out;pointer-events:auto}.fab-hint-cutout-circle{position:fixed;bottom:24px;right:24px;width:56px;height:56px;border-radius:50%;pointer-events:none;box-shadow:0 0 0 9999px #000000a6}.fab-hint-container{position:relative;width:100%;max-width:500px;height:100%;margin:0 auto;display:flex;flex-direction:column;justify-content:flex-end;pointer-events:none}.fab-hint-bubble{position:absolute;bottom:100px;right:16px;background:#fff;border-radius:20px;padding:16px 20px;max-width:280px;box-shadow:0 8px 24px #00000026,0 2px 8px #00000014;animation:bubbleAppear .6s cubic-bezier(.34,1.56,.64,1);pointer-events:auto}.fab-hint-bubble:after{content:"";position:absolute;bottom:-12px;right:28px;width:0;height:0;border-left:16px solid transparent;border-right:0px solid transparent;border-top:16px solid #FFFFFF;filter:drop-shadow(0 4px 4px rgba(0,0,0,.08))}.fab-hint-text{font-size:16px;line-height:1.5;color:#1d1d1f;margin:0;font-weight:500;text-align:left}.fab-hint-pulse-container{position:fixed;bottom:24px;right:24px;width:56px;height:56px;border-radius:50%;pointer-events:none;z-index:10000}.fab-hint-pulse{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;border-radius:50%;pointer-events:none}.fab-hint-pulse:before,.fab-hint-pulse:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;border-radius:50%;border:3px solid #A7D96C;animation:pulseRing 2s ease-in-out infinite}.fab-hint-pulse:after{animation-delay:1s}.fab-hint-button{margin-top:12px;width:100%;background:#a7d96c;color:#1d1d1f;border:none;border-radius:12px;padding:14px 20px;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 8px #a7d96c4d}.fab-hint-button:hover{background:#95c55d;box-shadow:0 4px 12px #a7d96c66;transform:translateY(-2px)}.fab-hint-button:active{transform:scale(.96) translateY(0);box-shadow:0 2px 8px #a7d96c4d}@keyframes bubbleAppear{0%{opacity:0;transform:translateY(20px) scale(.9)}60%{transform:translateY(-5px) scale(1.02)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes pulseRing{0%{transform:translate(-50%,-50%) scale(1);opacity:1}50%{transform:translate(-50%,-50%) scale(1.3);opacity:.5}to{transform:translate(-50%,-50%) scale(1.6);opacity:0}}@media(max-width:430px){.fab-hint-cutout-circle{right:20px;bottom:20px}.fab-hint-bubble{right:16px;bottom:95px;max-width:calc(100vw - 110px);padding:16px 18px}.fab-hint-bubble:after{right:24px}.fab-hint-text{font-size:15px}.fab-hint-button{padding:13px 18px;font-size:15px}.fab-hint-pulse-container{right:20px;bottom:20px}}@media(max-width:375px){.fab-hint-bubble{max-width:calc(100vw - 90px);padding:14px 16px;bottom:90px}.fab-hint-bubble:after{right:20px}.fab-hint-text{font-size:14px}.fab-hint-button{padding:12px 16px;font-size:14px}}.dark-theme .fab-hint-cutout-circle{box-shadow:0 0 0 9999px #000000bf}.dark-theme .fab-hint-bubble{background:#2c2c2e;box-shadow:0 8px 24px #0006,0 2px 8px #0003}.dark-theme .fab-hint-bubble:after{border-top-color:#2c2c2e;filter:drop-shadow(0 4px 4px rgba(0,0,0,.2))}.dark-theme .fab-hint-text{color:#fff}.dark-theme .fab-hint-button{background:#a7d96c;color:#1d1d1f}.dark-theme .fab-hint-button:hover{background:#95c55d}.dark-theme .fab-hint-pulse:before,.dark-theme .fab-hint-pulse:after{border-color:#a7d96c}.wh-overlay{position:fixed;inset:0;z-index:9997;background:transparent;pointer-events:auto;animation:whFadeIn .3s ease-out}.wh-spotlight{position:fixed;z-index:9998;pointer-events:none;box-shadow:0 0 0 9999px #000000a6;outline:2.5px solid rgba(167,217,108,.7);outline-offset:1px;animation:whFadeIn .3s ease-out;display:flex;align-items:center;justify-content:center;overflow:visible}.wh-swipe{display:flex;align-items:center;gap:10px;animation:whSwipeSlide 1.8s ease-in-out infinite;pointer-events:none}.wh-swipe__arrow{font-size:30px;font-weight:700;color:#a7d96c;line-height:1;text-shadow:0 0 8px rgba(167,217,108,.6)}.wh-swipe__arrow--left{animation:whArrowLeft 1.8s ease-in-out infinite}.wh-swipe__arrow--right{animation:whArrowRight 1.8s ease-in-out infinite}.wh-swipe__track{display:flex;align-items:center;gap:5px}.wh-swipe__dot{width:6px;height:6px;border-radius:50%;background:#a7d96ce6;animation:whDotPulse 1.8s ease-in-out infinite}.wh-swipe__dot:nth-child(1){animation-delay:0s}.wh-swipe__dot:nth-child(2){animation-delay:.2s}.wh-swipe__dot:nth-child(3){animation-delay:.4s}.wh-bubble{position:fixed;left:16px;right:16px;z-index:9999;background:#fff;border-radius:20px;padding:18px 20px 16px;box-shadow:0 10px 32px #0000002e,0 2px 10px #00000014;pointer-events:auto;animation:whBubbleIn .5s cubic-bezier(.34,1.56,.64,1)}.wh-bubble__arrow{position:absolute;top:-11px;left:50%;transform:translate(-50%);width:0;height:0;border-left:13px solid transparent;border-right:13px solid transparent;border-bottom:13px solid #ffffff;filter:drop-shadow(0 -3px 3px rgba(0,0,0,.06))}.wh-bubble__text{font-size:15px;line-height:1.55;color:#1d1d1f;margin:0 0 14px;font-weight:500;text-align:center}.wh-bubble__btn{width:100%;background:#a7d96c;color:#1d1d1f;border:none;border-radius:14px;padding:14px 20px;font-size:16px;font-weight:600;cursor:pointer;transition:background .2s,transform .15s,box-shadow .2s;box-shadow:0 2px 10px #a7d96c59;-webkit-tap-highlight-color:transparent}.wh-bubble__btn:active{transform:scale(.97);box-shadow:0 1px 6px #a7d96c4d}@keyframes whFadeIn{0%{opacity:0}to{opacity:1}}@keyframes whBubbleIn{0%{opacity:0;transform:translateY(-14px) scale(.94)}60%{transform:translateY(4px) scale(1.01)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes whSwipeSlide{0%{transform:translate(0)}30%{transform:translate(-14px)}70%{transform:translate(14px)}to{transform:translate(0)}}@keyframes whArrowLeft{0%,to{opacity:.5}30%{opacity:1}70%{opacity:.3}}@keyframes whArrowRight{0%,to{opacity:.5}30%{opacity:.3}70%{opacity:1}}@keyframes whDotPulse{0%,to{transform:scale(1);opacity:.6}50%{transform:scale(1.4);opacity:1}}.dark-theme .wh-spotlight{box-shadow:0 0 0 9999px #000000c7}.dark-theme .wh-bubble{background:#2c2c2e;box-shadow:0 10px 32px #00000073,0 2px 10px #0000004d}.dark-theme .wh-bubble__arrow{border-bottom-color:#2c2c2e;filter:drop-shadow(0 -3px 4px rgba(0,0,0,.25))}.dark-theme .wh-bubble__text{color:#fff}.dark-theme .wh-bubble__btn{background:#a7d96c;color:#1d1d1f}@media(max-width:430px){.wh-bubble{padding:16px 18px 14px}.wh-bubble__text{font-size:14px;margin-bottom:12px}.wh-bubble__btn{padding:13px 18px;font-size:15px}}@media(max-width:375px){.wh-bubble{padding:14px 16px 13px}.wh-bubble__text{font-size:13px}.wh-bubble__btn{padding:12px 16px;font-size:14px}}.ahm-backdrop{position:fixed;inset:0;z-index:9997;background:#00000040;pointer-events:none;opacity:0;transition:opacity .2s ease}.ahm-backdrop--visible{pointer-events:all;opacity:1}.ahm-container{position:fixed;bottom:94px;right:24px;z-index:9998;display:flex;flex-direction:column;align-items:flex-end;gap:10px;pointer-events:none}.ahm-container--open{pointer-events:all}.ahm-row{display:flex;align-items:center;gap:10px;opacity:0;transform:translateY(16px) scale(.88);transition:opacity .26s cubic-bezier(.34,1.56,.64,1),transform .26s cubic-bezier(.34,1.56,.64,1)}.ahm-row--custom{transition-delay:50ms}.ahm-row--special{transition-delay:0ms}.ahm-row--visible{opacity:1;transform:translateY(0) scale(1)}.ahm-label{background:#fff;color:#1c1c1e;font-size:14px;font-weight:600;padding:9px 16px;border-radius:22px;box-shadow:0 4px 18px #00000021;white-space:nowrap;-webkit-user-select:none;user-select:none}.ahm-btn{width:52px;height:52px;border-radius:50%;border:none;display:flex;align-items:center;justify-content:center;font-size:22px;cursor:pointer;box-shadow:0 4px 16px #00000026;transition:transform .15s ease,box-shadow .15s ease;flex-shrink:0}.ahm-btn:active{transform:scale(.9);box-shadow:0 2px 8px #00000026}.ahm-btn--custom{background:#fff0f3}.ahm-btn--special{background:#fffbe6}.ahm-sparkle{font-size:20px;color:#f59e0b;font-style:normal}.fab--open{transform:rotate(45deg)!important;background:#ff6b6b!important}.shop{min-height:100vh;background:#f2f2f7;padding-bottom:32px;overflow-y:auto}.shop__header{padding:24px 20px 8px}.shop__title{font-size:28px;font-weight:800;color:#1c1c1e;margin:0;letter-spacing:-.5px}.shop__search-wrap{position:relative;margin:10px 16px 0}.shop__search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);pointer-events:none;flex-shrink:0}.shop__search{width:100%;padding:12px 40px 12px 42px;border-radius:14px;border:none;background:#fff;font-size:16px;color:#1c1c1e;outline:none;box-sizing:border-box;-webkit-appearance:none}.shop__search::placeholder{color:#c7c7cc}.shop__search-clear{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;font-size:22px;color:#c7c7cc;cursor:pointer;padding:2px 4px;line-height:1}.shop__filters{display:flex;gap:8px;padding:14px 16px 18px}.shop__filter-pill{padding:7px 20px;border-radius:24px;border:1.5px solid #ddd;background:#fff;font-size:14px;font-weight:500;color:#555;cursor:pointer;transition:background .15s,color .15s,border-color .15s;white-space:nowrap;-webkit-tap-highlight-color:transparent}.shop__filter-pill--active{background:#4caf50;border-color:#4caf50;color:#fff;font-weight:600}.shop__grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:0 16px}.shop__loader{display:flex;justify-content:center;margin-top:80px}.shop__empty{text-align:center;margin-top:80px}.shop__empty-icon{font-size:48px;margin-bottom:12px}.shop__empty-text{font-size:16px;color:#8e8e93}.pack-card{background:#fff;border-radius:20px;border:none;padding:0;overflow:hidden;text-align:left;cursor:pointer;box-shadow:0 2px 10px #00000012;transition:transform .15s,box-shadow .15s;width:100%;-webkit-tap-highlight-color:transparent;display:flex;flex-direction:column}.pack-card:active{transform:scale(.96);box-shadow:0 1px 4px #00000014}.pack-card--owned{box-shadow:0 0 0 2.5px #4caf50,0 2px 10px #00000012}.pack-card__img-wrap{position:relative;width:100%;aspect-ratio:1 / 1;overflow:hidden;display:flex;align-items:center;justify-content:center;flex-shrink:0}.pack-card__img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block}.pack-card__img-placeholder{font-size:52px;line-height:1}.pack-card__owned-badge{position:absolute;top:8px;right:8px;background:#ffffffe0;color:#4caf50;font-size:12px;font-weight:800;width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.pack-card__info{padding:10px 13px 13px;background:#fff;flex:1;display:flex;flex-direction:column;gap:0}.pack-card__name{font-size:14px;font-weight:700;color:#1c1c1e;margin:0 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}.pack-card__desc{font-size:12px;color:#8e8e93;margin:0 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}.pack-card__price-row{display:flex;align-items:center;gap:5px;margin-top:auto}.pack-card__price-free,.pack-card__price-val{font-size:14px;font-weight:700;color:#1c1c1e}.pack-card__price-old{font-size:12px;color:#aaa;text-decoration:line-through}.dark-theme .shop{background:#1c1c1e}.dark-theme .shop__title{color:#fff}.dark-theme .shop__search-icon circle,.dark-theme .shop__search-icon path{stroke:#636366}.dark-theme .shop__search{background:#2c2c2e;color:#fff}.dark-theme .shop__search::placeholder{color:#636366}.dark-theme .shop__search-clear{color:#636366}.dark-theme .shop__filter-pill{background:#2c2c2e;border-color:#38383a;color:#8e8e93}.dark-theme .shop__filter-pill--active{background:#a7d96c;border-color:#a7d96c;color:#000}.dark-theme .shop__empty-text{color:#636366}.dark-theme .pack-card{background:#2c2c2e;box-shadow:0 2px 10px #0000004d}.dark-theme .pack-card:active{box-shadow:0 1px 4px #00000059}.dark-theme .pack-card--owned{box-shadow:0 0 0 2.5px #a7d96c,0 2px 10px #0000004d}.dark-theme .pack-card__owned-badge{background:#2c2c2ee6;color:#a7d96c}.dark-theme .pack-card__info{background:#2c2c2e}.dark-theme .pack-card__name{color:#fff}.dark-theme .pack-card__desc{color:#8e8e93}.dark-theme .pack-card__price-free{color:#a7d96c}.dark-theme .pack-card__price-val{color:#fff}.dark-theme .pack-card__price-old{color:#636366}.pd{min-height:100vh;background:#f2f2f7;padding-bottom:40px;overflow-y:auto;overflow-x:hidden}.pd--loading{display:flex;align-items:center;justify-content:center}.pd__hero{width:100%;padding:36px 20px 28px;text-align:center;display:flex;flex-direction:column;align-items:center;box-sizing:border-box}.pd__avatar-wrap{width:120px;height:120px;border-radius:50%;overflow:hidden;margin-bottom:16px;background:#fff6;box-shadow:0 0 0 4px #ffffff8c;flex-shrink:0}.pd__avatar{width:100%;height:100%;object-fit:cover;object-position:top center}.pd__avatar-ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:52px}.pd__name{font-size:24px;font-weight:800;color:#1c1c1e;margin:0 0 4px;letter-spacing:-.3px}.pd__profession{font-size:15px;color:#555;margin:0}.pd__share-btn{display:inline-flex;align-items:center;gap:6px;margin-top:12px;padding:8px 18px;border-radius:20px;border:none;background:#ffffff59;color:#1c1c1e;font-size:14px;font-weight:600;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:opacity .15s,transform .12s}.pd__share-btn:active{transform:scale(.95);opacity:.8}.pd__body{padding:16px 16px 0}.pd__stats{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-bottom:14px}.pd__stat{background:#fff;border-radius:14px;padding:12px 10px 13px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;box-shadow:0 1px 3px #00000012}.pd__stat-label{font-size:11px;color:#aaa;font-weight:500}.pd__stat-val{font-size:15px;font-weight:700;color:#1c1c1e}.pd__cta{display:block;width:100%;padding:17px;border-radius:16px;border:none;font-size:16px;font-weight:700;cursor:pointer;margin-bottom:18px;transition:opacity .15s,transform .12s;-webkit-tap-highlight-color:transparent}.pd__cta:active{transform:scale(.97)}.pd__cta--buy{background:#4caf50;color:#fff}.pd__cta--buy:disabled{opacity:.6;cursor:not-allowed}.pd__cta--owned{background:#c8e6c9;color:#4caf50;cursor:default}.pd__error{color:#ef4444;font-size:14px;text-align:center;margin-bottom:12px}.pd__bio{margin-bottom:20px}.pd__bio-text{font-size:14px;line-height:1.65;color:#3a3a3c;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}.pd__learn-more{font-size:14px;font-weight:600;color:#4caf50;text-decoration:none;display:inline-block}.pd__section{margin-bottom:20px}.pd__section--last{margin-bottom:12px}.pd__section-title{font-size:20px;font-weight:700;color:#1c1c1e;margin:0 0 12px}.pd__period{margin-bottom:12px}.pd__period-label{font-size:13px;font-weight:600;color:#aaa;text-transform:uppercase;letter-spacing:.5px;margin:0 0 8px}.pd__habit-list{display:flex;flex-direction:column;gap:8px}.pd__habit{display:flex;align-items:center;gap:12px;background:#fff;border-radius:14px;padding:13px 14px;box-shadow:0 1px 3px #0000000f}.pd__habit--blur{filter:blur(5px);-webkit-user-select:none;user-select:none;pointer-events:none}.pd__habit-icon{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0}.pd__habit-info{display:flex;flex-direction:column;gap:3px;min-width:0}.pd__habit-name{font-size:15px;font-weight:600;color:#1c1c1e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pd__habit-goal{font-size:12px;color:#8e8e93}.pd__ach-list{display:flex;flex-direction:column;gap:10px}.pd__ach{display:flex;align-items:center;gap:12px;border-radius:16px;padding:13px 14px}.pd__ach-icon{width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0;color:#fff}.pd__ach-img{width:28px;height:28px;object-fit:cover;border-radius:50%}.pd__ach-info{flex:1;display:flex;flex-direction:column;gap:3px;min-width:0}.pd__ach-title{font-size:15px;font-weight:700;color:#1c1c1e}.pd__ach-count{font-weight:700;color:#555}.pd__ach-desc{font-size:13px;color:#666}.pd__attribution{font-size:12px;color:#bbb;text-align:center;margin:8px 0 0;padding-bottom:8px}.dark-theme .pd{background:#1c1c1e}.dark-theme .pd__name{color:#fff}.dark-theme .pd__profession{color:#8e8e93}.dark-theme .pd__share-btn{background:#ffffff26;color:#fff}.dark-theme .pd__avatar-wrap{background:#2c2c2e80;box-shadow:0 0 0 4px #ffffff26}.dark-theme .pd__stat{background:#2c2c2e;box-shadow:0 1px 3px #0000004d}.dark-theme .pd__stat-label{color:#636366}.dark-theme .pd__stat-val{color:#fff}.dark-theme .pd__cta--buy{background:#a7d96c;color:#000}.dark-theme .pd__cta--owned{background:#1e3a1e;color:#a7d96c}.dark-theme .pd__bio-text{color:#ebebf5}.dark-theme .pd__learn-more{color:#a7d96c}.dark-theme .pd__section-title{color:#fff}.dark-theme .pd__period-label{color:#636366}.dark-theme .pd__habit{background:#2c2c2e;box-shadow:0 1px 3px #0000004d}.dark-theme .pd__habit-name{color:#fff}.dark-theme .pd__habit-goal{color:#636366}.dark-theme .pd__ach-title{color:#fff}.dark-theme .pd__ach-count,.dark-theme .pd__ach-desc{color:#8e8e93}.dark-theme .pd__error{color:#ff453a}.dark-theme .pd__attribution{color:#636366}.shd-achievements{margin-bottom:20px}.shd-achievements__title{font-size:20px;font-weight:600;color:var(--text-primary, #000);margin:0 0 12px}.shd-achievements__list{display:flex;flex-direction:column;gap:10px}.shd-achievement{display:flex;align-items:center;gap:12px;background:var(--card-bg, #fff);border-radius:16px;padding:14px;opacity:.45;border:1px solid transparent}.shd-achievement--unlocked{opacity:1;background:#e9e4f8;border-color:#d4caef}.shd-achievement__icon{width:46px;height:46px;border-radius:50%;background:#0000000f;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0;overflow:hidden}.shd-achievement--unlocked .shd-achievement__icon{background:#ffffff8c}.shd-achievement__icon img{width:100%;height:100%;object-fit:cover;border-radius:50%}.shd-achievement__info{flex:1;display:flex;flex-direction:column;gap:3px;min-width:0}.shd-achievement__title{font-size:15px;font-weight:700;color:var(--text-primary, #000)}.shd-achievement__count{font-weight:700;color:var(--text-secondary, #555)}.shd-achievement--unlocked .shd-achievement__count{color:#7c3aed}.shd-achievement__desc{font-size:13px;color:var(--text-tertiary, #8e8e93)}.achievement-popup__overlay{position:fixed;inset:0;z-index:2000;background:#000000b3;display:flex;align-items:center;justify-content:center;padding:20px;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.achievement-popup__card{background:var(--bg-primary, #fff);border-radius:24px;padding:32px 24px;max-width:340px;width:100%;text-align:center;animation:popIn .3s cubic-bezier(.34,1.56,.64,1)}@keyframes popIn{0%{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}.achievement-popup__stars{font-size:20px;margin-bottom:16px;letter-spacing:4px}.achievement-popup__icon-wrap{width:90px;height:90px;background:linear-gradient(135deg,#fef3c7,#fde68a);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 20px}.achievement-popup__emoji{font-size:44px;line-height:1}.achievement-popup__img{width:56px;height:56px;object-fit:contain;border-radius:8px}.achievement-popup__congrats{font-size:18px;font-weight:700;color:var(--text-primary, #1c1c1e);margin-bottom:4px}.achievement-popup__won{font-size:14px;color:var(--text-secondary, #8e8e93);margin-bottom:16px}.achievement-popup__title{font-size:22px;font-weight:700;color:var(--text-primary, #1c1c1e);margin-bottom:8px}.achievement-popup__desc{font-size:14px;color:var(--text-secondary, #8e8e93);margin-bottom:24px}.achievement-popup__btn{display:block;width:100%;padding:15px;background:linear-gradient(135deg,#f59e0b,#fbbf24);color:#fff;font-size:16px;font-weight:600;border:none;border-radius:14px;cursor:pointer;transition:opacity .15s}.achievement-popup__btn:active{opacity:.85}.bored-bear{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.bored-bear__container{position:relative;width:250px;height:250px}.bored-bear__shadow{position:absolute;bottom:8px;left:50%;transform:translate(-50%);width:180px;height:20px;border-radius:50%;background:#0000000d;animation:bear-shadow 3s ease-in-out infinite}.bored-bear__image{width:100%;height:100%;object-fit:contain;transform-origin:bottom;animation:bear-breathe 3s ease-in-out infinite}.bored-bear__zzz{position:absolute;top:16px;right:8px;display:flex;flex-direction:column;align-items:flex-start;gap:4px}.bored-bear__z{font-weight:700;color:#8e8e93}.bored-bear__z--1{font-size:14px;opacity:.6;animation:zzz-float 3s ease-in-out infinite}.bored-bear__z--2{font-size:12px;opacity:.4;margin-top:-4px;margin-left:12px;animation:zzz-float 3s ease-in-out .5s infinite}.bored-bear__z--3{font-size:10px;opacity:.2;margin-top:-4px;margin-left:20px;animation:zzz-float 3s ease-in-out 1s infinite}.bored-bear__title{font-size:24px;font-weight:700;color:#1d1d1f;margin-bottom:12px}.bored-bear__text{font-size:16px;color:#8e8e93;line-height:1.5}@keyframes bear-breathe{0%,to{transform:scaleY(1) scaleX(1)}50%{transform:scaleY(1.03) scaleX(1.02)}}@keyframes bear-shadow{0%,to{transform:translate(-50%) scaleX(1);opacity:.3}50%{transform:translate(-50%) scaleX(1.08);opacity:.5}}@keyframes zzz-float{0%,to{opacity:0;transform:translateY(0)}20%,80%{opacity:.6}50%{opacity:.6;transform:translateY(-8px)}}.maintenance-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:40px 24px;text-align:center;background:var(--bg-primary, #F2F2F7)}.maintenance-screen__icon{position:relative;width:80px;height:80px;margin-bottom:24px}.maintenance-screen__gear{position:absolute;font-size:48px}.maintenance-screen__gear--1{top:0;left:0;animation:maintenanceSpin 3s linear infinite}.maintenance-screen__gear--2{bottom:0;right:0;font-size:32px;animation:maintenanceBounce 2s ease-in-out infinite}.maintenance-screen__title{font-size:24px;font-weight:700;color:var(--text-primary, #1D1D1F);margin:0 0 12px}.maintenance-screen__text{font-size:16px;color:var(--text-secondary, #8E8E93);margin:0 0 8px;line-height:1.5;max-width:300px}.maintenance-screen__hint{font-size:14px;color:var(--text-tertiary, #AEAEB2);margin:0 0 24px}.maintenance-screen__dots{display:flex;gap:8px}.maintenance-screen__dot{width:8px;height:8px;border-radius:50%;background:var(--text-secondary, #8E8E93);animation:maintenancePulse 1.4s ease-in-out infinite}.maintenance-screen__dot:nth-child(2){animation-delay:.2s}.maintenance-screen__dot:nth-child(3){animation-delay:.4s}@keyframes maintenanceSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes maintenanceBounce{0%,to{transform:translateY(0)}50%{transform:translateY(-6px)}}@keyframes maintenancePulse{0%,80%,to{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}.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)}.app-container{min-height:100vh;padding-bottom:80px}.bottom-navigation{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;align-items:center;background:var(--tg-theme-bg-color, #fff);border-top:1px solid var(--tg-theme-hint-color, #eee);padding:8px 0;box-shadow:0 -2px 8px #0000001a;z-index:1000;height:70px}.nav-item{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 12px;background:none;border:none;color:var(--tg-theme-hint-color, #999);cursor:pointer;transition:all .2s;min-width:60px;flex:1}.nav-item:active{transform:scale(.95)}.nav-item.active{color:var(--tg-theme-button-color, #4CAF50)}.nav-item.active .nav-icon{transform:scale(1.1)}.nav-icon{font-size:24px;transition:transform .2s}.nav-label{font-size:11px;font-weight:500;letter-spacing:.3px}.bottom-navigation{animation:slideUp .3s ease-out}@keyframes slideUp{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}.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)}}
