:root { color-scheme: dark; }
body { margin: 0; background: #0b0a0c; color: #faf7f8; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #ff5358; outline-offset: 3px; }
button:disabled { opacity: .6; cursor: wait; }
main, article, form { min-width: 0; }
#app { min-height: 100dvh; }
#app a, #app button { -webkit-tap-highlight-color: transparent; }
#app nav.fixed { padding-bottom: env(safe-area-inset-bottom); }
#app main { overflow-wrap: anywhere; }
#app [aria-current="page"] { color: #ff5358; }
#app .avatar-initials { display: grid; place-items: center; min-width: 2.5rem; aspect-ratio: 1; border-radius: 50%; background: #211d21; font-weight: 700; }
#app .series-button { min-width: 44px; min-height: 44px; }
.nefasto-progress { display: block; height: 7px; margin-top: .4rem; border: 0; border-radius: 999px; overflow: hidden; background: #211d21; accent-color: #e11d34; }
.nefasto-progress::-webkit-progress-bar { background: #211d21; }
.nefasto-progress::-webkit-progress-value { background: #e11d34; border-radius: 999px; }
.nefasto-progress::-moz-progress-bar { background: #e11d34; border-radius: 999px; }
#record-dialog { padding: 1.25rem; color: #faf7f8; background: #171417; border: 1px solid #30282d; border-radius: 16px; width: min(92vw, 30rem); max-height: 85dvh; margin: auto; }
#record-dialog::backdrop { background: rgb(11 10 12 / .85); }
.sync-fallback { position: fixed; z-index: 50; right: 1rem; bottom: 5.5rem; background: #211d21; border: 1px solid #30282d; border-radius: 10px; padding: .75rem; color: #faf7f8; }
@media(min-width:1024px) { #app aside { min-height: 100dvh; position: sticky; align-self: flex-start; top: 0; } }
#app :where(a,button) { transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
#app :where(button,a):active { transform: scale(.98); }
.nefasto-enter { animation: nefasto-enter .24s ease-out both; }
@keyframes nefasto-enter { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#record-dialog[open] { animation: nefasto-enter .2s ease-out both; }
#interaction-feedback { position: fixed; bottom: calc(5rem + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 100; width: max-content; max-width: calc(100% - 2rem); padding: .65rem 1rem; border-radius: 12px; background: #211d21; border: 1px solid #52343c; color: #faf7f8; box-shadow: 0 5px 24px #0007; font-size: .875rem; }
#interaction-feedback.feedback-enter { animation: nefasto-toast .24s ease-out both; }
@keyframes nefasto-toast { from { opacity: 0; transform: translate(-50%, 7px); } to { opacity: 1; transform: translate(-50%, 0); } }
.community-layout { display: grid; gap: 1rem; align-items: start; }
#app .community-composer { min-width: 0; min-height: 0; }
.community-card { min-width: 0; }
.community-photo { display: block; width: min(100%, 28rem); max-height: 28rem; object-fit: contain; border-radius: 12px; background: #0b0a0c; }
.community-photo[hidden] { display: none; }
.community-shortcut:hover { border-color: #9e3646; }
@media (min-width: 1024px) {
  .community-layout { grid-template-columns: minmax(16rem, .85fr) minmax(0, 1.25fr); gap: 1.5rem; }
  #app .community-composer { top: 1.5rem; }
  #interaction-feedback { bottom: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  #app :where(a,button), .nefasto-enter, #record-dialog[open], #interaction-feedback.feedback-enter { transition: none; animation: none; transform: none; }
  #interaction-feedback.feedback-enter { transform: translateX(-50%); }
}

.consistency-calendar { display:grid;grid-template-columns:repeat(15,minmax(0,1fr));gap:4px; }
.consistency-day { height:10px;background:#30282d;border-radius:3px; }
.consistency-done { background:#e11d34; }
[data-action="community-filter"][aria-pressed="true"] { border-color:#e11d34;color:#faf7f8;background:#410006; }
@media(min-width:1024px) { .consistency-calendar { grid-template-columns:repeat(30,minmax(0,1fr)); } }
