:root { --fishing-backdrop: url("/lake-dawn.webp"); }

body.viewport-app:not(.messenger-page):not([data-view="map"]:not(.signed-out)) {
  background: linear-gradient(105deg,#edf5efdc 0%,#eff7f1c2 38%,#e5f2edd0 70%,#dcebe5a6), var(--fishing-backdrop) center / cover no-repeat, #e4efe8;
}
body.viewport-app:not(.messenger-page):not([data-view="map"]:not(.signed-out)) .sidebar {
  padding: 6px;
  border: 1px solid #fff9;
  border-radius: 16px;
  background: #fff9;
}
body.viewport-app:not(.messenger-page):not([data-view="map"]:not(.signed-out)) .right footer {
  padding: 6px 10px;
  border-radius: 9px;
  background: #fffd;
}
body.viewport-app[data-view="feed"]:not(.signed-out) .pagehead,
body.viewport-app.signed-out .hero {
  background: linear-gradient(95deg,#123b35 0%,#184a409c 62%,#20423920), var(--fishing-backdrop) 69% 55% / cover no-repeat, #123b35 !important;
}
body.viewport-app[data-view="feed"]:not(.signed-out) .pagehead {
  min-height: clamp(117px,15vw,185px);
  align-items: end;
}
body.viewport-app[data-view="feed"] .pagehead::before,
body.viewport-app.signed-out .hero::before { content: none; }
body.viewport-app[data-view="feed"] .pagehead h1,
body.viewport-app.signed-out .hero h2 { text-shadow: 0 2px 8px #1029237a; }

body.viewport-app.messenger-page .conversation-content .history42 {
  background: linear-gradient(145deg,#1b223af0,#142a32eb), var(--fishing-backdrop) center / cover no-repeat, #1b223a;
}

body[data-screen="games"] {
  background: linear-gradient(110deg,#15192ce8,#24233cd9), var(--fishing-backdrop) center / cover no-repeat, #171a31;
}
body[data-screen="rules"] {
  background: linear-gradient(110deg,#111d18ed,#182825d9), var(--fishing-backdrop) center / cover no-repeat, #16241f;
}
:root.light body[data-screen="rules"] {
  background: linear-gradient(110deg,#f3f8efed,#e8f2ebd9), var(--fishing-backdrop) center / cover no-repeat, #e9f2ec;
}

@media(max-width:760px) {
  body.viewport-app:not(.messenger-page):not([data-view="map"]:not(.signed-out)) { background-position: center, 68% center; }
  body.viewport-app[data-view="feed"]:not(.signed-out) .pagehead { background-position: center, 73% 57%; }
}
body.viewport-app.messenger-page .conversation-content .history42 {
  background: #edf4f3;
}
.messenger-page .history42 .message42 {
  align-self: flex-start;
  max-width: min(85%, 620px);
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #172f32;
  text-shadow: 0 1px 3px #f4fff5cf;
}
.messenger-page .history42 .message42.mine42 {
  align-self: flex-end;
}
.messenger-page .history42 .message42:is(:hover,:focus-within) { background: transparent; box-shadow: none; }
@media (max-width: 600px) {
  .messenger-page .history42 .message42 { max-width: 94%; }
}
.messenger-page .conversation-list { background: #f5faf7; }
.messenger-page .messenger-sidebar-head {
  color: #fff;
  background: linear-gradient(120deg,#143f3c,#246d60);
  border-bottom: 0;
}
.messenger-page .messenger-sidebar-head .notification-bell {
  color: #fff;
  background: #ffffff19;
  border-color: #ffffff44;
}
.messenger-page .conversation-search { background: #fff; }
.messenger-page .conversation-search:focus-within { border-color: #27796b; }
.messenger-page .conversation-switch { background: transparent; padding-inline: 12px; }
.messenger-page .conversation-rows { padding: 8px 12px; }
.messenger-page .conversation-row {
  margin-bottom: 4px;
  min-height: 60px;
  border: 1px solid transparent;
}
.messenger-page .conversation-row.active {
  background: #dcefe5;
  border-color: #a6ccbb;
}
.messenger-page .conversation-unread-filter { background: #edf6ef; }
body[data-view] article[data-feed-post].card {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
article[data-feed-post] .publication-preview > a[data-media-view],
article[data-feed-post] .publication-preview > a[data-media-view] .postimg,
article[data-feed-post] :is(.person .pill,.post-attachment,.details span) {
  background: transparent;
}
.video-quality {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  margin: 4px 0 8px;
  color: var(--text);
  font-size: .82rem;
}
.video-quality label { display: flex; align-items: center; gap: 7px; color: inherit; margin: 0; }
.video-quality select { width: auto; margin: 0; padding: 3px 6px; background: transparent; }
.video-quality [role="status"]:empty { display: none; }
:root {
  --lake-light: linear-gradient(110deg,#f3faf3e6,#dfefe4bc), var(--fishing-backdrop) center / cover no-repeat;
  --lake-glass: #f7fff5a8;
  --lake-glass-strong: #f7fff5e0;
  --lake-line: #b7d0bc9c;
}
body.viewport-app:not([data-view="map"]:not(.signed-out)),
body.klev-service-info {
  background: var(--lake-light), #e4efe8;
}
body.viewport-app:not([data-view="map"]:not(.signed-out)) :is(.layout,.sidebar,.right footer,.card,.top,.mobile) {
  background: transparent;
  box-shadow: none;
}
body.viewport-app:not([data-view="map"]:not(.signed-out)) :is(.card,.sidebar,.top,.mobile) {
  border-color: var(--lake-line);
}
body.viewport-app:not([data-view="map"]:not(.signed-out)) :is(.top,.mobile,dialog,.search,.post-attachment,.compose .placeholder) {
  background-color: var(--lake-glass-strong);
}
body.viewport-app:not([data-view="map"]:not(.signed-out)) :is(.search,.post-attachment,.compose .placeholder) {
  background-color: var(--lake-glass);
}
body.viewport-app[data-view] article[data-feed-post].card,
body.viewport-app[data-view] article[data-feed-post] .post-attachment {
  background: transparent;
}
body.viewport-app[data-view] article[data-feed-post].card { border-color: transparent; }
body.viewport-app.messenger-page :is(.conversation-list,.conversation-content,.conversation-content .history42) {
  background: transparent;
}
body.viewport-app.messenger-page :is(.conversation-unread-filter,.conversation-search,.privatehead42,.group-chat-header,.conversation-content .privatecomposer) {
  background: var(--lake-glass-strong);
}
body.viewport-app.messenger-page .history42 .message42:is(.mine42,.theirs42) {
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.viewport-app.messenger-page .history42 .message42 :is(.reaction42,.reactionQuick42) {
  background: transparent;
  border: 0;
  box-shadow: none;
}
body[data-screen="rules"] .rules-panel { background: #14251eb8; }
:root.light body[data-screen="rules"] .rules-panel { background: var(--lake-glass); }
body.klev-service-info { min-height: 100vh; color: #172f32; }
body.klev-service-info main { background: var(--lake-glass); border-color: var(--lake-line); box-shadow: none; }
body.klev-service-info a { color: #1b654e; }
body[data-screen="games"] .panel:not(:has(.durak-table,.nardy-board)) {
  background-color: #222238b8;
}
body.viewport-app:not(.signed-out):not(.messenger-page) > .layout > .sidebar {
  padding: 10px 8px 8px;
  border: 1px solid #fff9;
  border-radius: 20px;
  background: linear-gradient(155deg,#f9fff3b5,#e4f2e89c);
  scrollbar-width: thin;
  scrollbar-color: #669d8780 transparent;
}
.sidebar .navlabel {
  margin: 0 0 9px;
  padding: 11px 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid #8eaf9e66;
  color: #295445;
  letter-spacing: .11em;
}
.sidebar .navlabel::before {
  content: "";
  flex: none;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  background: #d3edaa url("/klev.png") center / cover no-repeat;
}
body[data-view] .sidebar .navbtn {
  min-height: 41px;
  padding: 6px 8px;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #294d45;
  line-height: 1.25;
}
.sidebar .navbtn:nth-child(5n + 6) { margin-top: 12px; }
body[data-view] .sidebar .navbtn i {
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border: 1px solid #ffffff94;
}
body[data-view] .sidebar .navbtn:hover { background: #f9fff4c2; }
body[data-view] .sidebar .navbtn.active {
  border-color: #346d58;
  background: linear-gradient(110deg,#1d5147,#326f5d);
  color: #fff;
}
body[data-view] .sidebar .navbtn.active i {
  background: #dbefa5;
  color: #20493c;
  border-color: transparent;
}
.sidebar .sidefoot {
  margin: 12px 0 0;
  padding: 9px 5px 2px;
  border-top: 1px solid #8eaf9e66;
  color: #476b60;
  font-size: .73rem;
}
.community-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-inline-start: auto; }
.community-post { border-block-start: 1px solid var(--lake-line); margin-top: 12px; padding: 12px 0; }
.community-post time { margin-inline-start: 8px; font-size: .82rem; }
.fish-search { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.fish-search label { flex: 1 1 190px; margin: 0; }
.fish-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,170px),1fr)); gap: 12px; }
.fish-grid article { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--lake-line); border-radius: 14px; padding: 10px; background: var(--lake-glass); }
.fish-grid h2 { font-size: 1rem; margin: 8px 0 2px; overflow-wrap: anywhere; }
.fish-grid article p { margin: 0 0 6px; overflow-wrap: anywhere; }
.fish-grid article button { align-self: start; margin-top: auto; }
.fish-catalog figure { margin: 0; }
.fish-catalog figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: 9px; }
.fish-catalog figcaption { color: var(--muted); font-size: .68rem; overflow-wrap: anywhere; }
.fish-photo-empty { aspect-ratio: 4/3; display: grid; place-items: center; border-radius: 9px; background: var(--lake-glass-strong); color: var(--muted); }
.fish-more { margin-top: 12px; }
.fish-detail figure img { max-height: 48vh; object-fit: contain; }
.fish-catalog dialog.fish-detail { background: var(--lake-glass-strong); }
.fish-tips { margin: 14px 0; padding: 10px 12px; border: 1px solid var(--lake-line); border-radius: 12px; background: var(--lake-glass); }
.fish-tips :is(h3,dl,ul) { margin: 4px 0; }
.fish-tips dt { margin-top: 8px; font-weight: 700; }
.fish-tips dd { margin: 2px 0 0; }
.fish-tips ul { padding-inline-start: 18px; font-size: .82rem; }
.water-results { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); gap: 12px; }
.water-results article { display: flex; flex-direction: column; align-items: start; padding: 12px; min-width: 0; border: 1px solid var(--lake-line); border-radius: 14px; background: var(--lake-glass); }
.water-results button { margin-top: auto; }
.water-results h2 { margin: 0; overflow-wrap: anywhere; }
.water-fish-list { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; }
.water-fish-list li { padding: 4px 8px; border: 1px solid var(--lake-line); border-radius: 10px; }
.water-detail p { overflow-wrap: anywhere; }
.community-upload-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); gap: 8px; }
.community-post .postimg { object-fit: contain; background: transparent; }
[data-community-post] progress { display: block; width: 100%; margin-bottom: 8px; }
[data-community-post] progress[hidden] { display: none; }
.feed-create > .creation-menu { width: 100%; }
.creation-menu { position: relative; }
.creation-menu[open] { z-index: 4; }
.creation-menu > summary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid #a9cdbb;
  border-radius: 12px;
  background: #e7f5e9d9;
  color: #1c584c;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}
.creation-menu > summary::-webkit-details-marker { display: none; }
.creation-menu > summary:hover, .creation-menu[open] > summary { background: #d3ecdf; }
.creation-menu > summary:focus-visible { outline: 2px solid #1c584c; outline-offset: 2px; }
.creation-plus { font-size: 1.3rem; line-height: 1; }
.creation-caret { color: #3d7465; }
.creation-menu[open] .creation-caret { transform: rotate(180deg); }
.creation-options {
  position: absolute;
  inset-block-start: calc(100% + 6px);
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: grid;
  width: min(250px,calc(100vw - 42px));
  padding: 6px;
  border: 1px solid #acd0be;
  border-radius: 14px;
  background: #f5fcf7;
  box-shadow: 0 8px 22px #27493a33;
}
.creation-options button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 7px 10px;
  border-radius: 8px;
  text-align: start;
  color: #173c34;
}
.creation-options button:is(:hover,:focus-visible) { background: #dcf0e2; }
.creation-options svg { width: 20px; height: 20px; color: #25725f; }
.profile-wall-heading .creation-options { inset-inline: auto 0; transform: none; }
[data-community-post]:not([hidden]) { margin-top: 12px; }
#postform label[hidden], [data-community-post] label[hidden] { display: none; }
.feed-create .feed-shorts-link { flex: 0 0 auto; }
@media (max-width: 430px) {
  .feed-create:has(.feed-shorts-link) { flex-wrap: wrap; }
  .feed-create .feed-shorts-link { flex: 1 1 100%; }
}
body.viewport-app[data-view="clips"]:not(.signed-out) > .layout {
  grid-template-rows: minmax(0,1fr);
  align-content: stretch;
  overflow: hidden;
}
body[data-view="clips"]:not(.signed-out) #main {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  gap: 8px;
  min-height: 0;
  min-width: 0;
}
.shorts-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shorts-heading h1 { margin: 0; font-size: clamp(1.35rem,3vw,2rem); }
.shorts-player { position: relative; min-height: 0; }
.shorts-list {
  position: absolute;
  inset: 0;
  width: min(100%,560px);
  margin-inline: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  touch-action: pinch-zoom;
  scrollbar-width: none;
  border-radius: 18px;
  background: #10211e;
}
.shorts-list::-webkit-scrollbar { display: none; }
.short-card {
  position: relative;
  height: 100%;
  color: #fff;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #10211e;
}
.short-card :is(.publication-file,.publication-preview,.post-media-preview) {
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}
.short-card .video-quality {
  position: absolute;
  bottom: 56px;
  inset-inline-start: 10px;
  max-width: calc(100% - 65px);
  margin: 0;
  padding: 3px 7px;
  border-radius: 8px;
  background: #10211ee6;
  color: #fff;
}
.short-card .video-quality select { color: #fff; background: #153f36; }
.short-info {
  position: absolute;
  top: 0;
  inset-inline: 0;
  padding: 12px 14px 28px;
  background: linear-gradient(#071514ec,transparent);
  pointer-events: none;
}
.short-info .posttext { margin: 8px 0 0; max-height: 4.5em; overflow: auto; pointer-events: auto; }
.short-info .person small { color: #e2eee8; }
.short-info .post-delete { color: #fff; background: #792d38; pointer-events: auto; }
.shorts-feedback { position: absolute; inset: 45% 12px auto; text-align: center; color: #fff; pointer-events: none; }
.shorts-feedback p { margin: 4px; }
.shorts-feedback button { pointer-events: auto; }
.shorts-navigation:not([hidden]) { position: absolute; bottom: 76px; right: 12px; display: grid; gap: 8px; }
.shorts-navigation button { border-radius: 50%; width: 42px; height: 42px; background: #153f36; color: #fff; font-size: 1.15rem; }
.shorts-navigation button:disabled { opacity: .4; }
dialog.publication-editor {
  width: min(660px,calc(100% - 24px));
  max-width: none;
  max-height: min(90dvh,790px);
  background: #f5fbf7;
  border-color: #b7d6c6;
}
.publication-editor .dialoghead { color: #17473d; }
.publication-editor .dialoghead p { margin: 3px 0 0; }
.publication-editor .dialoghead .ghost { align-self: flex-start; }
.publication-drop {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  min-height: clamp(165px,27dvh,290px);
  margin-bottom: 14px;
  padding: 14px;
  border: 1px dashed #76a695;
  border-radius: 16px;
  color: #21594b;
  background: #e8f4ec;
  text-align: center;
}
.publication-drop > svg { width: 40px; height: 40px; }
.publication-pickers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.publication-pickers label { position: relative; margin: 0; overflow: hidden; cursor: pointer; }
.publication-pickers label:focus-within { outline: 2px solid #1c584c; }
.publication-pickers input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.publication-selected { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; }
.publication-selected:empty { display: none; }
.publication-selected figure { min-width: 0; width: min(100%,230px); margin: 0; }
.publication-selected :is(img,video) { display: block; width: 100%; max-height: 160px; object-fit: contain; border-radius: 8px; }
.publication-selected figcaption { overflow-wrap: anywhere; font-size: .76rem; margin-block: 4px; }
.publication-extra { margin: 0 0 12px; }
.publication-extra summary { color: #285d50; cursor: pointer; }
#postform[data-short="true"] .publication-extra { display: none; }
.publication-editor [role="status"]:empty, .publication-editor [role="alert"]:empty { display: none; }
.community-post header { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
.post-delete { margin-inline-start: auto; padding: 5px 8px; border-radius: 8px; color: #842e38; font-size: .82rem; }
.post-delete:is(:hover,:focus-visible) { background: #fae3e3; }
.post-delete:disabled { opacity: .6; }

body[data-view="admin"] .admin-users [hidden],
body[data-view="admin"] [data-admin-empty][hidden] { display: none; }
body[data-view="admin"] .communityrow { flex-wrap: wrap; gap: 8px; overflow-wrap: anywhere; }
body[data-view="admin"] .communityrow p { margin: 4px 0; }
.admin-section { margin-block: 12px; }
.admin-section > summary { cursor: pointer; font-weight: 700; padding-block: 8px; }

.admin-user-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-user-actions [data-admin-action="delete-account"] { color: #842e38; background: #fae3e3; }
.help-toc, .help-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.help-heading { justify-content: space-between; }
.help-heading h2 { margin: 0; }
.help-topic { scroll-margin-block: 12px; }
.help-figure { margin: 12px 0; padding: 14px; border-radius: 16px; background: #e4f2eb; color: #173d35; }
.help-figure-water { background: linear-gradient(155deg,#d5ebf5,#dff4e3); }
.help-figure-chat { background: linear-gradient(155deg,#dbe4fa,#eeecfa); }
.help-figure-map { background: repeating-linear-gradient(35deg,#e5efdb,#e5efdb 25px,#dbeadc 25px,#dbeadc 50px); }
.help-figure-clip { background: linear-gradient(145deg,#193c41,#332454); color: #fff; }
.help-figure-title { font-weight: 700; margin-bottom: 12px; }
.help-figure-controls { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,112px),1fr)); gap: 8px; }
.help-figure-control { position: relative; display: grid; place-items: center; gap: 4px; padding: 8px 7px; border-radius: 10px; background: #f7fffc; color: #173d35; text-align: center; }
.help-figure-control b { position: absolute; top: 5px; inset-inline-start: 5px; display: grid; place-items: center; min-width: 20px; min-height: 20px; border-radius: 50%; background: #194f42; color: #fff; font-size: .75rem; }
.help-figure-control span { font-size: 1.4rem; line-height: 1.3; }
.help-controls { padding-inline-start: 26px; }
.help-controls li { margin-block: 6px; }
.discussion-trigger { margin-block: 6px; }
.short-info .discussion-trigger { pointer-events: auto; }
.discussion-dialog { width: min(94vw,560px); }
.discussion-list { max-height: min(42dvh,350px); overflow: auto; overscroll-behavior: contain; overflow-wrap: anywhere; }
.discussion-list .commentline p { margin: 3px 0 8px; white-space: pre-wrap; }
.discussion-dialog .inlineform { flex-wrap: wrap; }
.comment-like[aria-pressed="true"] { color: #842e38; background: #fae3e3; }
body #media-viewer {
  inset: 0;
  margin: auto;
  transform: none;
  padding: 0;
  width: min(94vw,1240px);
  height: min(90dvh,900px);
  max-height: 94dvh;
  border: 1px solid #477267;
  border-radius: 20px;
  background: #102521;
  color: #e8f4ef;
  text-align: start;
}
#media-viewer::backdrop { background: #071411dc; }
.media-viewer-layout { display: grid; grid-template-columns: minmax(0,1fr) min(34%,355px); height: 100%; }
.media-viewer-stage { display: grid; grid-template: minmax(0,1fr) auto / 1fr; min-width: 0; min-height: 0; position: relative; }
.media-viewer-image { display: grid; place-items: center; grid-area: 1/1; min-height: 0; min-width: 0; padding: 16px 48px; }
#media-viewer .media-viewer-image img:not([hidden]) { width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; touch-action: pan-y pinch-zoom; }
.media-viewer-counter { padding: 10px 16px; background: #17362f; }
.media-viewer-arrow { position: absolute; top: 48%; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: #24574a; color: #fff; font-size: 1.5rem; }
.media-viewer-arrow:disabled { opacity: .4; }
.media-viewer-arrow[data-viewer-prev] { inset-inline-start: 5px; }
.media-viewer-arrow[data-viewer-next] { inset-inline-end: 5px; }
.media-viewer-side { display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 16px; background: #f0faf4; color: #163d34; }
.media-viewer-side header { padding-inline-end: 35px; overflow-wrap: anywhere; }
.media-viewer-side header small { display: block; margin-top: 4px; }
.media-viewer-close { z-index: 2; }
.media-viewer-discussion:not([hidden]) { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.media-viewer-discussion h3 { margin: 14px 0 7px; }
.media-viewer-discussion .discussion-list { flex: 1; max-height: none; }
.media-viewer-discussion .inlineform { flex-wrap: wrap; }
@media(max-width:680px){
  body #media-viewer { width: 96vw; height: 92dvh; }
  .media-viewer-layout { grid-template-columns: 1fr; grid-template-rows: minmax(0,1.35fr) minmax(0,1fr); }
  .media-viewer-close { top: 8px; }
  .media-viewer-side { padding: 10px; }
  .media-viewer-image { padding-block: 4px; }
}
/* Center published content without changing the layout of its editing forms. */
body[data-view] :is(article[data-feed-post],.community-post,[data-view="market"] main .v4cards > article,[data-view="tournaments"] main #extra > article) {
  width: min(100%,760px);
  margin-inline: auto;
  text-align: center;
}
body[data-view] :is(article[data-feed-post] .person,.community-post header,.short-info .person,
                  article[data-feed-post] .details,article[data-feed-post] .actions) {
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}
body[data-view] :is(article[data-feed-post],.community-post,.short-info) .post-delete,
body[data-view] article[data-feed-post] .person .pill { margin-inline: 0; }
body[data-view] :is(article[data-feed-post],.community-post,[data-view="market"] main .v4cards > article) :is(.postimg,.post-media-preview) {
  margin-inline: auto;
}
body[data-view] :is(article[data-feed-post],.community-post) .video-quality {
  justify-content: center;
}
.short-info { text-align: center; }
.fullscreen-button { display: none; }
.site-fullscreen-supported .fullscreen-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--lake-line,#afc9bf);
  border-radius: 10px;
  background: #e8f4ec;
  color: #17473d;
  font-size: 1.4rem;
  line-height: 1;
}
.site-fullscreen-supported .fullscreen-button[aria-pressed="true"] { background: #cbe8de; }
@media(max-width:420px) {
  .site-fullscreen-supported .fullscreen-button { width: 34px; min-height: 36px; }
  .top .search { min-width: 0; }
}
.diary-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.diary-entry .publication-preview { max-width: 620px; margin-inline: auto; }
.diary-entry .posttext { white-space: pre-wrap; overflow-wrap: anywhere; }
.diary-dialog { width: min(94vw,620px); overflow: auto; }
.diary-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 8px; }

/* Keep the lake visible behind the site and preserve navigation during login. */
body.viewport-app {
  --lake-light: linear-gradient(110deg,#f3faf38c,#e8f4eb64), var(--fishing-backdrop) center / cover no-repeat;
  --lake-glass: #f7fff536;
  --lake-glass-strong: #f7fff578;
}
body.viewport-app.signed-out:not(.messenger-page) .layout { max-width: 1330px; }
@media(min-width:761px) {
  body.viewport-app.signed-out:not(.messenger-page) .layout { display:grid; grid-template-columns: minmax(155px,220px) minmax(0,1fr); }
  body.viewport-app.signed-out:not(.messenger-page) .layout > .sidebar { display:block; }
}
@media(max-width:760px) {
  body.viewport-app.signed-out:not(.messenger-page) > .mobile { display:flex; }
}
body.viewport-app:not([data-view="map"]:not(.signed-out)) > :is(.top,.mobile) {
  background: #f5fff565;
}
body.viewport-app:not([data-view="map"]:not(.signed-out)) .layout :is(.card,.feed-tabs,.music-nav,.music-search,.music-library) {
  box-shadow:none;
}
body.viewport-app:not([data-view="map"]:not(.signed-out)) .layout .card {
  background-color:transparent;
}
body.viewport-app .layout :is(.navbtn,.pagehead,.posttext) {
  text-shadow: 0 1px 3px #f4fff5a8;
}
body.viewport-app .layout [data-view-author] .posttext { color:#142e27; }

.callHistory42{align-self:center;display:flex;gap:8px;align-items:center;padding:6px 12px;color:#21433b;font-size:.88rem}
.callHistory42 span{color:#3c5852}
#callOverlay42 .activeCall42{
  position:fixed;inset:auto 20px 20px auto;z-index:1100;width:min(640px,calc(100vw - 40px));height:min(555px,calc(100dvh - 40px));max-width:none;
  display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:14px;padding:22px;border:1px solid #739e8888;color:#f2fff7;
  background:radial-gradient(ellipse at center,#174d49,#102b28 58%,#0a1b18);border-radius:24px;overflow:hidden
}
#callOverlay42 .activeCall42:is(:fullscreen,.call-expanded42){
  inset:0;width:100%;height:100%;max-width:none;border:0;border-radius:0;
  padding:max(15px,env(safe-area-inset-top)) max(15px,env(safe-area-inset-right)) max(15px,env(safe-area-inset-bottom)) max(15px,env(safe-area-inset-left));
}
#callOverlay42 .activeCall42 #remoteVideo42{position:absolute;inset:0;height:100%;width:100%;object-fit:contain;max-height:none;background:#0a1b18}
.call-heading42,.activeCall42 .callButtons42,.call-portrait42,.call-self42,.call-output42{position:relative;z-index:1}
.call-heading42{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.call-heading42 h2,.call-heading42 p{margin:0;text-shadow:0 1px 6px #001810;color:#fff}
.call-heading42 p{font-variant-numeric:tabular-nums}
.call-portrait42{align-self:center;justify-self:center}
.call-portrait42 .avatar{width:clamp(90px,24vw,180px);height:clamp(90px,24vw,180px);font-size:3rem;border:2px solid #91cbbb}
.call-portrait42 .avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}
#callOverlay42 .activeCall42 .call-self42{position:absolute;right:18px;bottom:98px;width:clamp(90px,22%,145px);aspect-ratio:3/4;overflow:hidden;border:1px solid #a0c9ae;border-radius:16px;background:#14332b}
#callOverlay42 .activeCall42 #localVideo42{width:100%;height:100%;object-fit:cover;max-height:none;margin:0}
.call-self42 small{position:absolute;left:8px;bottom:5px;text-shadow:0 1px 4px black}
.call-self42 button{position:absolute;right:5px;top:5px}
.activeCall42 .callButtons42{grid-row:3;justify-content:center;align-self:end;gap:8px}
.activeCall42 button{min-width:40px;min-height:40px;border-radius:12px;background:#213e38e8;color:#fff;border:1px solid #8bb9a581}
.activeCall42 button[aria-pressed=true]{background:#ddf0b3;color:#122d25}
.activeCall42 button[data-call-end]{background:#a93549;color:white}
.activeCall42 button:disabled{opacity:.45}
.call-output42{position:absolute;bottom:79px;left:15px;max-width:calc(100% - 30px)}
@media(max-width:760px){
  #callOverlay42 .activeCall42{inset:0;width:100%;height:100%;border-radius:0;border:0;padding:max(15px,env(safe-area-inset-top)) 12px max(15px,env(safe-area-inset-bottom))}
}
