/*
Theme Name: Сестриця
Description: Тема спільноти «Сестриця», перенесена з макета v0 (sisters-umber.vercel.app). Лише верстка — логіку підключаємо окремо.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: sestrytsia
*/

/* Основні стилі: assets/css/app.css (Tailwind з v0, без змін, крім шляхів до шрифтів). Тут — лише доповнення теми. */

body { margin: 0; background: #f9d9de; }

/* Фон сторінок: білий з ніжно-рожевими відблисками (замість темної рамки v0). */
.sis-bg {
	background-color: #f9d9de;
	background-image:
		radial-gradient(900px 560px at 8% -8%, rgba(249, 217, 222, .55), transparent 65%),
		radial-gradient(760px 500px at 100% 4%, rgba(248, 245, 190, .55), transparent 65%),
		radial-gradient(1000px 640px at 50% 110%, rgba(254, 143, 159, .5), transparent 70%),
		linear-gradient(180deg, #fbe4e7 0%, #f9d9de 100%);
	background-attachment: fixed;
}

/* Біла картка сторінки на рожевому фоні: рамка і помітна м'яка тінь, щоб не зливалась. */
.sis-card {
	border: 1px solid rgba(255, 255, 255, .9);
	box-shadow:
		0 0 0 1px rgba(217, 29, 85, .08),
		0 30px 80px -30px rgba(170, 20, 60, .35),
		0 8px 24px -12px rgba(108, 49, 84, .18);
}
.admin-bar main.min-h-screen { min-height: calc(100vh - 32px); }

/* Логотип перед назвою «сестриця.»: коло трохи вище за висоту літер. */
a:has(> .sis-logo) { white-space: nowrap; }
.sis-logo {
	display: inline-block;
	width: 1.6em;
	height: 1.6em;
	margin-right: .4em;
	vertical-align: -.42em;
	border-radius: 50%;
	box-shadow: 0 2px 8px -2px rgba(170, 20, 60, .25);
}

/* ---------- Акаунти учасниць: вхід, реєстрація, шапка ---------- */

/* Ім'я в кнопці шапки не розпирає її. */
.sis-member-name {
	display: inline-block;
	max-width: 11em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}

.sis-alert {
	margin-bottom: 16px;
	padding: 12px 16px;
	border: 1px solid #f3c9d6;
	border-left: 4px solid #fe8f9f;
	border-radius: 14px;
	background: #fdedf0;
	color: #a3123d;
	font-size: 14px;
	line-height: 1.5;
}
.sis-alert p + p { margin-top: 4px; }

.sis-google-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 13px 20px;
	border: 1px solid #ddcfd4;
	border-radius: 999px;
	background: #fff;
	color: #211c23;
	font-size: 14px;
	font-weight: 600;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.sis-google-btn:hover { border-color: #d91d55; box-shadow: 0 8px 20px -12px rgba(217, 29, 85, .45); transform: translateY(-1px); }

.sis-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 0;
	color: #a3949c;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .14em;
}
.sis-divider::before,
.sis-divider::after { content: ""; flex: 1; height: 1px; background: #eadfe2; }

/* Пастка для ботів у формі реєстрації. */
.sis-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Профіль учасниці (кабінет → Профіль) ---------- */

.sis-profile { max-width: 680px; }
.sis-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sis-hint { font-size: 12px; line-height: 1.5; color: #887b82; font-weight: 400; }
.sis-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #887b82; cursor: pointer; }
.sis-check input { accent-color: #d91d55; }

.sis-avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.sis-avatar-btn { cursor: pointer; box-shadow: 0 6px 14px -6px rgba(170, 20, 60, .6); transition: transform .15s ease; }
.sis-avatar-btn:hover { transform: scale(1.06); }
.sis-avatar-btn:focus-within { outline: 2px solid #d91d55; outline-offset: 2px; }

.sis-alert--ok { border-color: #cfe8d5; border-left-color: #3f9a5a; background: #f3fbf5; color: #2b6b3f; }
.sis-alert--info { border-color: #eadfe2; border-left-color: #d91d55; background: #fffdf8; color: #6f626a; }

/* Instagram з «@» всередині поля. */
.sis-prefix { position: relative; display: block; }
.sis-prefix > span { position: absolute; left: 16px; top: calc(50% + 4px); transform: translateY(-50%); color: #a3949c; font-weight: 400; pointer-events: none; }
.sis-prefix > input { padding-left: 34px; }

/* Інтереси. */
.sis-chip { display: inline-flex; align-items: center; gap: 6px; }
.sis-chip button { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-right: -4px; border-radius: 50%; color: #d91d55; font-size: 15px; line-height: 1; cursor: pointer; }
.sis-chip button:hover { background: #d91d55; color: #fff; }
.sis-tag-add { display: flex; gap: 8px; }
.sis-tag-add input { margin-top: 0; }
.sis-tag-add button,
.sis-btn-outline {
	flex: none;
	padding: 0 20px;
	min-height: 48px;
	border: 1px solid #d91d55;
	border-radius: 999px;
	background: #fff;
	color: #d91d55;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.sis-tag-add button:hover,
.sis-btn-outline:hover { background: #d91d55; color: #fff; }
.sis-suggest {
	padding: 6px 12px;
	border: 1px dashed #e3c3d0;
	border-radius: 999px;
	color: #a3123d;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
}
.sis-suggest:hover { border-style: solid; border-color: #d91d55; background: #fdedf0; }
.sis-suggest[hidden] { display: none; }

.sis-password { padding-top: 32px; border-top: 1px solid #eadfe2; }
button[disabled] { opacity: .5; cursor: not-allowed; }

/* Фото в кнопці шапки й в аватарці кабінету. */
.sis-btn-avatar { width: 22px; height: 22px; margin: -3px 0 -3px -6px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.sis-logout-mobile { display: flex; align-items: center; justify-content: center; border-color: #ddcfd4; color: #887b82; }
@media (min-width: 1024px) { .sis-logout-mobile { display: none; } }
.sis-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sis-label-row a { font-size: 12px; font-weight: 500; color: #b8144a; }
.sis-label-row a:hover { text-decoration: underline; }

/* ---------- Друзі та повідомлення ---------- */

.sis-ava { display: inline-flex; flex: none; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; background: #e8ad8f; color: #fff; font-size: 12px; font-weight: 700; }
.sis-ava img { width: 100%; height: 100%; object-fit: cover; }
.sis-ava.size-10 { width: 40px; height: 40px; }
.sis-ava.size-11 { width: 44px; height: 44px; }
.sis-ava.size-14 { width: 56px; height: 56px; font-size: 15px; }

.sis-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #fe8f9f; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.sis-badge--nav { margin-left: auto; }
.sis-tab { position: relative; }
.sis-tab .sis-badge--nav { position: absolute; top: -4px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 9px; }
.lg\:flex nav a .sis-badge--nav { margin-left: auto; }

.sis-subhead { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #887b82; }
.sis-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; border: 1px dashed #e3c3d0; border-radius: 20px; color: #776a72; font-size: 14px; }

/* Картки учасниць. */
.sis-people { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sis-person { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid #f0e3e7; border-radius: 22px; background: #fff; box-shadow: 0 14px 30px -24px rgba(170, 20, 60, .35); }
.sis-person__head { display: flex; align-items: center; gap: 12px; }
.sis-person__name { font-size: 16px; font-weight: 600; line-height: 1.3; }
.sis-person__meta { margin-top: 2px; font-size: 12px; color: #887b82; }
.sis-person__insta { display: inline-block; margin-top: 2px; font-size: 12px; color: #b8144a; }
.sis-person__bio { font-size: 13px; line-height: 1.5; color: #6f626a; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sis-person__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sis-person__tags span { padding: 4px 10px; border-radius: 999px; background: #fbe2e6; color: #d91d55; font-size: 11px; font-weight: 500; }
.sis-person__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; }

.sis-pbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.sis-pbtn--primary { background: #d91d55; color: #fff; }
.sis-pbtn--primary:hover { background: #b8144a; }
.sis-pbtn--outline { border-color: #d91d55; color: #d91d55; background: #fff; }
.sis-pbtn--outline:hover { background: #fdedf0; }
.sis-pbtn--ghost { color: #887b82; background: transparent; padding: 0 8px; }
.sis-pbtn--ghost:hover { color: #d91d55; }
.sis-pbtn--muted { background: #f6eef1; color: #887b82; cursor: default; }

/* Чат. */
.sis-chat { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 170px); min-height: 460px; margin-top: 8px; border: 1px solid #f0e3e7; border-radius: 24px; overflow: hidden; background: #fff; }
.sis-chat__list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid #f0e3e7; background: #fffdf8; }
.sis-chat__search { padding: 14px; border-bottom: 1px solid #f0e3e7; }
.sis-chat__items { flex: 1; overflow-y: auto; }
.sis-chat__label { padding: 14px 18px 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a3949c; }
.sis-conv { display: flex; align-items: center; gap: 12px; padding: 12px 16px; transition: background .15s ease; }
.sis-conv:hover { background: #fdedf0; }
.sis-conv.is-active { background: #fbe2e6; }
.sis-conv__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sis-conv__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 14px; }
.sis-conv__top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sis-conv__top time { flex: none; font-size: 10px; color: #887b82; }
.sis-conv__preview { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #887b82; }

.sis-chat__view { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.sis-chat__placeholder { margin: auto; text-align: center; color: #6f626a; padding: 24px; }
.sis-chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #f0e3e7; }
.sis-chat__head div strong { display: block; font-size: 15px; }
.sis-chat__head div span { display: block; font-size: 12px; color: #887b82; }
.sis-chat__back { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: #fbe2e6; color: #d91d55; font-size: 24px; line-height: 1; }

.sis-msgs { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 18px; overflow-y: auto; background: linear-gradient(180deg, #fffdf8, #fdf3f6); }
.sis-msgs__empty { margin: auto; color: #887b82; font-size: 14px; }
.sis-msg { max-width: min(78%, 520px); align-self: flex-start; padding: 9px 13px 6px; border-radius: 18px 18px 18px 6px; background: #f3e6eb; color: #211c23; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.sis-msg--mine { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: #d91d55; color: #fff; }
.sis-msg time { display: block; margin-top: 2px; text-align: right; font-size: 10px; opacity: .65; }
.sis-msg.is-sending { opacity: .6; }
.sis-day { align-self: center; margin: 10px 0 4px; padding: 3px 10px; border-radius: 999px; background: #fff; color: #887b82; font-size: 11px; box-shadow: 0 1px 4px rgba(108, 49, 84, .08); }

.sis-composer { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid #f0e3e7; background: #fffdf8; }
.sis-composer textarea { flex: 1; min-height: 44px; max-height: 140px; padding: 11px 16px; border-radius: 22px; background: #fbe2e6; font-size: 14px; line-height: 1.45; resize: none; outline: none; }
.sis-composer button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: #d91d55; color: #fff; cursor: pointer; }
.sis-composer button:hover { background: #b8144a; }
.sis-composer--off { justify-content: center; color: #887b82; font-size: 13px; }
.sis-composer--off a { color: #d91d55; font-weight: 600; }

@media (max-width: 767px) {
	.sis-chat { grid-template-columns: 1fr; height: calc(100vh - 210px); border-radius: 20px; }
	.sis-chat__view { display: none; }
	.sis-chat--open .sis-chat__list { display: none; }
	.sis-chat--open .sis-chat__view { display: flex; }
	.sis-chat__back { display: inline-flex; }
	.sis-chat__placeholder { display: none; }
}

/* ---------- Події ---------- */

.sis-going { color: #2b8a4a; font-weight: 700; }
.sis-event-btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: 16px; border-radius: 999px; background: #d91d55; color: #fff; font-weight: 600; text-align: center; cursor: pointer; }
.sis-event-btn:hover { background: #b8144a; }
.sis-event-btn--outline { border: 1px solid #ddcfd4; background: #fff; color: #887b82; padding: 12px; font-size: 14px; }
.sis-event-btn--outline:hover { background: #fff; border-color: #d91d55; color: #d91d55; }
.sis-event-btn--muted, .sis-event-btn--muted:hover { background: #f3eaee; color: #887b82; cursor: default; }
.sis-event-going { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 999px; background: #eaf6ee; color: #2b6b3f; font-weight: 600; }
.sis-event-online { display: block; padding: 12px 16px; border-radius: 16px; background: #fbe2e6; color: #a3123d; font-weight: 600; text-align: center; }
.sis-addcal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; font-size: 13px; color: #887b82; }
.sis-addcal a { color: #b8144a; font-weight: 600; }
.sis-addcal a:hover { text-decoration: underline; }

.sis-event-content > div { max-width: 760px; color: #4f454b; font-size: 16px; line-height: 1.75; }
.sis-event-content > div > * + * { margin-top: 1em; }
.sis-event-content h2, .sis-event-content h3 { font-family: var(--font-playfair), Georgia, serif; font-size: 1.6em; line-height: 1.2; color: #211c23; }
.sis-event-content ul { list-style: disc; padding-left: 1.3em; }
.sis-event-content ol { list-style: decimal; padding-left: 1.3em; }
.sis-event-content a { color: #b8144a; text-decoration: underline; }
.sis-event-content img { border-radius: 18px; height: auto; }

.sis-crowd { display: flex; flex-wrap: wrap; gap: 0; }
.sis-crowd > span { margin-right: -8px; border-radius: 50%; box-shadow: 0 0 0 3px #fffdf8; }
.sis-crowd__more { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #fbe2e6; color: #d91d55; font-size: 12px; font-weight: 700; }

/* Календар у кабінеті. */
.sis-cal { max-width: 720px; }
.sis-cal__nav { display: flex; align-items: center; gap: 6px; }
.sis-cal__nav > a:not(.rounded-full) { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #fbe2e6; color: #d91d55; font-size: 20px; line-height: 1; }
.sis-cal__nav > a:not(.rounded-full):hover { background: #d91d55; color: #fff; }
.sis-cal .aspect-square { transition: box-shadow .15s ease; }
.sis-cal .aspect-square:hover { box-shadow: inset 0 0 0 1px #d91d55; }
.sis-cal__today { box-shadow: inset 0 0 0 2px #fe8f9f; }
.sis-cal__sel { outline: 2px solid #211c23; outline-offset: 1px; }
.sis-cal__legend { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; font-size: 11px; color: #887b82; }
.sis-cal__legend span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.sis-cal__legend .is-mine { background: #d91d55; }
.sis-cal__legend .is-any { background: #fbe2e6; margin-left: 6px; }
.sis-cal-row--other { background: #fff; border: 1px solid #f0e3e7; }
.sis-cal > div:first-child { flex-wrap: wrap; }

/* ---------- Глянець: текст статті з редактора ---------- */
.prose-sisters h3 { margin-top: 1.5rem; font-family: var(--font-playfair), Georgia, serif; font-size: 1.5rem; line-height: 1.2; color: #261f26; }
.prose-sisters img, .prose-sisters figure { margin-top: 1.5rem; border-radius: 22px; height: auto; max-width: 100%; }
.prose-sisters figure img { margin-top: 0; }
.prose-sisters figcaption { margin-top: .5rem; font-size: .85rem; color: #887b82; text-align: center; }
.prose-sisters iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 22px; margin-top: 1.5rem; }
.prose-sisters .wp-block-embed__wrapper iframe { margin-top: 0; }
.prose-sisters a { text-decoration: underline; text-underline-offset: 4px; }
.prose-sisters strong { color: #261f26; }
.sis-msg a { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.sis-msg--mine a { color: #fff; }
.sis-msg:not(.sis-msg--mine) a { color: #b8144a; }

/* ---------- Панель команди ---------- */

.sis-team { max-width: 920px; }
.sis-team-back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: #d91d55; }
.sis-team-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.sis-team-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.sis-team-actions .sis-event-btn { width: auto; padding: 14px 36px; }
.sis-nav-team { background: #fdedf0; color: #d91d55; border: 1px dashed #e3c3d0; }
.sis-nav-team:hover { background: #fbe2e6; }

.sis-team-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-radius: 20px; background: linear-gradient(120deg, #d91d55, #a3123d); color: #fff; box-shadow: 0 16px 30px -18px rgba(139, 40, 97, .7); }
.sis-team-banner strong { display: block; font-family: var(--font-playfair), Georgia, serif; font-size: 20px; font-weight: 400; }
.sis-team-banner span:first-child { font-size: 13px; opacity: .9; }
.sis-team-banner span:last-child { font-size: 24px; }

/* Великі плитки на головній панелі. */
.sis-tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sis-tile { display: flex; flex-direction: column; border-radius: 26px; background: #fff; border: 1px solid #f0e3e7; box-shadow: 0 20px 40px -30px rgba(170, 20, 60, .45); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.sis-tile:hover { transform: translateY(-2px); box-shadow: 0 26px 50px -30px rgba(170, 20, 60, .55); }
.sis-tile__main { display: flex; flex-direction: column; gap: 6px; padding: 26px 24px 20px; }
.sis-tile__icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-bottom: 10px; border-radius: 20px; background: #fbe2e6; color: #d91d55; }
.sis-tile__main strong { font-family: var(--font-playfair), Georgia, serif; font-size: 30px; font-weight: 400; line-height: 1.1; }
.sis-tile__main span:last-child { font-size: 13px; color: #887b82; }
.sis-tile__cta { display: block; padding: 14px 24px; border-top: 1px solid #f3e7eb; background: #fdf6f8; color: #d91d55; font-size: 14px; font-weight: 700; }
.sis-tile__cta:hover { background: #d91d55; color: #fff; }

/* Рядки списків. */
.sis-rows { display: flex; flex-direction: column; gap: 10px; }
.sis-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 20px; background: #fff; border: 1px solid #f0e3e7; }
.sis-row > img { width: 64px; height: 64px; flex: none; border-radius: 14px; object-fit: cover; }
.sis-row__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.sis-row__body strong { font-size: 15px; font-weight: 600; }
.sis-row__body > span { font-size: 12px; color: #887b82; overflow-wrap: anywhere; }
.sis-row__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.sis-row--member { align-items: flex-start; }
@media (max-width: 640px) {
	.sis-row { flex-wrap: wrap; }
	.sis-row__actions { width: 100%; justify-content: flex-start; }
}
.sis-write summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #b8144a; }
.sis-write form { margin-top: 6px; }

/* Форми. */
.sis-team-form { display: flex; flex-direction: column; gap: 18px; }
.sis-input-lg { font-family: var(--font-playfair), Georgia, serif; font-size: 22px; }
.sis-team-form select { appearance: auto; }
.sis-cover { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sis-cover img { width: 160px; height: 100px; border-radius: 16px; object-fit: cover; }
.sis-cover .sis-pbtn { cursor: pointer; }
.sis-editor { border: 1px solid #eadfe2; border-radius: 18px; overflow: hidden; background: #fff; }
.sis-editor .mce-tinymce { border: 0 !important; box-shadow: none !important; }
.sis-editor .mce-top-part::before { box-shadow: none !important; }
.sis-editor .mce-toolbar-grp { background: #fdf6f8 !important; border-bottom: 1px solid #f3e7eb !important; }
.sis-editor textarea { width: 100%; min-height: 260px; padding: 14px; border: 0; }
[data-inline-image] { cursor: pointer; }
[data-inline-image].is-busy { opacity: .6; pointer-events: none; }

.sis-audience { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; }
.sis-audience legend { margin-bottom: 4px; }
.sis-audience > label { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid #eadfe2; border-radius: 18px; background: #fff; cursor: pointer; }
.sis-audience > label:has(input[type="radio"]:checked) { border-color: #d91d55; background: #fdedf0; }
.sis-audience input[type="radio"] { margin-top: 3px; accent-color: #d91d55; width: 18px; height: 18px; }
.sis-audience > label > span { display: flex; flex-direction: column; flex: 1; gap: 2px; }
.sis-audience strong { font-size: 14px; }
.sis-audience em { font-style: normal; font-size: 12px; color: #887b82; }
/* Нижнє меню кабінету: пункти ділять ширину порівну (для команди їх шість). */
.sis-tab { flex: 1 1 0; min-width: 0; padding-left: 2px !important; padding-right: 2px !important; }
.sis-tab span:not(.sis-badge) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sis-term-add { display: flex; gap: 8px; align-items: center; }
.sis-term-add input { margin-top: 0; }
.sis-term-add .sis-pbtn { flex: none; min-height: 48px; }

/* ---------- Онлайн-статус і профіль ---------- */
.sis-ava-wrap { position: relative; display: inline-flex; flex: none; }
.sis-online-dot { position: absolute; right: 0; bottom: 0; width: 28%; height: 28%; min-width: 10px; min-height: 10px; max-width: 18px; max-height: 18px; border-radius: 50%; background: #2fb35a; box-shadow: 0 0 0 2px #fff; }
.is-online { color: #2b8a4a !important; }
.sis-person__name a:hover, .sis-chat__head a:hover strong { color: #d91d55; }
.sis-chat__head .sis-peer-status { display: block; font-size: 12px; color: #887b82; }
.sis-chat__profile { min-height: 34px; padding: 0 12px; font-size: 12px; }
.sis-chat__head > div > a { display: block; }

.sis-profile-page { max-width: 720px; }
.sis-profile-card { display: flex; flex-direction: column; align-items: center; padding: 28px 22px; border-radius: 28px; background: #fff; border: 1px solid #f0e3e7; text-align: center; box-shadow: 0 20px 40px -30px rgba(170, 20, 60, .45); }
.sis-profile-card__ava .sis-ava { width: 112px; height: 112px; font-size: 28px; box-shadow: 0 0 0 4px #fbe2e6; }
.sis-profile-card__ava .sis-online-dot { width: 22px; height: 22px; right: 6px; bottom: 6px; box-shadow: 0 0 0 3px #fff; }
.sis-profile-card__status { margin-top: 6px; font-size: 14px; color: #887b82; }
.sis-profile-card__bio { max-width: 520px; margin-top: 14px; font-size: 15px; line-height: 1.6; color: #4f454b; }
.sis-profile-card__actions { justify-content: center; margin-top: 18px; }
.sis-profile-tags span { font-size: 13px; padding: 6px 12px; }
.sis-profile-tags span.is-common { background: #d91d55; color: #fff; }
.sis-common { padding: 12px 16px; border-radius: 16px; background: #fdedf0; color: #6f626a; font-size: 14px; }
.sis-common strong { color: #a3123d; }
.mb-4 { margin-bottom: 16px; }

/* ---------- Каталог учасниць і профіль у стилі макета ---------- */
.sis-card-ava { position: absolute; left: 20px; bottom: -24px; }
.sis-card-ava .sis-ava, .sis-profile-ava .sis-ava { border: 4px solid #fff; box-sizing: content-box; }
.sis-ava.size-16 { width: 64px; height: 64px; font-size: 16px; }
.sis-ava.size-24 { width: 96px; height: 96px; font-size: 24px; }
.sis-card-ava .sis-online-dot { right: 2px; bottom: 2px; }
.sis-profile-ava { display: inline-flex; margin-top: -48px; position: relative; }
.sis-profile-ava .sis-online-dot { right: 6px; bottom: 6px; width: 20px; height: 20px; }
.sis-profile-actions .sis-pbtn--primary { flex: 1; min-height: 44px; }
.sis-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sis-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2fb35a; box-shadow: 0 0 0 3px rgba(47, 179, 90, .2); }
.sis-members-gate { max-width: 640px; padding: 28px; border-radius: 26px; background: #fff; border: 1px solid #f0e3e7; box-shadow: 0 20px 40px -30px rgba(170, 20, 60, .45); }

/* ---------- Форум ---------- */
.sis-ava.size-9 { width: 36px; height: 36px; font-size: 11px; }
.sis-ava.size-12 { width: 48px; height: 48px; font-size: 14px; }
.sis-forum-text a { color: #b8144a; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.sis-new-topic { padding: 24px; border-radius: 26px; background: #fff; border: 1px solid #f0e3e7; box-shadow: 0 20px 40px -30px rgba(170, 20, 60, .45); }
.sis-new-topic__title { width: 100%; padding: 6px 0; border: 0; border-bottom: 1px solid #eadfe2; background: transparent; outline: none; font-family: var(--font-playfair), Georgia, serif; font-size: 28px; }
.sis-new-topic__title:focus { border-bottom-color: #d91d55; }
.sis-like { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; color: #887b82; cursor: pointer; transition: background .15s ease, color .15s ease; }
.sis-like:hover { background: #fdedf0; color: #d91d55; }
.sis-like.is-on { background: #fbe2e6; color: #d91d55; font-weight: 600; }
.sis-reply-form { display: flex; align-items: flex-end; gap: 8px; padding: 8px; border: 1px solid #eadfe2; border-radius: 18px; background: #fff; }
.sis-reply-form textarea { flex: 1; min-height: 40px; max-height: 220px; padding: 9px 12px; resize: none; outline: none; font-size: 14px; line-height: 1.5; background: transparent; }
.sis-reply-del { width: 26px; height: 26px; border-radius: 50%; color: #a3949c; font-size: 18px; line-height: 1; cursor: pointer; }
.sis-reply-del:hover { background: #fff; color: #d91d55; }
/* Кнопка «Мій кабінет» у шапці: аватарка трохи більша, ініціали — якщо немає фото. */
.sis-btn-avatar { width: 26px; height: 26px; margin: -4px 2px -4px -10px; }
.sis-btn-avatar--initials { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: #d91d55; font-size: 10px; font-weight: 700; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
/* Активний пункт головного меню. */
nav a.sis-nav-on { color: #d91d55; font-weight: 600; }
[data-mobile-nav] a.sis-nav-on { background: #fdedf0; color: #d91d55; }
.sis-side-nav { display: flex; flex-direction: column; gap: 2px; }
.sis-side-link { padding: 7px 16px; border-radius: 12px; font-size: 13px; font-weight: 500; color: #887b82; }
.sis-side-link:hover { background: #fbe2e6; color: #d91d55; }
/* Кнопка «До сайту» вгорі бокового меню кабінету. */
.sis-to-site { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 16px; background: #fbe2e6; color: #d91d55; font-size: 14px; font-weight: 600; transition: background .15s ease, color .15s ease; }
.sis-to-site:hover { background: #d91d55; color: #fff; }
/* Шапка кабінету: учасниця в рамці + «Вийти». */
.sis-acc-user { display: flex; align-items: center; gap: 8px; }
.sis-acc-pill { display: inline-flex; align-items: center; gap: 10px; max-width: 260px; padding: 4px 14px 4px 4px; border: 1px solid #eadfe2; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: #211c23; transition: border-color .15s ease; }
.sis-acc-pill:hover { border-color: #d91d55; color: #d91d55; }
.sis-acc-pill .sis-ava.size-9 { width: 32px; height: 32px; font-size: 11px; }
.sis-acc-pill span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sis-acc-logout { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border: 1px solid #eadfe2; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: #887b82; transition: border-color .15s ease, color .15s ease; }
.sis-acc-logout:hover { border-color: #d91d55; color: #d91d55; }
@media (max-width: 640px) {
	.sis-acc-pill { padding: 3px; }
	.sis-acc-pill span:last-child, .sis-acc-logout span { display: none; }
	.sis-acc-logout { width: 40px; height: 40px; padding: 0; justify-content: center; }
}

/* ---------- Кнопка «нагору» ---------- */
.scroll-top { position: fixed; right: 20px; bottom: 24px; z-index: 40; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #d91d55; color: #fff; box-shadow: 0 14px 28px -12px rgba(170, 20, 60, .7); cursor: pointer; opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, background .15s ease; }
.scroll-top svg { width: 22px; height: 22px; }
.scroll-top.is-visible { opacity: 1; transform: none; }
.scroll-top:hover { background: #b8144a; }
.scroll-top:focus-visible { outline: 3px solid #f2c4d7; outline-offset: 3px; }
/* У кабінеті на телефоні — над нижнім меню. */
@media (max-width: 1023px) { body:has(.account-tabbar) .scroll-top { bottom: 96px; } }
@media (prefers-reduced-motion: reduce) { .scroll-top { transition: none; } }

/* Обкладинка й фото в редагуванні профілю — одна картка з рамкою. */
.profile-media { margin-top: 24px; border: 1px solid #eadfe2; border-radius: 26px; background: #fff; overflow: hidden; }
.profile-cover-edit { position: relative; height: 170px; background: #fbe2e6; }
.profile-cover-edit img { width: 100%; height: 100%; object-fit: cover; }
.profile-cover-edit__btn { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #d91d55; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 18px -10px rgba(33, 28, 35, .5); }
.profile-cover-edit__btn:hover { background: #d91d55; color: #fff; }
.profile-cover-edit__btn:focus-within { outline: 2px solid #d91d55; outline-offset: 2px; }
.profile-media__row { display: flex; align-items: flex-end; gap: 16px; padding: 0 20px; }
.profile-avatar-edit { position: relative; flex: none; margin-top: -48px; }
.profile-media__info { padding-bottom: 6px; min-width: 0; }
.profile-media__info p:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-media__hints { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding: 12px 20px 16px; border-top: 1px solid #f3e7eb; font-size: 12px; line-height: 1.5; color: #887b82; }
.profile-media__hints strong { color: #6f626a; font-weight: 600; }
.profile-media__hints .sis-check { margin-left: 6px; }
@media (max-width: 520px) { .profile-cover-edit { height: 130px; } .profile-media__row { padding: 0 14px; } .profile-media__hints { padding: 12px 14px 14px; } }

/* Блок «Глянець» на головній: світле фото-тло замість темного. Зліва — легкий світлий серпанок, щоб текст читався. */
.home-glance--photo {
	background-color: #f7dfe6;
	background-image: linear-gradient(90deg, rgba(255, 253, 248, .78) 0%, rgba(255, 253, 248, .45) 45%, rgba(255, 253, 248, 0) 75%), url("assets/img/glance-bg.webp");
	background-size: cover;
	background-position: center;
}
@media (max-width: 1023px) {
	.home-glance--photo { background-image: linear-gradient(180deg, rgba(255, 253, 248, .8) 0%, rgba(255, 253, 248, .55) 55%, rgba(255, 253, 248, .2) 100%), url("assets/img/glance-bg.webp"); }
}
.profile-notify { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 0; padding: 16px 18px; border: 1px solid #eadfe2; border-radius: 20px; background: #fff; }
.profile-notify legend { padding: 0 6px; margin-left: -6px; }
.profile-notify .sis-check { font-size: 14px; color: #4f454b; }

/* ---------- Редактор дописів форуму ---------- */
.sis-rte { margin-top: 12px; border: 1px solid #eadfe2; border-radius: 18px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.sis-rte:focus-within { border-color: #d91d55; box-shadow: 0 0 0 4px #fbe2e6; }
.sis-rte.is-invalid { border-color: #c2414b; box-shadow: 0 0 0 4px #fbe4e6; }
.sis-rte__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid #f3e7eb; background: #fdf6f8; border-radius: 18px 18px 0 0; }
.sis-rte__btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; min-width: 34px; justify-content: center; padding: 0 8px; border-radius: 10px; color: #6f626a; font-size: 13px; font-weight: 600; }
.sis-rte__btn svg { width: 17px; height: 17px; }
.sis-rte__btn:hover, .sis-rte__btn:focus-visible { background: #fbe2e6; color: #d91d55; outline: none; }
.sis-rte__btn--photo { margin-left: auto; color: #d91d55; }
.sis-rte.is-busy .sis-rte__btn--photo { opacity: .5; pointer-events: none; }
.sis-rte__area { position: relative; min-height: 160px; max-height: 60vh; overflow-y: auto; padding: 14px 16px; font-size: 15px; line-height: 1.6; color: #4f454b; outline: none; }
.sis-rte.is-empty .sis-rte__area::before { content: attr(data-placeholder); color: #a3949c; pointer-events: none; position: absolute; }
.sis-rte__loading { padding: 10px 14px; border-radius: 12px; background: #fdedf0; color: #d91d55; font-size: 13px; }
.sis-rte--compact { flex: 1; margin-top: 0; border: 0; border-radius: 12px; box-shadow: none !important; display: flex; flex-direction: column; }
.sis-rte--compact .sis-rte__area { min-height: 40px; max-height: 260px; padding: 9px 12px; font-size: 14px; }
.sis-rte--compact .sis-rte__bar { order: 2; padding: 2px 4px 0; border: 0; background: transparent; }
.sis-rte--compact .sis-rte__btn { height: 30px; min-width: 30px; }
.sis-rte--compact .sis-rte__btn--photo { margin-left: 0; }

/* Форматований текст дописів */
.sis-forum-text p { margin: 0 0 .8em; }
.sis-forum-text p:last-child { margin-bottom: 0; }
.sis-forum-text ul, .sis-forum-text ol { margin: 0 0 .8em; padding-left: 1.4em; }
.sis-forum-text ul { list-style: disc; }
.sis-forum-text ol { list-style: decimal; }
.sis-forum-text blockquote { margin: 0 0 .8em; padding: 10px 16px; border-left: 3px solid #d91d55; border-radius: 12px; background: #fdedf0; font-style: italic; }
.sis-forum-text strong { font-weight: 700; color: #3a3036; }
.sis-forum-text img { display: block; max-width: 100%; max-height: 520px; height: auto; margin: 6px 0; border-radius: 16px; }
.topic-reply .sis-forum-text img { max-height: 360px; }
.sis-rte__area img { max-height: 320px; width: auto; }
.sis-rte--compact .sis-rte__area img { max-height: 160px; }
.topic-manage .sis-pbtn svg { width: 15px; height: 15px; margin-right: 4px; }
.sis-reply-edit { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; color: #a3949c; }
.sis-reply-edit:hover { background: #fff; color: #d91d55; }
.sis-reply-edit svg { width: 14px; height: 14px; }
.topic-reply-edit .sis-rte__area { min-height: 100px; }
.topic-manage .sis-pbtn { white-space: nowrap; }

/* ---------- Спливаючі сповіщення (тости) ---------- */
/* Серверні сповіщення з JS показуються тостом — ховаємо їх одразу, без блимання. */
.js .sis-alert[role="status"] { display: none; }
.sis-toasts { position: fixed; z-index: 60; top: 96px; right: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.sis-toast { position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 14px 40px 14px 14px; overflow: hidden; border: 1px solid #f0e3e7; border-radius: 18px; background: #fffdf8; color: #3a3036; font-size: 14px; line-height: 1.45; box-shadow: 0 24px 48px -24px rgba(120, 25, 75, .45), 0 2px 6px rgba(120, 25, 75, .06); pointer-events: auto; opacity: 0; transform: translateX(calc(100% + 24px)); transition: opacity .3s ease, transform .35s cubic-bezier(.2, .9, .3, 1.1); }
.sis-toast.is-in { opacity: 1; transform: none; }
.sis-toast.is-out { opacity: 0; transform: translateX(calc(100% + 24px)); transition-timing-function: ease-in; }
.sis-toast__icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; }
.sis-toast__icon svg { width: 16px; height: 16px; }
.sis-toast--ok .sis-toast__icon { background: #3f9a5a; }
.sis-toast--info .sis-toast__icon { background: #d91d55; }
.sis-toast--err .sis-toast__icon { background: #d0464f; }
.sis-toast__text { margin: 3px 0 0; }
.sis-toast__close { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; color: #a3949c; font-size: 20px; line-height: 1; cursor: pointer; }
.sis-toast__close:hover { background: #fbe2e6; color: #d91d55; }
.sis-toast__timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; background: currentColor; opacity: .14; animation: sis-toast-timer var(--life, 5s) linear forwards; }
.sis-toast--ok .sis-toast__timer { color: #3f9a5a; opacity: .35; }
.sis-toast--info .sis-toast__timer, .sis-toast--err .sis-toast__timer { color: #d91d55; opacity: .3; }
.sis-toast.is-paused .sis-toast__timer { animation-play-state: paused; }
@keyframes sis-toast-timer { to { transform: scaleX(0); } }
/* Телефон: знизу по центру (під пальцем, не закриває шапку), над нижнім меню кабінету. */
@media (max-width: 767px) {
	.sis-toasts { top: auto; right: 16px; left: 16px; bottom: 16px; width: auto; align-items: stretch; flex-direction: column-reverse; }
	body:has(.account-tabbar) .sis-toasts { bottom: 88px; }
	.sis-toast { transform: translateY(calc(100% + 24px)); }
	.sis-toast.is-out { transform: translateY(calc(100% + 24px)); }
}
@media (prefers-reduced-motion: reduce) {
	.sis-toast, .sis-toast.is-out { transform: none; transition: opacity .2s; }
	.sis-toast__timer { animation: none; }
}
.admin-bar .sis-toasts { top: 128px; }

/* Форум: заголовок зліва, кнопка/пошук/розділи справа (на телефоні — одне під одним). */
.forum-hero { display: grid; gap: 28px; }
.forum-tools { display: flex; flex-direction: column; gap: 12px; }
.forum-tools .forum-create { align-self: flex-start; }
.forum-tools .forum-sections { margin-top: 0; }
.forum-tools .forum-search > a { flex: none; }
@media (min-width: 1024px) {
	.forum-hero { grid-template-columns: minmax(0, 1fr) minmax(380px, 540px); align-items: end; gap: 48px; }
	.forum-tools .forum-create { align-self: flex-end; }
	.forum-tools .forum-sections { justify-content: flex-end; }
}
.forum-hero + .forum-list, .forum-page .forum-hero ~ .forum-list { margin-top: 40px; }
.forum-tools .forum-sections a { padding: 7px 14px; }
.forum-hero > * { min-width: 0; }
.forum-tools .forum-search label { min-width: 0; }
@media (max-width: 639px) { .forum-hero h1 { font-size: clamp(2.4rem, 11.5vw, 3rem); } }

/* ---------- Спливаюче вікно (нова тема форуму) ---------- */
.sis-modal { width: min(760px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0; border-radius: 28px; background: transparent; overflow: visible; color: inherit; }
.sis-modal:not([open]) { display: none; }
.sis-modal[open]:not(:modal) { position: static; width: auto; margin: 24px 0 0; } /* без JS — просто блок на сторінці */
.sis-modal:modal { animation: sis-modal-in .28s cubic-bezier(.2, .9, .3, 1.1); }
.sis-modal::backdrop { background: rgba(38, 20, 32, .42); backdrop-filter: blur(3px); animation: sis-fade .2s ease; }
.sis-modal .sis-new-topic { max-height: calc(100dvh - 48px); overflow-y: auto; margin: 0; box-shadow: 0 40px 80px -30px rgba(80, 15, 50, .55); }
.sis-modal .sis-rte__area { min-height: 200px; max-height: 45vh; }
.sis-modal__close { position: absolute; top: 14px; right: 14px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; background: #fdedf0; color: #a3123d; font-size: 22px; line-height: 1; cursor: pointer; }
.sis-modal__close:hover { background: #fbe2e6; color: #d91d55; }
.sis-modal[open]:not(:modal) .sis-modal__close { display: none; }
html.has-modal { overflow: hidden; }
@keyframes sis-modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sis-fade { from { opacity: 0; } }
/* Телефон: вікно виїжджає знизу на всю ширину. */
@media (max-width: 639px) {
	.sis-modal { width: 100vw; margin: auto 0 0; max-height: 92dvh; border-radius: 26px 26px 0 0; }
	.sis-modal .sis-new-topic { max-height: 92dvh; border-radius: 26px 26px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
	.sis-modal:modal { animation: sis-sheet-in .3s cubic-bezier(.2, .9, .3, 1); }
	.sis-modal .sis-rte__area { min-height: 160px; max-height: 38dvh; }
}
@keyframes sis-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sis-modal:modal, .sis-modal::backdrop { animation: none; } }
@media (max-width: 639px) {
	.sis-modal .sis-new-topic__title { font-size: 22px; padding-right: 40px; }
	.sis-modal .sis-new-topic a.sis-pbtn--ghost { display: none; } /* закриття — хрестиком */
}
.sis-captcha { min-height: 65px; margin-top: 4px; }

/* ---------- Правки замовниці 30.10.2026 ---------- */

/* Шапка: пошук і кругла кнопка входу поруч із бургером. */
.site-header > .site-logo { flex: 0 0 auto; }
.sis-head-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 1 1 auto; min-width: 0; margin-left: 12px; }
.sis-search { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; max-width: 220px; height: 40px; padding: 0 12px; border: 1px solid #eadfe2; border-radius: 999px; background: #fbe2e6; color: #8b6f7d; transition: width .2s ease, padding .2s ease; }
.sis-search:focus-within { border-color: #d91d55; background: #fff; }
.sis-search__ico { display: flex; flex: 0 0 auto; cursor: pointer; }
.sis-search__ico svg { width: 16px; height: 16px; }
.sis-search input { flex: 1 1 auto; min-width: 0; width: 100%; border: 0; background: transparent; outline: none; font-size: 16px; color: #261f26; }
.sis-search input::placeholder { color: #a8949e; }
.sis-search input::-webkit-search-cancel-button { display: none; }
.sis-head-icon { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #d91d55; color: #fff; box-shadow: 0 8px 18px -8px rgba(217, 29, 85, .6); }
.sis-head-icon--user { background: #fbe2e6; padding: 2px; }
.sis-head-icon--user .sis-btn-avatar { width: 36px; height: 36px; margin: 0; }
.site-menu-button { flex: 0 0 auto; }
@media (max-width: 639px) {
	.site-header > .site-logo { font-size: 1.3rem; }
	.site-header { padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 640px) { .sis-head-icon { display: none; } }
/* Від планшета до широкого екрана місця мало: пошук — кнопка-лупа, розкривається при фокусі. */
@media (min-width: 640px) and (max-width: 1279px) {
	.sis-search { flex: 0 0 auto; width: 40px; padding: 0; justify-content: center; }
	.sis-search input { width: 0; flex: 0 0 0; }
	.sis-search:focus-within { width: 200px; padding: 0 12px; justify-content: flex-start; }
	.sis-search:focus-within input { flex: 1 1 auto; }
}
@media (min-width: 1280px) { .sis-search { max-width: 190px; } }

/* Мобільне меню: великі рожеві пункти групами. */
.sis-mnav { color: #d91d55; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; font-weight: 700; }
.sis-mnav-gap { display: block; height: 10px; }

/* Підвал. */
.sis-footer-tagline { max-width: 34em; }
.sis-footer-tagline a { color: #d91d55; font-weight: 600; }
.sis-footer-tagline a:hover { text-decoration: underline; }

/* Про нас: лапки впритул до цитати, заголовок картки поруч з іконкою. */
.sis-quote-mark { margin-bottom: -.15em; }
.sis-value-head { display: flex; align-items: center; gap: 14px; }
.sis-value-head > div { flex: 0 0 auto; }
.sis-value-head h2 { line-height: 1.1; }

/* Глянець: заголовок на фото читається на будь-якій картинці. */
.glance-tile > .bg-gradient-to-t { background: linear-gradient(to top, rgba(33, 28, 35, .92) 0%, rgba(33, 28, 35, .7) 40%, rgba(33, 28, 35, .2) 75%, rgba(33, 28, 35, .05) 100%); }
.glance-tile > img { opacity: .5; }
.glance-tile .sis-tile-body { min-height: inherit; }
.sis-tile-body h2 { font-weight: 500; text-shadow: 0 2px 14px rgba(20, 10, 18, .55); }
.sis-tile-body p { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 8px rgba(20, 10, 18, .5); }

/* «Додати на екран». */
.sis-install { position: fixed; inset: auto 0 0; z-index: 60; padding: 0 10px calc(10px + env(safe-area-inset-bottom)); animation: sis-sheet-in .35s cubic-bezier(.2, .9, .3, 1); }
.sis-install[hidden], .sis-install [hidden] { display: none !important; }
.sis-install__bar, .sis-install__help { position: relative; padding: 16px; border-radius: 22px; background: #211c23; color: #fffdf8; box-shadow: 0 -10px 40px -10px rgba(40, 10, 30, .45); }
.sis-install__head { display: flex; align-items: center; gap: 12px; padding-right: 28px; }
.sis-install__ico { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #fe8f9f, #d91d55); }
.sis-install__ico svg { width: 22px; height: 22px; }
.sis-install__title { font-weight: 700; font-size: 16px; }
.sis-install__sub { margin-top: 2px; font-size: 13px; color: #c7b9c0; }
.sis-install__btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; padding: 13px; border-radius: 14px; background: linear-gradient(90deg, #d91d55, #fe8f9f 60%, #fe8f9f); color: #fff; font-weight: 700; font-size: 15px; }
.sis-install__btn svg { width: 18px; height: 18px; }
.sis-install__x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fffdf8; font-size: 20px; line-height: 1; }
.sis-install__help .sis-install__sub { margin: 8px 0 12px; padding-right: 30px; line-height: 1.45; }
.sis-install__steps { display: grid; gap: 10px; font-size: 14px; }
.sis-install__steps li { display: flex; align-items: center; gap: 10px; }
.sis-install__steps li > span { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fe8f9f; font-weight: 700; font-size: 13px; }
.sis-install__inline { display: inline; width: 16px; height: 16px; vertical-align: -3px; margin: 0 2px; }
.sis-install__ok { width: 100%; margin-top: 14px; padding: 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .2); color: #fffdf8; font-weight: 700; }
@media (min-width: 769px) { .sis-install { display: none !important; } }

/* Шапка: логотип не липне до меню на ноутбуках. */
@media (min-width: 1024px) {
	.site-header > .site-nav { margin-left: 32px; flex: 0 1 auto; }
	.site-header > .site-nav { gap: 22px; }
}
@media (min-width: 1280px) { .site-header > .site-nav { gap: 28px; } }

/* ---------- Бейджі ---------- */
.sis-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .16em; color: #d91d55; }
.sis-badges-card { padding: 18px 20px 20px; border-radius: 24px; background: #fbf8d6; }
.sis-badges-card .sis-medal--auto { background: #fff; }
.sis-badges-card .sis-progress__bar { background: #fff; }
.sis-medal { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; line-height: 1; }
.sis-medal--auto { background: #f8f5be; box-shadow: inset 0 0 0 2px #efe98f; }
.sis-medal--gift { background: #f9d9de; box-shadow: inset 0 0 0 2px #fe8f9f; }
.sis-medal--team { background: #d91d55; box-shadow: inset 0 0 0 3px #fe8f9f; }
.sis-medal--lg { width: 60px; height: 60px; font-size: 30px; }
.sis-medal b { position: absolute; right: -4px; bottom: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #d91d55; color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.sis-level { display: flex; align-items: center; gap: 14px; }
.sis-level strong { display: block; font-size: 16px; color: #261f26; }
.sis-level span { font-size: 13px; color: #887b82; }
.sis-progress__bar { height: 8px; border-radius: 4px; background: #f9d9de; overflow: hidden; }
.sis-progress__bar i { display: block; height: 100%; border-radius: 4px; background: #d91d55; }
.sis-progress p { margin-top: 8px; font-size: 12px; color: #887b82; }
.sis-medals { display: flex; flex-wrap: wrap; gap: 10px; }
.sis-badges-card textarea, .sis-gift textarea, .sis-award input[type="text"] { width: 100%; margin-top: 8px; padding: 10px 14px; border: 1px solid #eadfe2; border-radius: 16px; background: #fff; font-size: 14px; outline: none; }
.sis-badges-card textarea:focus, .sis-gift textarea:focus, .sis-award input:focus { border-color: #d91d55; }

.sis-gift { padding: 20px; border-radius: 24px; background: #fdedf0; }
.sis-gift__title { font-weight: 700; color: #261f26; }
.sis-gift__opts { display: grid; gap: 8px; margin: 12px 0 4px; }
@media (min-width: 640px) { .sis-gift__opts { grid-template-columns: 1fr 1fr; } }
.sis-gift__opt { position: relative; display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; align-items: center; padding: 12px; border: 2px solid transparent; border-radius: 18px; background: #fff; cursor: pointer; }
.sis-gift__opt input { position: absolute; opacity: 0; pointer-events: none; }
.sis-gift__opt > span { grid-row: span 2; font-size: 26px; text-align: center; }
.sis-gift__opt b { font-size: 14px; color: #261f26; }
.sis-gift__opt small { font-size: 12px; line-height: 1.35; color: #887b82; }
.sis-gift__opt:has(input:checked) { border-color: #d91d55; }
.sis-gift__opt:has(input:focus-visible) { outline: 2px solid #d91d55; outline-offset: 2px; }

.sis-thanks { display: grid; gap: 10px; }
.sis-thank { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid #eadfe2; border-radius: 20px; background: #fff; }
.sis-thank__body { flex: 1; min-width: 0; font-size: 14px; color: #6f626a; }
.sis-thank__body strong { color: #261f26; }
.sis-thank__body a { color: #d91d55; font-weight: 600; }
.sis-thank blockquote { margin-top: 6px; color: #4f454b; line-height: 1.5; }
.sis-thank__take button { width: 28px; height: 28px; border-radius: 50%; color: #a3949c; font-size: 18px; line-height: 1; }
.sis-thank__take button:hover { background: #fdedf0; color: #d91d55; }

.sis-awards { display: grid; gap: 8px; margin-top: 10px; }
.sis-award { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid #eadfe2; }
.sis-award > span { flex: 1; min-width: 0; font-size: 14px; }
.sis-award > span b { display: block; }
.sis-award.is-on { border-color: #d91d55; }
.sis-year-apps { padding: 16px 18px; border-radius: 20px; background: #f8f5be; font-size: 14px; }

/* ---------- Сестриця року ---------- */
.sis-vote-banner { background: #f8f5be; color: #7a1236; box-shadow: none; }
.sis-year-status { max-width: 760px; padding: 18px 20px; border-radius: 20px; background: #f8f5be; color: #4f454b; line-height: 1.55; }
.sis-year-status strong { color: #261f26; }
.sis-year-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .sis-year-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sis-year-grid { grid-template-columns: repeat(3, 1fr); } }
.sis-cand { display: flex; flex-direction: column; padding: 20px; border: 2px solid #eadfe2; border-radius: 24px; background: #fff; }
.sis-cand.is-mine { border-color: #d91d55; }
.sis-cand__head { display: flex; align-items: center; gap: 14px; }
.sis-cand__head strong { display: block; font-size: 17px; color: #261f26; }
.sis-cand__head small { font-size: 13px; color: #887b82; }
.sis-cand blockquote { margin-top: 14px; font-size: 14px; line-height: 1.55; color: #4f454b; }
.sis-cand form, .sis-cand__voted { margin-top: auto; padding-top: 16px; }
.sis-cand__voted { font-weight: 700; color: #d91d55; }
.sis-year-winner { display: flex; align-items: center; gap: 18px; max-width: 760px; padding: 20px; border-radius: 24px; background: #d91d55; color: #fff; }
.sis-year-winner .sis-eyebrow, .sis-year-winner p { color: #f9d9de; }
.sis-year-winner a { color: #fff; }
.sis-year-list { display: grid; gap: 8px; }
.sis-year-cand { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; }
.sis-year-cand.is-winner { box-shadow: inset 0 0 0 2px #d91d55; }
.sis-year-cand span, .sis-year-cand em { display: block; margin-top: 2px; font-size: 13px; color: #6f626a; }
.sis-year-cand b { color: #d91d55; }

/* Бейджі в картках каталогу учасниць. */
.sis-medals--card { gap: 6px; }
.sis-medal--sm { width: 30px; height: 30px; font-size: 15px; }
.sis-medal--sm b { right: -6px; bottom: -5px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 9px; line-height: 16px; }
.sis-medals__more { display: inline-flex; align-items: center; height: 30px; padding: 0 8px; border-radius: 15px; background: #f9d9de; color: #a3123d; font-size: 12px; font-weight: 700; }
.sis-card-badges { padding: 10px 12px 12px; border-radius: 16px; background: #fbf8d6; }
.sis-card-badges__title { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a3123d; }
.sis-card-badges__title span { padding: 1px 7px; border-radius: 999px; background: #d91d55; color: #fff; letter-spacing: 0; }
.sis-card-badges .sis-medal--auto { background: #fff; }
.sis-row--wait { box-shadow: inset 3px 0 0 #d91d55; }

/* Каталог учасниць: на широкому екрані пошук праворуч від заголовка, а не під ним. */
@media (min-width: 1024px) {
	.members-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; }
	.members-page > * { grid-column: 1 / -1; }
	.members-page > div:first-child { grid-column: 1; grid-row: 1; }
	.members-page > .members-search { grid-column: 2; grid-row: 1; align-self: end; margin-top: 0; max-width: none; }
	.members-page > .sis-members-gate { grid-column: 2; grid-row: 1; align-self: end; margin-top: 0; }
}

/* Події: пошук праворуч від кнопок-фільтрів. */
.events-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.events-search { flex: 1 1 100%; }
.events-search input::-webkit-search-cancel-button { display: none; }
@media (min-width: 768px) { .events-search { flex: 0 1 340px; } }
.sis-card-badges__empty { font-size: 12px; line-height: 1.4; color: #887b82; }
.sis-card-badges.is-empty { background: #fdf6e3; }
.sis-card-badges.is-empty .sis-card-badges__title span { background: #d8c9cf; }

/* Кабінет: картка сестриці з реальним рівнем і бейджі. */
.sis-dash-card { padding: 20px; border-radius: 26px; background: #d91d55; color: #fff; }
.sis-dash-card__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .15em; color: #f9d9de; }
.sis-dash-card__level { margin-top: 14px; font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.sis-dash-card__sub { margin-top: 4px; font-size: 14px; color: #fbe2e6; }
.sis-dash-card__medal { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #f8f5be; font-size: 26px; }
.sis-dash-card__label { font-size: 12px; color: #f9d9de; }
.sis-dash-card__num { font-size: 24px; font-weight: 700; }
.sis-dash-card__num span { font-size: 14px; font-weight: 400; }
.sis-dash-card__bar { height: 8px; margin-top: 8px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.sis-dash-card__bar i { display: block; height: 100%; border-radius: 4px; background: #f8f5be; }
.sis-dash-card__hint { margin-top: 8px; font-size: 13px; color: #fbe2e6; }
.sis-how { display: grid; gap: 8px; }
@media (min-width: 640px) { .sis-how { grid-template-columns: repeat(3, 1fr); } }
.sis-how > div { display: flex; gap: 10px; padding: 12px 14px; border-radius: 18px; background: #fbf8d6; }
.sis-how span { font-size: 22px; line-height: 1.2; }
.sis-how p { font-size: 12px; line-height: 1.45; color: #6f626a; }
.sis-how strong { display: block; font-size: 14px; color: #261f26; }
.sis-gift-people { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; }
.sis-gift-people a { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; font-size: 12px; font-weight: 600; color: #261f26; }
