/* Марк & Алина -- malina.love */
:root {
  --bg: #fff8f4;
  --paper: #ffffff;
  --ink: #4a2631;
  --muted: #8d6b75;
  --rose: #d4526e;
  --rose-deep: #b73a57;
  --rose-soft: #fde3e8;
  --blush: #fff0f2;
  --gold: #c9a063;
  --sage: #7fa88c;
  --sky: #6fa3c7;
  --lilac: #a98bc9;
  --line: #f2d9de;
  --shadow: 0 10px 30px -12px rgba(150, 50, 80, .28);
  --radius: 18px;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-script: "Caveat", "Segoe Script", cursive;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font-body); min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
img, video { max-width: 100%; display: block; }
a { color: var(--rose-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hint { color: var(--muted); font-size: .9rem; margin: .25rem 0 1rem; }
.inline { display: inline; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--rose) 55%, white); outline-offset: 2px; }

/* --- Шапка ------------------------------------------------------------ */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 244, .88);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__inner { max-width: 1180px; margin: 0 auto; padding: .6rem 1.1rem;
  display: flex; align-items: center; gap: 1rem; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .5rem; font: 600 1.35rem var(--font-head); color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand i { color: var(--rose); font-style: italic; }
.brand__heart { width: 26px; height: 26px; fill: var(--rose); animation: beat 2.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.18); } 24% { transform: scale(1); } 36% { transform: scale(1.12); } }
.nav { display: flex; align-items: center; gap: .3rem; }
.nav > a:not(.btn) { padding: .45rem .8rem; border-radius: 999px; color: var(--ink); font-weight: 600; }
.nav > a:not(.btn):hover { background: var(--rose-soft); text-decoration: none; }
.nav > a[aria-current="page"] { background: var(--rose-soft); color: var(--rose-deep); }
.nav__logout { margin: 0 0 0 .4rem; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 6px 0; border-radius: 2px; transition: .2s; }

/* --- Кнопки и формы --------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: 700 1rem var(--font-body); padding: .65rem 1.3rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #e0607d, var(--rose-deep)); color: #fff; box-shadow: 0 8px 20px -8px rgba(183, 58, 87, .7); }
.btn-primary:hover { box-shadow: 0 12px 24px -8px rgba(183, 58, 87, .75); }
.btn-ghost { background: transparent; border-color: var(--rose); color: var(--rose-deep); }
.btn-ghost:hover { background: var(--rose-soft); }
.btn-danger { border-color: #c9485b; color: #b3283f; }
.btn-danger-solid { background: #c43d54; color: #fff; border-color: #c43d54; }
.btn-sm { padding: .4rem .95rem; font-size: .92rem; }
.btn-lg { padding: .85rem 1.8rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

.form .field { margin-bottom: 1.1rem; }
.form label, .field > label { display: block; font-weight: 700; margin-bottom: .3rem; }
input[type=text], input[type=password], input[type=date], input[type=time], input[type=number], select, textarea, input[type=file] {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line);
  border-radius: 12px; padding: .65rem .85rem; }
textarea { resize: vertical; min-height: 8rem; }
input:focus, select:focus, textarea:focus { border-color: var(--rose); outline: none; box-shadow: 0 0 0 4px var(--rose-soft); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.row--tight { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row--tight select, .row--tight input { width: auto; flex: 1; min-width: 120px; }
.errorlist, .errors { list-style: none; padding: 0; margin: .3rem 0 0; color: #b3283f; font-size: .92rem; }
.check { font-weight: 400 !important; display: flex !important; gap: .5rem; align-items: center; }
.check input { width: auto; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; align-items: center; }
.actions--center { justify-content: center; }
.back { display: inline-block; margin-bottom: 1rem; font-weight: 700; }
.back::before { content: "\2190\00a0"; }

/* --- Каркас ----------------------------------------------------------- */
.container { max-width: 960px; margin: 0 auto; padding: 0 1.1rem; }
.container--narrow { max-width: 460px; }
.container--read { max-width: 760px; }
.container--wide { max-width: 1180px; }
.section { padding: 2.2rem 0 3rem; }
.section__title { text-align: center; margin-bottom: 1.5rem; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.pagehead { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1.5rem; }
.pagehead h1 { margin: 0; }
.pagehead p { margin: .2rem 0 0; }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 2rem; color: var(--muted); }
.badge { background: var(--rose-soft); color: var(--rose-deep); font-size: .78rem; font-weight: 800; padding: .15rem .6rem; border-radius: 999px; }

.messages { max-width: 960px; margin: .8rem auto 0; padding: 0 1.1rem; }
.message { background: #eaf6ee; border: 1px solid #bfe0c8; color: #25613a; padding: .7rem 1rem; border-radius: 12px; margin-bottom: .5rem; }
.message--error { background: #fdecee; border-color: #f2bcc4; color: #8f2237; }

.footer { text-align: center; padding: 2rem 1rem 2.4rem; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); margin-top: 2rem; }
.footer p { margin: 0; }
.footer__script { font: 600 1.5rem var(--font-script); color: var(--rose); }

/* --- Главная ---------------------------------------------------------- */
.hero { position: relative; overflow: hidden; text-align: center; padding: clamp(3rem, 9vw, 6.5rem) 1.1rem clamp(3rem, 8vw, 5.5rem);
  background:
    radial-gradient(60% 50% at 18% 12%, #ffd6df 0%, transparent 70%),
    radial-gradient(55% 55% at 88% 20%, #f6dcff 0%, transparent 72%),
    radial-gradient(60% 60% at 50% 100%, #ffe9d6 0%, transparent 70%),
    linear-gradient(180deg, #fff2f2, var(--bg)); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg)); }
.hero__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero__kicker { font: 600 1.45rem var(--font-script); color: var(--rose); margin-bottom: .2rem; }
.hero__title { font-size: clamp(3rem, 11vw, 6.2rem); font-style: italic; font-weight: 700; margin: 0; letter-spacing: -.01em;
  background: linear-gradient(120deg, #7b2a42, var(--rose) 55%, #e48a4d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__title span { font-style: normal; font-weight: 400; padding: 0 .1em; }
.hero__script { font: 600 clamp(1.7rem, 4vw, 2.3rem) var(--font-script); color: var(--muted); margin: .2rem 0 1.6rem; }
.banner { display: inline-block; background: #fff; border: 1.5px dashed var(--rose); color: var(--rose-deep); font-weight: 700;
  padding: .5rem 1.2rem; border-radius: 999px; margin-bottom: 1.4rem; }
.banner--today { font: 700 1.5rem var(--font-head); background: linear-gradient(135deg, #fff, var(--rose-soft)); border-style: solid; padding: .7rem 1.8rem; animation: pop 1.6s ease-in-out infinite alternate; }
@keyframes pop { to { transform: scale(1.04); } }
.counter { display: flex; justify-content: center; gap: clamp(.6rem, 3vw, 1.4rem); flex-wrap: wrap; }
.counter__item { background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: 22px; padding: 1rem 1.4rem; min-width: 118px; box-shadow: var(--shadow); }
.counter__item b { display: block; font: 700 clamp(2.6rem, 8vw, 3.8rem)/1 var(--font-head); color: var(--rose-deep); }
.counter__item span { color: var(--muted); font-weight: 700; text-transform: lowercase; }
.hero__live { margin: 1.4rem 0 0; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }
.hearts { position: absolute; inset: 0; pointer-events: none; }
.heart { position: absolute; bottom: -40px; width: var(--s); height: var(--s); opacity: 0; fill: var(--c);
  animation: rise var(--d) linear var(--delay) infinite; }
@keyframes rise { 0% { transform: translateY(0) rotate(-8deg); opacity: 0; } 12% { opacity: .55; } 100% { transform: translateY(-115vh) rotate(14deg); opacity: 0; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; margin-bottom: 1.6rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink);
  display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s; }
.card:hover { transform: translateY(-4px); text-decoration: none; }
.card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__img--empty { background: linear-gradient(135deg, var(--rose-soft), #f4e3ff); }
.card__body { padding: 1rem 1.2rem 1.2rem; }
.card__body h3 { margin: .1em 0 .4em; font-size: 1.25rem; }
.card__body p { color: var(--muted); font-size: .95rem; margin: 0; }
.card__meta { font-size: .85rem; color: var(--rose-deep); font-weight: 700; }

/* --- Лента ------------------------------------------------------------ */
.story { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 1.4rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.3rem; box-shadow: var(--shadow); }
.story:not(:has(.story__img)) { grid-template-columns: 1fr; }
.story__img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
.story__body { padding: 1.2rem 1.3rem 1.3rem; }
.story__body h2 { margin: .1em 0 .4em; font-size: 1.5rem; }
.story__body h2 a { color: var(--ink); }
.story__meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: .3rem; }
.story__meta time { color: var(--rose-deep); font-weight: 700; }
.more { font-weight: 800; }
.post__cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.2rem; box-shadow: var(--shadow); }
.post__title { margin-top: .2em; }
.post__body { font-size: 1.1rem; line-height: 1.75; }
.form__preview { max-width: 220px; border-radius: 12px; margin: .3rem 0 .6rem; }

/* --- Вход ------------------------------------------------------------- */
.login__title { text-align: center; }

/* --- Галерея ---------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.chip { font: 700 .95rem var(--font-body); padding: .35rem .95rem; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); cursor: pointer; }
.chip:hover { text-decoration: none; border-color: var(--rose); }
.chip.is-active { background: var(--rose); border-color: var(--rose); color: #fff; }
.chip--add { border-style: dashed; color: var(--rose-deep); }
.chip--danger { color: #b3283f; }
.month { font-size: 1.25rem; margin: 1.6rem 0 .7rem; color: var(--muted); font-style: italic; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--rose-soft); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tile:hover img { transform: scale(1.06); }
.tile__blank { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #f3c9d3, #dcc7f0); }
.tile__play { position: absolute; inset: auto 8px 8px auto; width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .55); display: grid; place-items: center; }
.tile__play svg { width: 18px; height: 18px; fill: #fff; }
.tile__check { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .25); display: none; }
.select-mode .tile__check { display: block; }
.tile.is-selected { outline: 4px solid var(--rose); outline-offset: -4px; }
.tile.is-selected .tile__check { background: var(--rose); }
.tile.is-selected .tile__check::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.selectbar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: .55rem .9rem; display: flex; gap: .6rem; align-items: center; box-shadow: 0 14px 40px -10px rgba(80, 20, 40, .45); flex-wrap: wrap; justify-content: center; max-width: calc(100% - 20px); }
.selectbar select { width: auto; padding: .35rem .6rem; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 8, 14, .94); display: flex; align-items: center; justify-content: center; }
.lightbox__stage { max-width: 100%; max-height: 100%; display: grid; place-items: center; padding: 56px 56px 20px; width: 100%; height: 100%; }
.lightbox__stage img, .lightbox__stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox__bar { position: absolute; top: 0; left: 0; right: 0; display: flex; gap: .5rem; align-items: center; padding: .6rem .8rem; z-index: 2; }
.lightbox__count { color: #e9d4da; margin-right: auto; font-weight: 700; }
.lightbox__btn { background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 999px; padding: .4rem .95rem; font: 700 .9rem var(--font-body); cursor: pointer; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .26); text-decoration: none; }
.lightbox__btn--danger { background: rgba(196, 61, 84, .75); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; background: rgba(255, 255, 255, .1); border-radius: 12px; cursor: pointer; z-index: 2; }
.lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox__nav svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }

/* --- Загрузка --------------------------------------------------------- */
.dropzone { display: grid; place-items: center; gap: .3rem; text-align: center; border: 2.5px dashed var(--rose); border-radius: var(--radius);
  padding: 2.2rem 1rem; background: var(--blush); cursor: pointer; transition: background .2s; color: var(--ink); }
.dropzone:hover, .dropzone.is-over { background: var(--rose-soft); }
.dropzone svg { width: 44px; height: 44px; fill: none; stroke: var(--rose); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dropzone span { color: var(--muted); font-size: .92rem; }
.overall { margin-top: 1.2rem; }
.bar { height: 10px; background: var(--rose-soft); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #e0607d, var(--gold)); transition: width .25s; }
.queue { list-style: none; padding: 0; margin: 1rem 0 0; max-height: 52vh; overflow: auto; }
.queue li { display: grid; grid-template-columns: 44px 1fr auto; gap: .7rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.queue .qthumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--rose-soft); }
.queue .qname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue .qbar { height: 5px; margin-top: 4px; }
.queue .qstate { font-weight: 800; font-size: .85rem; color: var(--muted); }
.queue .is-ok .qstate { color: #2c8a4e; }
.queue .is-err .qstate { color: #b3283f; }
.queue .qerr { color: #b3283f; font-size: .82rem; }

/* --- Календарь -------------------------------------------------------- */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 1.4rem; align-items: start; }
.cal { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.cal__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.cal__head h2 { margin: 0 auto 0 .2rem; font-size: 1.5rem; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 4px; }
.cal__weekdays span { text-align: center; font-weight: 800; color: var(--muted); font-size: .85rem; padding: .3rem 0; }
.day { position: relative; min-height: 98px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .35rem .4rem;
  cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.day:hover { border-color: var(--rose); background: var(--blush); }
.day.is-dim { opacity: .45; }
.day.is-today { border: 2px solid var(--rose); background: var(--blush); }
.day__num { font-weight: 800; font-size: .95rem; }
.is-today .day__num { color: #fff; background: var(--rose); border-radius: 999px; width: 1.7em; height: 1.7em; display: grid; place-items: center; }
.day__events { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chipev { display: block; font-size: .76rem; line-height: 1.25; padding: 1px 6px; border-radius: 6px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chipev--more { background: #b9a1a8; }
.day__dots { display: none; gap: 3px; flex-wrap: wrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.c-rose { --c: var(--rose); } .c-gold { --c: var(--gold); } .c-sage { --c: var(--sage); } .c-sky { --c: var(--sky); } .c-lilac { --c: var(--lilac); }
.chipev[class*="c-"], .dot[class*="c-"] { background: var(--c); }
.upcoming { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); }
.upcoming h2 { font-size: 1.25rem; }
.up { display: flex; gap: .8rem; align-items: center; width: 100%; background: none; border: 0; border-top: 1px solid var(--line); padding: .7rem .2rem; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.up:first-of-type { border-top: 0; }
.up:hover { background: var(--blush); }
.up__date { flex: none; width: 52px; text-align: center; background: var(--c, var(--rose)); color: #fff; border-radius: 12px; padding: .3rem 0; font-size: .75rem; text-transform: uppercase; font-weight: 800; line-height: 1.15; }
.up__date b { display: block; font: 700 1.4rem var(--font-head); }
.up__text strong { display: block; line-height: 1.25; }
.up__text small { color: var(--muted); }

.modal { position: fixed; inset: 0; z-index: 90; background: rgba(60, 20, 35, .55); display: grid; place-items: center; padding: 1rem; }
.modal__box { position: relative; background: #fff; border-radius: var(--radius); padding: 1.6rem; width: min(520px, 100%); max-height: 88vh; overflow: auto; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.modal__close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 2rem; line-height: 1; color: var(--muted); cursor: pointer; }
.ev { border-left: 5px solid var(--c, var(--rose)); background: var(--blush); border-radius: 12px; padding: .8rem 1rem; margin-bottom: .8rem; }
.ev h3 { margin: 0 0 .2em; font-size: 1.25rem; }
.ev p { margin: .2em 0; }
.ev__meta { color: var(--muted); font-size: .92rem; }
.ev__years { display: inline-block; background: var(--c, var(--rose)); color: #fff; font-weight: 800; border-radius: 999px; padding: .1rem .7rem; font-size: .88rem; margin: .2rem 0; }
.ev .actions { margin-top: .5rem; }
.colors { display: flex; gap: .6rem; flex-wrap: wrap; }
.colors ul { list-style: none; display: flex; gap: .8rem; padding: 0; margin: 0; flex-wrap: wrap; }
.colors label { font-weight: 400; display: flex; gap: .3rem; align-items: center; }
.colors input { width: auto; }
.repeat { border: 1.5px solid var(--line); border-radius: 14px; padding: .8rem 1rem 0; }
.repeat legend { font-weight: 700; padding: 0 .4rem; }
.repeat__every { display: flex; align-items: center; gap: .5rem; font-weight: 400 !important; margin: 0; }
.repeat__every input { width: 5rem; }

/* --- Мобильные -------------------------------------------------------- */
@media (max-width: 860px) {
  .cal-layout { grid-template-columns: 1fr; }
  .upcoming { order: -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .counter { gap: .5rem; flex-wrap: nowrap; }
  .counter__item { min-width: 0; flex: 1; padding: .8rem .4rem; border-radius: 18px; }
  .counter__item span { font-size: .88rem; }
  .burger { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: .6rem 1rem 1rem; display: none; }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn), .nav .btn { text-align: center; }
  .nav__logout { margin: .4rem 0 0; }
  .nav__logout .btn { width: 100%; }
  .story { grid-template-columns: 1fr; }
  .story__img { aspect-ratio: 16 / 10; min-height: 0; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .day { min-height: 58px; align-items: center; padding: .25rem; }
  .day__events { display: none; }
  .day__dots { display: flex; justify-content: center; }
  .lightbox__stage { padding: 56px 8px 16px; }
  .lightbox__nav { width: 38px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
