:root{color-scheme:light;font-family:system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0;background:#faf7f2;color:#24211d}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app{max-width:640px;margin:0 auto;padding:1rem;min-width:0}.app__header{text-align:center;margin-bottom:1.5rem}.app__header h1{margin:0 0 .25rem;font-size:1.75rem}.app__tagline{margin:0;color:#6b6459;font-size:.95rem}.app__error{background:#fdecea;color:#8a1f11;padding:.75rem 1rem;border-radius:8px;margin:1rem 0}.app__no-favorites{text-align:center;color:#6b6459;margin-top:2rem}.affirmation-form{display:flex;flex-direction:column;gap:.5rem;background:#fff;padding:1rem;border-radius:12px;box-shadow:0 1px 3px #00000014}.affirmation-form textarea{width:100%;font-size:1rem;font-family:inherit;padding:.75rem;border-radius:8px;border:1px solid #ddd6cb;resize:vertical}.affirmation-form textarea:focus-visible{outline:2px solid #7a6a52;outline-offset:1px}.affirmation-form__footer{display:flex;align-items:center;justify-content:space-between}.affirmation-form__counter{font-size:.85rem;color:#6b6459}.affirmation-form__counter--over{color:#b3261e}.affirmation-form button{background:#7a6a52;color:#fff;border:none;padding:.6rem 1.25rem;border-radius:8px;font-size:1rem;cursor:pointer}.affirmation-form button:disabled{opacity:.5;cursor:not-allowed}.affirmation-form button:focus-visible{outline:2px solid #24211d;outline-offset:2px}.filter-toggle{display:flex;gap:.5rem;margin:1.25rem 0 .75rem}.filter-toggle button{flex:1;padding:.5rem;border-radius:999px;border:1px solid #ddd6cb;background:#fff;cursor:pointer;font-size:.95rem}.filter-toggle button.is-active{background:#24211d;color:#fff;border-color:#24211d}.filter-toggle button:focus-visible{outline:2px solid #7a6a52;outline-offset:2px}.affirmation-list{list-style:none;margin:1rem 0 0;padding:0;display:flex;flex-direction:column;gap:.75rem}.affirmation-card{background:#fff;border-radius:12px;padding:1rem;display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;box-shadow:0 1px 3px #00000014}.affirmation-card__body{flex:1;min-width:0}.affirmation-card__badge{display:inline-block;background:#efe7d8;color:#7a6a52;font-size:.75rem;font-weight:600;padding:.15rem .5rem;border-radius:999px;margin-bottom:.35rem}.affirmation-card__text{margin:0;word-break:break-word}.affirmation-card__meaning{margin-top:.5rem}.affirmation-card__meaning-toggle{background:none;border:none;color:#7a6a52;font-weight:600;cursor:pointer;padding:0;font-size:.85rem}.affirmation-card__meaning-toggle:focus-visible{outline:2px solid #7a6a52;outline-offset:2px}.affirmation-card__interpretation{margin:.4rem 0 0;color:#4a453d;font-size:.85rem;line-height:1.4}.affirmation-card__actions{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.affirmation-card__share{background:#f2ede4;color:#4a453d;border:none;border-radius:999px;padding:.4rem .9rem;font-size:.85rem;cursor:pointer;white-space:nowrap}.affirmation-card__share:focus-visible{outline:2px solid #7a6a52;outline-offset:2px}.affirmation-card__favorite,.affirmation-card__delete{background:none;border:none;font-size:1.5rem;line-height:1;cursor:pointer;flex-shrink:0;padding:.1rem}.affirmation-card__favorite{color:#d9a441}.affirmation-card__delete{color:#9a9284;font-size:1.1rem}.affirmation-card__favorite:focus-visible,.affirmation-card__delete:focus-visible{outline:2px solid #7a6a52;outline-offset:2px;border-radius:4px}.toast{position:fixed;left:50%;bottom:1.5rem;transform:translate(-50%);padding:.75rem 1.25rem;border-radius:999px;font-size:.9rem;box-shadow:0 4px 12px #00000026;color:#fff;max-width:calc(100% - 2rem);text-align:center}.toast--success{background:#24211d}.toast--error{background:#8a1f11}.empty-state{text-align:center;margin-top:2rem;color:#4a453d}.empty-state__examples{list-style:none;padding:0;display:flex;flex-direction:column;gap:.5rem;margin-top:1rem}.empty-state__examples button{width:100%;background:#fff;border:1px dashed #ddd6cb;border-radius:10px;padding:.75rem;cursor:pointer;font-size:.95rem;text-align:left}.empty-state__examples button:focus-visible{outline:2px solid #7a6a52;outline-offset:2px}.empty-state__catalog-button{margin-top:1.25rem;width:100%;background:#7a6a52;color:#fff;border:none;padding:.75rem;border-radius:10px;font-size:.95rem;cursor:pointer}.empty-state__catalog-button:focus-visible{outline:2px solid #24211d;outline-offset:2px}.tabs{display:flex;gap:.5rem;margin-bottom:1.25rem}.tabs__tab{flex:1;padding:.6rem;border-radius:10px;border:1px solid #ddd6cb;background:#fff;cursor:pointer;font-size:.95rem;min-width:0}.tabs__tab.is-active{background:#24211d;color:#fff;border-color:#24211d}.tabs__tab:focus-visible{outline:2px solid #7a6a52;outline-offset:2px}.catalog-view{display:flex;flex-direction:column;gap:.75rem}.catalog-view__intro{margin:0 0 .25rem;color:#6b6459;font-size:.9rem}.category-chips{display:flex;gap:.5rem;overflow-x:auto;padding-bottom:.25rem;-webkit-overflow-scrolling:touch}.category-chip{flex-shrink:0;white-space:nowrap;padding:.4rem .85rem;border-radius:999px;border:1px solid #ddd6cb;background:#fff;cursor:pointer;font-size:.85rem}.category-chip.is-active{background:#24211d;color:#fff;border-color:#24211d}.category-chip:focus-visible{outline:2px solid #7a6a52;outline-offset:2px}.catalog-view__controls{display:flex;flex-direction:column;gap:.5rem}.search-box{flex:1}.search-box__input{width:100%;font-size:1rem;font-family:inherit;padding:.65rem .75rem;border-radius:8px;border:1px solid #ddd6cb;min-width:0}.search-box__input:focus-visible{outline:2px solid #7a6a52;outline-offset:1px}.saved-filter{display:flex;gap:.4rem}.saved-filter button{flex:1;padding:.45rem .3rem;border-radius:999px;border:1px solid #ddd6cb;background:#fff;cursor:pointer;font-size:.8rem;min-width:0}.saved-filter button.is-active{background:#24211d;color:#fff;border-color:#24211d}.saved-filter button:focus-visible{outline:2px solid #7a6a52;outline-offset:2px}.catalog-view__empty{text-align:center;color:#6b6459;margin-top:1.5rem}.catalog-view__empty button{margin-top:.75rem;background:#fff;border:1px solid #ddd6cb;border-radius:8px;padding:.5rem 1rem;cursor:pointer}.catalog-list{list-style:none;margin:.25rem 0 0;padding:0;display:flex;flex-direction:column;gap:.75rem}.catalog-card{background:#fff;border-radius:12px;padding:1rem;box-shadow:0 1px 3px #00000014;min-width:0}.catalog-card__text{margin:0 0 .5rem;font-size:1.05rem;word-break:break-word}.catalog-card__categories{display:flex;flex-wrap:wrap;gap:.35rem;margin-bottom:.5rem}.catalog-card__category-tag{font-size:.75rem;color:#7a6a52;background:#f3efe6;border-radius:999px;padding:.15rem .5rem}.catalog-card__meaning-toggle{background:none;border:none;color:#7a6a52;font-weight:600;cursor:pointer;padding:0;font-size:.9rem}.catalog-card__meaning-toggle:focus-visible{outline:2px solid #7a6a52;outline-offset:2px}.catalog-card__interpretation{margin:.5rem 0 0;color:#4a453d;font-size:.9rem;line-height:1.4}.catalog-card__actions{margin-top:.75rem;display:flex;gap:.5rem}.catalog-card__share{background:#f2ede4;color:#4a453d;border:none;border-radius:8px;padding:.6rem .9rem;font-size:.9rem;cursor:pointer;white-space:nowrap}.catalog-card__share:focus-visible{outline:2px solid #7a6a52;outline-offset:2px}.catalog-card__save{flex:1;min-width:0;background:#7a6a52;color:#fff;border:none;padding:.6rem;border-radius:8px;font-size:.95rem;cursor:pointer}.catalog-card__save.is-saved{background:#3f6b4a}.catalog-card__save:disabled{opacity:.7;cursor:not-allowed}.catalog-card__save:focus-visible{outline:2px solid #24211d;outline-offset:2px}.catalog-card__error{margin:.5rem 0 0;color:#b3261e;font-size:.85rem}@media(min-width:480px){.catalog-view__controls{flex-direction:row;align-items:center}.saved-filter{flex-shrink:0}}.auth-banner{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:.75rem;margin:-1rem -1rem 1rem;padding:.6rem 1rem;background:#efe6d6;border-bottom:1px solid #ddd0b8}.auth-banner__text{flex:1;margin:0;font-size:.9rem}.auth-banner__cta{padding:.45rem .9rem;border:0;border-radius:999px;background:#24211d;color:#fff;font:inherit;font-size:.9rem;cursor:pointer;white-space:nowrap}.auth-banner__close,.login-dialog__close{border:0;background:none;font-size:1.4rem;line-height:1;color:#6b6459;cursor:pointer}.app__account{display:flex;justify-content:center;align-items:center;gap:.75rem;margin:-.75rem 0 1rem;font-size:.85rem;color:#6b6459}.app__logout{border:0;background:none;font:inherit;color:#7a6a52;text-decoration:underline;cursor:pointer}.login-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:1rem;background:#24211d73}.login-dialog{position:relative;width:100%;max-width:380px;padding:1.5rem 1.25rem;border-radius:12px;background:#fff}.login-dialog h2{margin:0 0 .75rem;font-size:1.25rem}.login-dialog__close{position:absolute;top:.5rem;right:.75rem}.login-dialog__hint{margin:0 0 .75rem;color:#4a453d;font-size:.9rem;overflow-wrap:anywhere}.login-dialog input{width:100%;padding:.7rem .8rem;border:1px solid #cfc6b5;border-radius:8px;font:inherit;font-size:1rem}.login-dialog input[inputmode=numeric]{letter-spacing:.4em;text-align:center;font-size:1.4rem}.login-dialog__error{margin:.6rem 0 0;padding:.5rem .75rem;border-radius:8px;background:#fdecea;color:#8a1f11;font-size:.875rem}.login-dialog__primary{width:100%;margin-top:.9rem;padding:.7rem;border:0;border-radius:8px;background:#24211d;color:#fff;font:inherit;cursor:pointer}.login-dialog__primary:disabled{opacity:.5;cursor:default}.login-dialog__links{display:flex;flex-direction:column;align-items:center;gap:.4rem;margin-top:.75rem}.login-dialog__link{border:0;background:none;font:inherit;font-size:.85rem;color:#7a6a52;text-decoration:underline;cursor:pointer}.login-dialog__link:disabled{color:#9a9284;text-decoration:none;cursor:default}.quiz-entry{display:block;width:100%;margin:0 0 1rem;padding:1rem;text-align:left;font:inherit;font-weight:600;border:1px solid #c7d2fe;border-radius:12px;background:#eef2ff;color:#3730a3;cursor:pointer}.quiz-entry small{display:block;font-weight:400;margin-top:.25rem}.quiz__top{display:flex;justify-content:flex-end}.quiz__link{background:none;border:0;padding:.75rem 0;font:inherit;color:#4f46e5;cursor:pointer;text-decoration:underline}.quiz__progress{height:6px;background:#e5e7eb;border-radius:3px;overflow:hidden}.quiz__progress-bar{height:100%;background:#4f46e5;transition:width .2s}.quiz__title{font-size:1.35rem;margin:1.25rem 0 1rem}.quiz__options{display:grid;gap:.75rem;margin-bottom:.5rem}.quiz__option{min-height:56px;padding:.9rem 1rem;font:inherit;font-size:1.05rem;text-align:left;border:2px solid #d1d5db;border-radius:12px;background:#fff;cursor:pointer}.quiz__option:hover,.quiz__option.is-selected{border-color:#4f46e5;background:#eef2ff}.quiz__add-all{width:100%;min-height:48px;margin-bottom:1rem;font:inherit;font-weight:600;border:0;border-radius:10px;background:#4f46e5;color:#fff;cursor:pointer}.quiz__add-all:disabled{opacity:.6;cursor:default}.quiz__results{list-style:none;padding:0;margin:0;display:grid;gap:.75rem}.affirmation-card__edit{display:flex;flex-direction:column;gap:8px}.affirmation-card__edit textarea{width:100%;font:inherit;padding:8px;box-sizing:border-box}.affirmation-card__edit-error{color:#c0392b;margin:0;font-size:.875rem}.affirmation-card__edit-actions{display:flex;gap:8px}.affirmation-card__edit-btn{background:none;border:none;cursor:pointer;font-size:1.1rem}.affirmation-card__edit-actions button{padding:6px 12px;border-radius:8px;border:1px solid #d8d0c4;background:#fff;cursor:pointer}.search-sticky{position:sticky;top:0;z-index:5;background:inherit;padding:.5rem 0}.search-box{width:100%}mark{background:#f3e2a9;color:inherit;border-radius:2px;padding:0 1px}.daily{margin:0 0 1.25rem;padding:1rem 1.25rem;border-radius:12px;border:1px solid #c7d2fe;background:#eef2ff}.daily__title{margin:0 0 .5rem;font-size:.85rem;text-transform:uppercase;letter-spacing:.05em;color:#4338ca}.daily__text{margin:0 0 .75rem;font-size:1.25rem;line-height:1.4}.daily__actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}.install-banner{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;justify-content:space-between;margin:12px auto;max-width:640px;padding:12px 16px;border:1px solid #e6dccb;border-radius:12px;background:#fff;font-size:14px}.install-banner__text{margin:0;flex:1 1 220px}.install-banner__actions{display:flex;gap:8px}.install-banner button{font:inherit;padding:8px 14px;border-radius:8px;border:1px solid #d97757;cursor:pointer}.install-banner__install{background:#d97757;color:#fff}.install-banner__dismiss{background:transparent;color:#24211d}.app__reminders{margin-top:.75rem;padding:.5rem 1rem;border:1px solid #d8d0c3;border-radius:999px;background:#fff;color:inherit;font:inherit;cursor:pointer}.reminder-banner{position:relative;margin-bottom:1rem;padding:1.25rem 2.5rem 1.25rem 1.25rem;border-radius:16px;background:#24211d;color:#faf7f2}.reminder-banner__text{margin:0;font-size:1.25rem;line-height:1.4}.reminder-banner__close,.sheet__close{position:absolute;top:.5rem;right:.5rem;width:2.25rem;height:2.25rem;border:0;background:transparent;color:inherit;font-size:1.5rem;cursor:pointer}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:flex;align-items:flex-end;justify-content:center;background:#24211d73}.sheet{position:relative;width:100%;max-width:640px;max-height:90vh;overflow-y:auto;padding:1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;background:#faf7f2;outline:none}@media(min-width:700px){.sheet-backdrop{align-items:center}.sheet{border-radius:20px}}.sheet__header h2{margin:0 2rem 1rem 0;font-size:1.25rem}.sheet__notice{margin:0 0 1rem;padding:.75rem;border-radius:12px;background:#fff3d6;font-size:.9rem;line-height:1.4}.chips{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}.chip{min-height:44px;padding:.5rem 1rem;border:1px solid #d8d0c3;border-radius:999px;background:#fff;color:inherit;font:inherit;cursor:pointer}.chip.is-active{border-color:#24211d;background:#24211d;color:#faf7f2}.chip:disabled,.sheet__button:disabled{opacity:.6;cursor:progress}.sheet__custom{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:1rem}.sheet__custom input[type=time]{min-height:44px;padding:0 .5rem;border:1px solid #d8d0c3;border-radius:8px;font:inherit}.sheet__button{min-height:44px;padding:.5rem 1rem;border:1px solid #d8d0c3;border-radius:10px;background:#fff;color:inherit;font:inherit;cursor:pointer}.sheet__button--primary{border-color:#24211d;background:#24211d;color:#faf7f2}.sheet__toggle{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem}.sheet__actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}.sheet__hint{margin:0;color:#6b655c;font-size:.8rem}.streak{margin:-.5rem 0 1rem;text-align:center}.streak__badge{display:inline-flex;flex-direction:column;gap:.15rem;padding:.5rem 1rem;border:1px solid #e6dccb;border-radius:12px;background:#fff;color:inherit;font:inherit;cursor:pointer}.streak__current{font-weight:600}.streak__best{font-size:.8rem;color:#6b645b}.streak__calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:.3rem;max-width:320px;margin:.75rem auto 0}.streak__day{aspect-ratio:1;display:flex;align-items:center;justify-content:center;border-radius:8px;font-size:.8rem;background:#f1ebe0;color:#6b645b}.streak__day--active{background:#3f6b4a;color:#fff}.streak__day--rest{background:#dfe9e0;color:#3f6b4a}.streak__day.is-today{outline:2px solid #24211d;outline-offset:1px}
