:root{--bg: #0d0b12;--surface: #16141d;--surface-hover: #1e1b28;--border: #2a2638;--text: #edeaf4;--text-muted: #8b849e;--accent: #a78bfa;--accent-hover: #c4b5fd;--success: #86efac;--error: #f472b6;--radius: 14px;--shadow: 0 8px 32px rgba(0, 0, 0, .4)}@media(prefers-color-scheme:light){:root:not([data-theme]){--bg: #f5f3f7;--surface: #ffffff;--surface-hover: #ebe8f0;--border: #ddd9e4;--text: #1a1722;--text-muted: #5c5670;--accent: #7c3aed;--accent-hover: #6d28d9;--success: #059669;--error: #db2777;--shadow: 0 8px 32px rgba(0, 0, 0, .08)}}[data-theme=light]{--bg: #f5f3f7;--surface: #ffffff;--surface-hover: #ebe8f0;--border: #ddd9e4;--text: #1a1722;--text-muted: #5c5670;--accent: #7c3aed;--accent-hover: #6d28d9;--success: #059669;--error: #db2777;--shadow: 0 8px 32px rgba(0, 0, 0, .08)}[data-theme=dark]{--bg: #0d0b12;--surface: #16141d;--surface-hover: #1e1b28;--border: #2a2638;--text: #edeaf4;--text-muted: #8b849e;--accent: #a78bfa;--accent-hover: #c4b5fd;--success: #86efac;--error: #f472b6;--shadow: 0 8px 32px rgba(0, 0, 0, .4)}*{box-sizing:border-box}body{margin:0;min-height:100vh;font-family:Outfit,system-ui,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}#app{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem}.logo{display:block;object-fit:contain}.logo--login{width:80px;height:80px;margin:0 auto 1rem}.logo--header{width:80px;height:80px;flex-shrink:0}.theme-toggle{width:2.25rem;height:2.25rem;padding:0;border:none;background:transparent;color:var(--text-muted);font-size:1.25rem;cursor:pointer;border-radius:8px;display:flex;align-items:center;justify-content:center;transition:color .2s,background .2s}.theme-toggle:hover{color:var(--text);background:var(--surface-hover)}.theme-toggle--login{position:absolute;top:.75rem;right:.75rem;z-index:2}.app-header .theme-toggle{position:static}.app-header-actions{display:flex;align-items:center;gap:.5rem}.user-role{font-size:1rem;font-weight:600;color:var(--text-muted)}.user-role--admin{color:var(--accent)}.login-page{position:relative;width:100%;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center}.login-hearts{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;overflow:hidden;z-index:0}.login-heart{position:absolute;top:-1.5em;color:var(--accent);opacity:.35;animation:login-heart-fall linear infinite}@keyframes login-heart-fall{to{transform:translateY(100vh) translate(8px)}}.login-card{position:relative;z-index:1;width:100%;max-width:360px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:2rem;box-shadow:var(--shadow)}.login-card h1{margin:0 0 .25rem;font-size:1.5rem;font-weight:700;text-align:center}.login-card .subtitle{color:var(--text-muted);font-size:.9rem;text-align:center;margin-bottom:1.75rem}.login-form label{display:block;font-size:.85rem;font-weight:600;margin-bottom:.5rem;color:var(--text-muted)}.login-form input{width:100%;padding:.75rem 1rem;font:inherit;font-size:1rem;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:8px;margin-bottom:1rem}.login-form input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px #a78bfa40}.login-form .error{font-size:.85rem;color:var(--error);margin-bottom:.75rem}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;width:100%;padding:.75rem 1.25rem;font:inherit;font-size:1rem;font-weight:600;color:#fff;background:var(--accent);border:none;border-radius:8px;cursor:pointer;transition:background .2s,transform .1s}.btn:hover{background:var(--accent-hover)}.btn:active{transform:scale(.98)}.btn:focus-visible,.theme-toggle:focus-visible{outline:none;box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--accent)}.btn-ghost{background:transparent;color:var(--text-muted);margin-top:1rem}.btn-ghost:hover{background:var(--surface-hover);color:var(--text)}.app-header-actions .btn-ghost{margin-top:0}.app-main{position:relative;z-index:1;width:100%;min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:1.5rem}.app-view-switcher{display:flex;align-items:center;gap:0;width:100%;max-width:520px;margin-bottom:1rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:.25rem}.app-view-tab{flex:1;padding:.6rem 1rem;font:inherit;font-size:.95rem;font-weight:600;color:var(--text-muted);background:transparent;border:none;border-radius:calc(var(--radius) - 2px);cursor:pointer;transition:color .2s,background .2s}.app-view-tab:hover{color:var(--text);background:var(--surface-hover)}.app-view-tab--active{color:var(--text);background:var(--bg);box-shadow:0 1px 3px #00000026}.app-view-tab:focus-visible{outline:none;box-shadow:0 0 0 2px var(--accent)}.app-view{width:100%;max-width:520px}.app-view[hidden]{display:none!important}.app-view--memories,.app-view--dates{display:flex;flex-direction:column;gap:1.5rem}.pings-title{margin:0 0 1rem;font-size:1.35rem;font-weight:700;width:100%;max-width:520px}.app-header{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:520px;margin-bottom:1.5rem}.app-header-left{display:flex;align-items:center;gap:.5rem}.app-header h1{margin:0;font-size:1.35rem;font-weight:700}.categories{width:100%;max-width:520px;display:flex;flex-direction:column;gap:1.5rem}.app-footer{margin-top:auto;padding-top:2rem;padding-bottom:.5rem;font-size:.75rem;color:var(--text-muted);opacity:.8;text-align:center}.app-footer__link{color:var(--text-muted);text-decoration:none}.app-footer__link:hover{color:var(--accent);text-decoration:underline}.app-footer__link:focus-visible{outline:none;border-radius:2px;box-shadow:0 0 0 2px var(--accent)}.category-title{margin:0 0 .5rem;font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted)}.buttons-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:.75rem;width:100%}.notify-btn{padding:1.25rem 1rem;font-size:.95rem;min-height:56px;background:var(--surface);border:1px solid var(--border);color:var(--text)}.notify-btn:hover{background:var(--surface-hover);border-color:var(--accent);color:var(--accent)}.toast{position:fixed;bottom:1.5rem;left:50%;transform:translate(-50%);padding:.75rem 1.25rem;background:var(--surface);border:1px solid var(--border);border-radius:8px;font-size:.9rem;box-shadow:var(--shadow);z-index:100;animation:fadeIn .2s ease}.toast.error{border-color:var(--error);color:var(--error)}.toast.success,.notify-btn.sent{border-color:var(--success);color:var(--success)}.memories-add{margin-bottom:0}.memories-add-title{margin:0 0 1rem;font-size:1.35rem;font-weight:700;width:100%;max-width:520px}.memories-add-tabs{display:flex;gap:.5rem;margin-bottom:.75rem}.memories-tab{padding:.5rem 1rem;font:inherit;font-size:.9rem;font-weight:600;color:var(--text-muted);background:transparent;border:1px solid var(--border);border-radius:8px;cursor:pointer;transition:color .2s,background .2s,border-color .2s}.memories-tab:hover{color:var(--text);background:var(--surface-hover)}.memories-tab--active{color:var(--accent);border-color:var(--accent);background:#a78bfa1a}.memories-textarea{width:100%;padding:.75rem 1rem;font:inherit;font-size:.95rem;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:8px;margin-bottom:.75rem;resize:vertical;min-height:80px}.memories-textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px #a78bfa40}.memories-file{width:100%;margin-bottom:.5rem;font-size:.9rem;color:var(--text-muted)}.memories-caption{width:100%;padding:.5rem .75rem;font:inherit;font-size:.9rem;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:8px;margin-bottom:.75rem}.memories-add-status{font-size:.85rem;min-height:1.25rem;margin-top:.5rem}.memories-add-status--success{color:var(--success)}.memories-add-status--error{color:var(--error)}.memories-grid-section{margin-top:1rem}.memories-grid-title{margin:0 0 1rem;font-size:1.35rem;font-weight:700;width:100%;max-width:520px}.memories-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:1rem}.memory-card{position:relative;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:.75rem 2.5rem .75rem .75rem;overflow:hidden}.memory-card-delete{position:absolute;top:.5rem;right:.5rem;z-index:2;width:1.75rem;height:1.75rem;padding:0;border:none;border-radius:6px;background:var(--surface-hover);color:var(--text-muted);font-size:1.25rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:color .2s,background .2s}.memory-card-delete:hover:not(:disabled){background:var(--error);color:#fff}.memory-card-delete:disabled{opacity:.6;cursor:not-allowed}.memory-card-delete:focus-visible{outline:none;box-shadow:0 0 0 2px var(--accent)}.memory-card-body{margin-top:.25rem}.memory-card-text{font-size:.9rem;line-height:1.45;white-space:pre-wrap;word-break:break-word;margin:0}.memory-card-img-wrap{width:100%;aspect-ratio:1;border-radius:6px;overflow:hidden;margin-bottom:.5rem;background:var(--surface-hover)}.memory-card-img{width:100%;height:100%;object-fit:cover;display:block}.memory-card-caption{font-size:.85rem;color:var(--text-muted);line-height:1.4;margin:.25rem 0 0}.memories-empty,.memories-error{grid-column:1 / -1;margin:0;font-size:.9rem;text-align:center;padding:2rem 1rem}.memories-empty{color:var(--text-muted)}.memories-error{color:var(--error)}.memory-image-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:150;display:flex;align-items:center;justify-content:center;padding:1rem;opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease}.memory-image-overlay[hidden]{display:none!important}.memory-image-overlay--open{opacity:1;visibility:visible}.memory-image-overlay-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#000000d9;cursor:pointer}.memory-image-overlay-close{position:absolute;top:1rem;right:1rem;z-index:2;width:2.5rem;height:2.5rem;padding:0;border:none;border-radius:8px;background:var(--surface);color:var(--text);font-size:1.5rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s,color .2s}.memory-image-overlay-close:hover{background:var(--surface-hover);color:var(--accent)}.memory-image-overlay-close:focus-visible{outline:none;box-shadow:0 0 0 2px var(--accent)}.memory-image-overlay-img{position:relative;z-index:1;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:8px;box-shadow:var(--shadow)}.notes-add{margin-bottom:0;max-width:520px}.notes-add-title{margin:0 0 1rem;font-size:1.35rem;font-weight:700;width:100%}.notes-textarea{width:100%;padding:.75rem 1rem;font:inherit;font-size:.95rem;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:8px;margin-bottom:.75rem;resize:vertical;min-height:80px;box-sizing:border-box}.notes-textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px #a78bfa40}.notes-add-status{font-size:.85rem;min-height:1.25rem;margin-top:.5rem}.notes-add-status--success{color:var(--success)}.notes-add-status--error{color:var(--error)}.notes-list-section{margin-top:1rem}.notes-list-title{margin:0 0 1rem;font-size:1.35rem;font-weight:700;width:100%;max-width:520px}.notes-list{display:flex;flex-direction:column;gap:.75rem}.note-card{position:relative;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:.85rem 2.5rem .85rem .85rem}.note-card-delete{position:absolute;top:.5rem;right:.5rem;z-index:2;width:1.75rem;height:1.75rem;padding:0;border:none;border-radius:6px;background:var(--surface-hover);color:var(--text-muted);font-size:1.25rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:color .2s,background .2s}.note-card-delete:hover:not(:disabled){background:var(--error);color:#fff}.note-card-delete:focus-visible{outline:none;box-shadow:0 0 0 2px var(--accent)}.note-card-text{font-size:.95rem;line-height:1.45;white-space:pre-wrap;word-break:break-word;margin:0 0 .5rem}.note-card-meta{font-size:.8rem;color:var(--text-muted);margin:0}.dates-add-title{margin:0 0 1rem;font-size:1.35rem;font-weight:700;width:100%;max-width:520px}.dates-add-form{display:flex;flex-direction:column;gap:.75rem;max-width:520px}.dates-add-form label{display:block;font-size:.85rem;font-weight:600;margin-bottom:.35rem;color:var(--text-muted)}.dates-input,.dates-select{padding:.6rem .75rem;font:inherit;font-size:.95rem;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:8px;width:100%;max-width:100%;box-sizing:border-box}.dates-select{min-width:100px;cursor:pointer}.dates-input:focus,.dates-select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px #a78bfa40}.dates-add-status{font-size:.85rem;min-height:1.25rem;margin-top:.5rem}.dates-add-status--success{color:var(--success)}.dates-add-status--error{color:var(--error)}.dates-list-title{margin:0 0 1rem;font-size:1.35rem;font-weight:700;width:100%;max-width:520px}.dates-list{display:flex;flex-direction:column;gap:.75rem}.date-card{position:relative;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:1rem 2.5rem 1rem 1rem}.date-card-delete{position:absolute;top:.5rem;right:.5rem;z-index:2;width:1.75rem;height:1.75rem;padding:0;border:none;border-radius:6px;background:var(--surface-hover);color:var(--text-muted);font-size:1.25rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:color .2s,background .2s}.date-card-delete:hover:not(:disabled){background:var(--error);color:#fff}.date-card-delete:disabled{opacity:.6;cursor:not-allowed}.date-card-delete:focus-visible{outline:none;box-shadow:0 0 0 2px var(--accent)}.date-card-name{display:block;font-weight:600;font-size:1rem;margin-bottom:.25rem}.date-card-date{display:block;font-size:.85rem;color:var(--text-muted);margin-bottom:.35rem}.date-card-days{font-size:.95rem;color:var(--accent);font-weight:600}.dates-empty,.dates-error{margin:0;font-size:.9rem;text-align:center;padding:2rem 1rem}.dates-empty{color:var(--text-muted)}.dates-error{color:var(--error)}@keyframes fadeIn{0%{opacity:0;transform:translate(-50%) translateY(8px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.admin-panel-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:1.5rem;opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease}.admin-panel-overlay[hidden]{display:none!important}.admin-panel-overlay--open{opacity:1;visibility:visible}.admin-panel-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#00000080;cursor:pointer}.admin-panel{position:relative;width:100%;max-width:560px;max-height:90vh;overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.admin-panel-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid var(--border)}.admin-panel-title{margin:0;font-size:1.1rem;font-weight:700}.admin-panel-close{width:2rem;height:2rem;padding:0;border:none;background:transparent;color:var(--text-muted);font-size:1.5rem;line-height:1;cursor:pointer;border-radius:8px;display:flex;align-items:center;justify-content:center;transition:color .2s,background .2s}.admin-panel-close:hover{color:var(--text);background:var(--surface-hover)}.admin-panel-close:focus-visible{outline:none;box-shadow:0 0 0 2px var(--accent)}.admin-panel-body{padding:1.25rem}.admin-panel-text{margin:0;font-size:.95rem;color:var(--text-muted);line-height:1.5}.admin-section{margin-bottom:1.5rem}.admin-section:last-child{margin-bottom:0}.admin-section-title{margin:0 0 .5rem;font-size:.9rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.admin-pushover-current{margin:0 0 .75rem;font-size:.85rem;color:var(--text-muted)}.admin-pushover-current--configured{color:var(--success)}.admin-form label{display:block;font-size:.85rem;font-weight:600;margin-bottom:.35rem;color:var(--text-muted)}.admin-select{width:100%;max-width:240px;padding:.6rem .75rem;font:inherit;font-size:.95rem;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:8px;margin-bottom:.5rem;cursor:pointer}.admin-select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px #a78bfa40}.admin-form input{width:100%;padding:.6rem .75rem;font:inherit;font-size:.95rem;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:8px;margin-bottom:1rem}.admin-form input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px #a78bfa40}.admin-form .btn{margin-top:.25rem}.admin-form-status{margin-bottom:.75rem;font-size:.85rem;min-height:1.25rem}.admin-form-status--success{color:var(--success)}.admin-form-status--error{color:var(--error)}@media(max-width:640px){#app{padding:1rem;padding-left:max(1rem,env(safe-area-inset-left));padding-right:max(1rem,env(safe-area-inset-right));justify-content:flex-start}.login-page{padding-left:max(1rem,env(safe-area-inset-left));padding-right:max(1rem,env(safe-area-inset-right))}.login-card{padding:1.5rem;margin:0 .5rem}.theme-toggle--login{top:.75rem;right:.75rem;min-width:44px;min-height:44px}.app-main{padding:1rem;padding-left:max(1rem,env(safe-area-inset-left));padding-right:max(1rem,env(safe-area-inset-right))}.app-header{flex-wrap:wrap;gap:.75rem;margin-bottom:1rem}.app-header-left{min-width:0;flex:1}.app-header h1{display:none}.logo--header{width:48px;height:48px}.app-header-actions{flex-shrink:0;gap:.25rem}.app-header-actions .btn-ghost{padding:.5rem .6rem;font-size:.875rem}.app-view-switcher{padding:.2rem;margin-bottom:.75rem}.app-view-tab{padding:.65rem .6rem;font-size:.875rem;min-height:44px}.pings-title,.memories-add-title,.memories-grid-title{font-size:1.2rem;margin-bottom:.75rem}.categories{gap:1.25rem}.buttons-grid{grid-template-columns:repeat(2,1fr);gap:.6rem}.notify-btn{min-height:48px;padding:1rem .75rem;font-size:.875rem}.memories-add-tabs{gap:.4rem}.memories-tab{padding:.5rem .75rem;font-size:.85rem}.memories-grid{grid-template-columns:repeat(2,1fr);gap:.75rem}.memory-card{padding:.6rem 2.25rem .6rem .6rem}.memory-card-delete{width:2rem;height:2rem;top:.4rem;right:.4rem;font-size:1.1rem}.notes-add{max-width:100%}.note-card{padding:.85rem 2.5rem .85rem .85rem}.note-card-delete{width:2rem;height:2rem;top:.4rem;right:.4rem}.dates-add-form{max-width:100%}.date-card{padding:.85rem 2.5rem .85rem .85rem}.date-card-delete{width:2rem;height:2rem;top:.4rem;right:.4rem}.toast{left:1rem;right:1rem;width:auto;max-width:none;transform:translate(0);bottom:max(1rem,env(safe-area-inset-bottom))}.admin-panel{max-width:none;margin:0 1rem;max-height:85vh}.admin-panel-overlay{padding:1rem;padding-left:max(1rem,env(safe-area-inset-left));padding-right:max(1rem,env(safe-area-inset-right))}.memory-image-overlay{padding:.75rem;padding-left:max(.75rem,env(safe-area-inset-left));padding-right:max(.75rem,env(safe-area-inset-right))}.memory-image-overlay-close{top:max(.75rem,env(safe-area-inset-top));right:max(.75rem,env(safe-area-inset-right));width:2.75rem;height:2.75rem;min-width:44px;min-height:44px}.app-footer{padding-bottom:max(.5rem,env(safe-area-inset-bottom))}}@media(max-width:380px){.app-header h1{font-size:1rem}.logo--header{width:40px;height:40px}.app-view-tab{padding:.5rem .4rem;font-size:.8rem}.buttons-grid{gap:.5rem}.notify-btn{padding:.85rem .5rem;font-size:.8rem}.memories-grid{gap:.6rem}}
