/* Frutiger Aero: единые поверхности для всех страниц ramenye. */
:root {
  color-scheme: light;
  --bg: #aac9b7;
  --fg: #10231b;
  --muted: #304c40;
  --link: #164d38;
  --visited: #51456b;
  --accent: #3e9b6f;
  --focus: #247454;
  --line: #5c9d7b;
  --edge: rgba(255,255,255,.95);
  --surface: rgba(246,255,251,.58);
  --glass: radial-gradient(ellipse at 0% 0%,rgba(255,255,255,.72),transparent 58%),linear-gradient(90deg,rgba(255,255,255,.60),rgba(192,235,216,.35) 48%,rgba(116,196,157,.28));
  --title: linear-gradient(90deg,rgba(255,255,255,.86),rgba(194,239,216,.55) 50%,rgba(102,181,139,.35));
  --gel: linear-gradient(180deg,#ffffff 0%,#dcfff0 11%,#93e3bc 45%,#42bc7c 50%,#22965d 82%,#62d09a 100%);
  --gel-hover: linear-gradient(180deg,#ffffff 0%,#eafff5 11%,#b5f0d2 45%,#63d69a 50%,#39b875 82%,#82e1b0 100%);
  --button-fg: #08251a;
  --button-edge: #21774f;
  --button-shadow: inset 0 1px 1px #fff,inset 0 -3px 4px #0d6e4580,0 3px 0 #1e714d,0 7px 12px #174b3638;
  --pressed-shadow: inset 0 3px 7px #0b593b88,0 1px 0 #ffffffaa;
  --panel-shadow: inset 0 1px 0 #fff,inset 0 -1px 0 #ffffff55,0 1px 4px #174b3638,0 14px 30px #174b3638;
  --hover: #c9f0da;
  --field: rgba(252,255,253,.76);
  --error: #962b30;
  --error-bg: #fff0ef;
  --danger: linear-gradient(180deg,#ca7479 0%,#af434e 48%,#8e2331 50%,#a43742 100%);
  --font-ui: "Segoe UI", Tahoma, Verdana, Arial, sans-serif;
  --font-mono: Consolas, "Courier New", monospace;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #091912;
  --fg: #edfff4;
  --muted: #b5d9c4;
  --link: #b6f1cf;
  --visited: #d0c0ec;
  --accent: #58c78d;
  --focus: #9aefc1;
  --line: #3f8d62;
  --edge: rgba(214,255,232,.30);
  --surface: rgba(13,38,24,.68);
  --glass: radial-gradient(ellipse at 0% 0%,rgba(200,255,225,.13),transparent 60%),linear-gradient(90deg,rgba(35,82,55,.70),rgba(13,55,35,.55) 48%,rgba(7,31,20,.72));
  --title: linear-gradient(90deg,rgba(137,211,166,.32),rgba(44,126,77,.24) 50%,rgba(9,47,26,.30));
  --gel: linear-gradient(180deg,#f5fff9 0%,#c5f5d9 11%,#72dba0 45%,#30b873 50%,#188a52 82%,#4bc889 100%);
  --gel-hover: linear-gradient(180deg,#fff 0%,#e1ffed 11%,#9aebbb 45%,#4dce88 50%,#25a864 82%,#6cdda1 100%);
  --button-fg: #062016;
  --button-edge: #36a66a;
  --hover: #245d3d;
  --field: #101d13;
  --error: #ffb5b9;
  --error-bg: #361b24;
  --panel-shadow: inset 0 1px 0 #d9f6b940,0 1px 3px #0008,0 12px 30px #0006;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; isolation: isolate; position: relative; font: 15px/1.55 var(--font-ui); color: var(--fg); }
/* Спокойное холодное стекло фона отделяет насыщенные зелёные элементы. */
body::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(110deg,#d5dfe3,#e2e9eb 52%,#d3dee2); }
body::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%,#ffffff30,transparent 70%); }
[data-theme="dark"] body::before { background: linear-gradient(110deg,#111b22,#162128 52%,#111d24); }
[data-theme="dark"] body::after { opacity: .12; }
a { color: var(--link); text-underline-offset: 3px; }
a:visited { color: var(--visited); }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:where(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .6; }
[hidden] { display: none !important; }
code { font-family: var(--font-mono); background: var(--hover); padding: 2px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.rule { border: 0; height: 1px; background: var(--line); margin: 18px 0; }
.skip-link { position: absolute; left: 10px; top: -100px; z-index: 1000; background: var(--field); color: var(--fg); padding: 12px; border-radius: 8px; }
.skip-link:focus { top: 10px; }

/* Прозрачная панель навигации, как стекло Windows Aero. */
.topbar { position: sticky; top: 0; z-index: 100; background: var(--glass); border: 1px solid var(--edge); border-top: 0; border-radius: 0 0 22px 22px; box-shadow: 0 9px 22px #243d2438; backdrop-filter: blur(22px) saturate(1.35); -webkit-backdrop-filter: blur(22px) saturate(1.35); }
.topbar__inner { max-width: 1120px; margin: auto; padding: 12px 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.logo, .logo:visited { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; color: #ffd84a; text-decoration: none; font-size: 26px; font-weight: 700; letter-spacing: -.8px; text-shadow: 0 1px 1px #4b3900,0 0 8px #ffd84a66; }
.cats__icon, .profile-orb { position: relative; flex-shrink: 0; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--button-edge); color: var(--button-fg); background: radial-gradient(ellipse at 30% 10%,#fff 0%,#ffffff88 18%,transparent 42%),linear-gradient(180deg,#b9f5d0 0%,#48c984 48%,#168850 52%,#43bd7b 100%); box-shadow: inset 0 1px 2px #fff,inset 0 -3px 5px #075c3c88,0 4px 8px #0f4a3238; }
.profile-orb { width: 70px; height: 70px; font-size: 32px; }
.theme-toggle, .burger { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--button-edge); background: var(--gel); color: var(--button-fg); box-shadow: var(--button-shadow); font-size: 22px; }
.burger { flex-direction: column; gap: 4px; }
.burger span { width: 18px; height: 2px; background: var(--button-fg); border-radius: 2px; box-shadow: 0 1px #fff8; }
.nav { display: none; width: 100%; }
.nav.is-open { display: flex; flex-direction: column; gap: 8px; }
.nav__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nav__list li { min-width: 0; }
.nav__list a, .nav__logout button { display: flex; align-items: center; min-height: 44px; padding: 8px 13px; border-radius: 8px; border: 1px solid var(--edge); color: var(--fg); text-decoration: none; background: var(--gel); color: var(--button-fg); border-color: var(--button-edge); box-shadow: var(--button-shadow); text-shadow: 0 1px #ffffff80; overflow-wrap: anywhere; }
.nav__logout { margin: 0; }
.nav__logout button { width: 100%; }
.nav__list a:hover, .nav__logout button:hover { background: var(--gel-hover); }
.nav__list a:active, .nav__logout button:active { box-shadow: var(--pressed-shadow); transform: translateY(2px); }
.nav__accent { font-weight: 700; }
@media (min-width: 900px) {
  .burger { display: none; }
  .nav, .nav.is-open { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .nav__list { flex-direction: row; flex-wrap: wrap; }
  .nav__list--right { margin-left: auto; }
}

.page { width: 100%; max-width: 1060px; padding: 30px 20px 52px; margin: 0 auto; flex: 1; min-width: 0; }
.win { position: relative; min-width: 0; margin: 0 0 22px; border: 1px solid var(--edge); border-radius: 14px; background: var(--glass); box-shadow: var(--panel-shadow); backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15); }
.win::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at 8% 6%,#ffffff70,transparent 24%),radial-gradient(circle at 94% 4%,#adf2d446,transparent 20%),linear-gradient(90deg,#ffffff20,transparent 38%,#42bb7c16 100%); }
.win__title { margin: 0; display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 13px 13px 0 0; background: var(--title); border-bottom: 1px solid var(--line); box-shadow: inset 0 1px var(--edge); font-size: 17px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.win__title::before { content: ""; width: 12px; height: 12px; flex-shrink: 0; border-radius: 50%; background: var(--gel); border: 1px solid var(--button-edge); box-shadow: inset 0 1px #fff,0 1px 2px #0003; }
/* Блики остаются под текстом и не перехватывают клики. */
.win__title, .win__body { position: relative; z-index: 1; }
[data-theme="dark"] .win::after { opacity: .15; }
.win__body { padding: 20px; min-width: 0; }
.win__body > :first-child { margin-top: 0; }
.win__body > :last-child { margin-bottom: 0; }
.win--error { max-width: 650px; margin: 26px auto; }
.win--error .win__title::before { background: var(--danger); border-color: #8d3341; }
.win--error .win__body { padding: 26px; }
.crumbs { padding: 10px 16px; margin: 0 0 18px; background: var(--surface); border: 1px solid var(--edge); border-radius: 20px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.cat-desc { color: var(--muted); margin: 0; }
.empty { margin: 0; padding: 10px 0; color: var(--muted); }
.cats { list-style: none; padding: 0; margin: 0; }
.cats__item { display: flex; flex-wrap: wrap; gap: 0 18px; align-items: center; padding: 8px 10px; margin: 3px 0; border: 1px solid rgba(255,255,255,.50); border-radius: 12px; background: linear-gradient(90deg,rgba(255,255,255,.38),rgba(116,223,163,.16) 52%,rgba(65,180,113,.12)); box-shadow: inset 0 1px #ffffffaa,inset 0 -2px 4px #14734430,0 3px 7px #174b3620; }
.cats__item:last-child { margin-bottom: 0; }
.cats__item:hover { background: linear-gradient(90deg,#ffffff70,#8de6b24d 52%,#50c58733); box-shadow: inset 0 1px #fff,inset 0 -2px 4px #14734440,0 4px 10px #174b3630; }
.cats__link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.cats__icon { width: 26px; height: 26px; font-size: 18px; }
.cats__desc { flex: 1 1 100%; padding-left: 36px; color: var(--muted); font-size: 13px; margin: 0 0 6px; overflow-wrap: anywhere; }
@media (min-width: 720px) { .cats__link { flex: 0 0 220px; } .cats__desc { flex: 1; padding: 0; margin: 0; } }

/* Выпуклые кнопки: блик, перелом отражения, нижняя кромка и нажатие. */
.btn, button.btn, input[type="submit"], .feed-toolbar nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 22px; border: 1px solid var(--button-edge); background: var(--gel); color: var(--button-fg); font: 600 14px/1.4 var(--font-ui); text-decoration: none; text-align: center; text-shadow: 0 1px #ffffff80; box-shadow: var(--button-shadow); cursor: pointer; overflow-wrap: anywhere; max-width: 100%; transition: transform .12s ease,box-shadow .12s ease; }
.btn:visited, .feed-toolbar nav a:visited { color: var(--button-fg); }
.btn:hover, input[type="submit"]:hover, .theme-toggle:hover, .burger:hover, .feed-toolbar nav a:hover { background: var(--gel-hover); transform: translateY(-1px); }
.btn:active, input[type="submit"]:active, .theme-toggle:active, .burger:active, .feed-toolbar nav a:active { transform: translateY(2px); box-shadow: var(--pressed-shadow); }
.btn.btn--danger, .btn.btn--danger:visited, .btn.btn--danger:hover { background: var(--danger); color: #fff; border-color: #752032; text-shadow: 0 1px #4f172d; box-shadow: inset 0 1px #ffffff88,inset 0 -2px 3px #50152266,0 3px 0 #67192b,0 6px 9px #0003; }
.btn.btn--danger:active { box-shadow: var(--pressed-shadow); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }

/* Изображения и действия используют те же стеклянные поверхности в обеих темах. */
.post-gallery { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: flex-start; gap: 12px; margin: 22px auto; }
.image-tile { display: flex; flex: 0 1 240px; flex-direction: column; gap: 8px; padding: 8px; min-width: 0; background: var(--surface); border: 1px solid var(--edge); border-radius: 12px; box-shadow: var(--panel-shadow); font-size: 12px; }
.image-tile img { width: 100%; height: 160px; object-fit: contain; border-radius: 8px; background: var(--field); }
.feed-thumbnail { display: block; max-width: 180px; max-height: 120px; border-radius: 10px; border: 1px solid var(--line); margin-top: 12px; }
.post-engagement, .lightbox-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 22px 0; }
.post-engagement form { margin: 0; }
.btn[aria-pressed="true"] { box-shadow: var(--pressed-shadow); }
.reply-reference { padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 8px 8px 0; }
.reply-list { padding-left: 22px; overflow-wrap: anywhere; }
.reply-list li + li { margin-top: 12px; }
.lightbox { max-width: min(1100px,94vw); max-height: 94vh; padding: 16px; color: var(--fg); background: var(--bg); border: 1px solid var(--edge); border-radius: 16px; box-shadow: var(--panel-shadow); }
.lightbox::backdrop { background: #04120dcc; backdrop-filter: blur(8px); }
.lightbox-actions { justify-content: flex-end; margin: 0 0 16px; }
.lightbox > img { display: block; max-width: 100%; max-height: 72vh; object-fit: contain; margin: auto; }
.upload-progress { padding: 14px; margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.upload-progress progress { width: 100%; accent-color: var(--accent); }

/* Комментарии остаются только внутри страницы исходного поста. */
.comment-form { margin-bottom: 28px; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--panel-shadow); }
.comment-form textarea { min-height: 110px; }
.comment-list { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.comment-item { min-width: 0; padding: 16px; border-radius: 12px; border: 1px solid var(--edge); background: var(--glass); box-shadow: var(--panel-shadow); overflow-wrap: anywhere; }
.comment-item .post-meta { margin: 0 0 10px; }
.comment-body { line-height: 1.65; }
.comment-engagement { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.reaction-mark { color: #000; display: inline-block; font: 700 17px/1 var(--font-mono); text-shadow: none; margin-right: 4px; }
[data-reaction-form] { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
[data-reaction-status]:empty { display: none; }
.comment-engagement form { margin: 0; }
.comment-engagement .btn { min-height: 38px; padding: 6px 16px; }

/* Все формы: регистрация, вход, профиль, посты и категории. */
.auth-window { max-width: 570px; margin: 16px auto 28px; }
.account-form p { margin: 0 0 19px; }
.account-form label { display: block; margin-bottom: 7px; font-weight: 600; }
.account-form input:not([type="hidden"]):not([type="submit"]), .account-form textarea, .account-form select {
  display: block; width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--field); color: var(--fg); font: 16px/1.5 var(--font-ui); box-shadow: inset 0 2px 5px #1d361522,0 1px var(--edge);
}
.account-form textarea { min-height: 190px; resize: vertical; }
.account-form select { padding-right: 30px; }
.account-form input:disabled { opacity: .75; cursor: not-allowed; }
.account-form input:focus, .account-form textarea:focus, .account-form select:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-help, .helptext { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; margin: 7px 0; overflow-wrap: anywhere; }
.errorlist { color: var(--error); padding: 10px 12px 10px 28px; background: var(--error-bg); border: 1px solid var(--error); border-radius: 8px; }
.errorlist li { margin: 3px 0; }
.flash { list-style: none; padding: 0; margin: 0 0 22px; }
.flash__item { margin: 0 0 10px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: inset 0 1px var(--edge),0 3px 8px #16321b1f; overflow-wrap: anywhere; }
.flash__item--success { border-left: 5px solid var(--accent); }
.flash__item--error, .deleted-note { color: var(--error); background: var(--error-bg); border: 1px solid var(--error); padding: 12px 16px; border-radius: 10px; }
.profile-summary { display: flex; align-items: center; gap: 18px; }

/* Лента сохраняет компактный вертикальный список, а не плитку. */
.feed-heading { margin: 28px 0 16px; font: 600 23px/1.3 var(--font-ui); color: var(--fg); }
.feed-toolbar__actions { display: flex; align-items: center; gap: 12px; }
.search-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--button-edge); border-radius: 50%; background: var(--gel); color: #000; box-shadow: var(--button-shadow); }
.search-toggle span { position: relative; width: 15px; height: 15px; border: 2px solid #000; border-radius: 50%; font-size: 0; }
.search-toggle span::after { content: ""; position: absolute; width: 8px; height: 2px; background: #000; right: -6px; bottom: -3px; transform: rotate(45deg); }
.ban-dialog { width: min(620px,calc(100% - 28px)); max-height: 90vh; overflow-y: auto; padding: 0; border: 2px solid var(--error); border-radius: 14px; background: var(--bg); color: var(--fg); box-shadow: 0 20px 70px #0009; }
.ban-dialog::backdrop { background: #0a1014cc; backdrop-filter: blur(5px); }
.ban-dialog__header { display: flex; align-items: center; gap: 16px; padding: 18px; background: var(--error-bg); color: var(--error); border-bottom: 1px solid var(--error); }
.ban-dialog__header h2 { margin: 0; font-size: 25px; }
.ban-warning { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border: 2px solid currentColor; border-radius: 50%; font-size: 30px; font-weight: bold; }
.ban-dialog__body { padding: 20px; line-height: 1.7; overflow-wrap: anywhere; }
.ban-dialog__lead { font-weight: 600; }
.ban-dialog__footer { display: flex; justify-content: flex-end; margin-top: 20px; }
.ban-dialog__footer .btn { gap: 7px; }
.ban-status { color: var(--error); background: var(--error-bg); border: 1px solid var(--error); border-radius: 10px; padding: 12px; }
.account-form .check-row { display: flex; align-items: flex-start; gap: 12px; }
.account-form .check-row input[type="checkbox"] { width: 20px; min-height: 20px; flex-shrink: 0; margin-top: 4px; }
.feed-search { margin: 0 0 22px; padding: 14px 16px; border: 1px solid var(--edge); border-radius: 12px; background: var(--surface); box-shadow: var(--panel-shadow); }
.feed-search > label { display: block; margin-bottom: 7px; font-weight: 600; }
.feed-search__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.feed-search input[type="search"] { flex: 1 1 260px; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--fg); font: 16px/1.4 var(--font-ui); }
.feed-search .form-help { margin-bottom: 0; }
.feed-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; margin: 0 0 22px; }
.feed-toolbar nav { display: flex; flex-wrap: wrap; gap: 10px; }
.feed-toolbar nav a { background: var(--gel); color: var(--button-fg); border-color: var(--button-edge); box-shadow: var(--button-shadow); }
.feed-toolbar nav a:visited { color: var(--button-fg); }
.feed-toolbar nav a:hover { background: var(--gel-hover); }
.feed-toolbar nav a[aria-current="true"] { background: var(--gel); color: var(--button-fg); border-color: var(--button-edge); box-shadow: var(--pressed-shadow); }
.post-row { border-left: 4px solid var(--accent); }
.post-row .win__body { padding: 14px 20px; }
.post-subject { font-size: 21px; line-height: 1.4; margin: 0 0 4px; }
.post-subject a { display: block; min-height: 44px; padding: 5px 0; color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
.post-subject a:visited { color: var(--visited); }
.post-subject a:hover { color: var(--focus); text-decoration: underline; text-underline-offset: 5px; }
.post-meta { margin: 0 0 14px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.post-detail .win__title { font-size: clamp(20px,3vw,28px); padding: 18px 22px; }
.post-body { font: 16px/1.8 var(--font-ui); overflow-wrap: anywhere; padding: 16px 0 22px; }
.post-actions { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin: 28px 0; }
.pagination span { background: var(--surface); border-radius: 20px; padding: 10px 14px; }
.composer { max-width: 800px; margin: 12px auto; }
.composer-submit { position: sticky; bottom: 0; z-index: 1; padding: 12px 0; background: var(--surface); border-top: 1px solid var(--edge); backdrop-filter: blur(12px); }
.category-admin-list { list-style: none; padding: 0; margin: 20px 0 0; }
.category-admin-list li { padding: 18px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.category-admin-list strong { font-size: 18px; }
.category-admin-list .btn { margin: 6px 8px 4px 0; }
.category-admin-list p { color: var(--muted); }

.footer__links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; font: inherit; }
.text-action { padding: 0; border: 0; background: transparent; color: var(--link); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-action:hover { color: var(--focus); text-decoration-thickness: 2px; }
.rules-notice { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 20px; padding: 12px 52px 12px 18px; border: 1px solid var(--edge); border-radius: 12px; background: var(--glass); box-shadow: var(--panel-shadow); }
.rules-notice p { margin: 0; }
.notice-close { display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 1px solid var(--button-edge); border-radius: 50%; background: var(--gel); color: var(--button-fg); box-shadow: var(--button-shadow); font: 600 22px/1 var(--font-ui); cursor: pointer; }
.rules-notice > .notice-close { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); }
.info-dialog { width: min(720px,calc(100% - 28px)); max-width: 720px; max-height: min(82vh,850px); padding: 0; overflow: hidden; border: 1px solid var(--edge); border-radius: 14px; background: var(--bg); color: var(--fg); box-shadow: 0 24px 80px #07180d77,inset 0 1px #ffffffa0; }
.info-dialog::backdrop { background: #07180dbb; backdrop-filter: blur(5px); }
.info-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; background: var(--title); border-bottom: 1px solid var(--line); }
.info-dialog__header h2 { margin: 0; font-size: 20px; }
.info-dialog__content { max-height: calc(min(82vh,850px) - 132px); padding: 20px 22px; overflow-y: auto; overscroll-behavior: contain; line-height: 1.7; }
.info-dialog__content > :first-child { margin-top: 0; }
.info-dialog__content > :last-child { margin-bottom: 0; }
.info-dialog__content h3 { margin: 22px 0 7px; font-size: 16px; }
.contact-list { display: grid; gap: 12px; padding-left: 22px; overflow-wrap: anywhere; }
.info-dialog__footer { display: flex; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface); }

.footer { background: var(--glass); border-top: 1px solid var(--edge); box-shadow: 0 -5px 20px #29442215; backdrop-filter: blur(14px); font-size: 13px; color: var(--muted); }
.footer__inner { max-width: 1120px; margin: auto; padding: 18px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer__badges { display: flex; flex-wrap: wrap; gap: 7px; }
.badge88 { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--title); box-shadow: inset 0 1px var(--edge),0 2px 3px #0002; color: var(--fg); font: 600 11px/1.5 var(--font-ui); }

@media (max-width: 719px) {
  .page { padding: 18px 12px 32px; }
  .win__body { padding: 16px; }
  .topbar__inner { padding: 10px 12px; }
  .post-actions { display: grid; }
  .post-actions .btn { width: 100%; }
  body:has(.composer) { overflow: hidden; }
  .composer { position: fixed; inset: 0; z-index: 200; max-width: none; margin: 0; height: 100vh; height: 100dvh; overflow-y: auto; border-radius: 0; background: var(--bg); backdrop-filter: none; }
  .composer .win__title { border-radius: 0; }
  .composer { -webkit-backdrop-filter: none; }
  .composer-submit { padding-bottom: max(12px,env(safe-area-inset-bottom)); }
  .composer-submit .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@supports not (backdrop-filter: blur(1px)) { .win, .topbar, .footer { background: var(--surface); } }
@media (forced-colors: active) { body::before, body::after { display: none; } .win, .btn, .theme-toggle, .burger { border: 1px solid CanvasText; } }
