:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: rgba(255, 255, 255, 0.74);
  --ink: #111827;
  --muted: #6b7280;
  --line: rgba(255, 255, 255, 0.72);
  --accent: #007aff;
  --accent-strong: #0057c2;
  --danger: #ff3b30;
  --soft: rgba(255, 255, 255, 0.62);
  --shadow: 0 24px 70px rgba(35, 48, 68, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 122, 255, 0.14), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(255, 45, 85, 0.12), transparent 28%),
    radial-gradient(circle at 48% 90%, rgba(52, 199, 89, 0.12), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 14px clamp(18px, 5vw, 56px);
  background: rgba(247, 249, 252, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 28px rgba(30, 41, 59, 0.06);
  backdrop-filter: blur(22px) saturate(1.45);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 780;
  text-decoration: none;
}

.link-button {
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  width: var(--logo-size, 42px);
  height: var(--logo-size, 42px);
  border: max(3px, calc(var(--logo-size, 42px) * 0.26)) solid #34c759;
  border-right-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0, 122, 255, 0.2);
}

.brand-mark.has-image {
  width: calc(var(--logo-size, 42px) * 3.72);
  max-width: min(56vw, 300px);
  height: var(--logo-size, 42px);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.session {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  position: relative;
  display: block;
  width: clamp(150px, 18vw, 240px);
}

.search-box::before {
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 1;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  transform: translateY(-50%);
  content: "⌕";
}

.search-box input {
  min-height: 40px;
  border-color: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 0 14px 0 34px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 22px rgba(35, 48, 68, 0.06);
  backdrop-filter: blur(18px) saturate(1.3);
}

.publish-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 0 16px 0 11px;
  background: linear-gradient(135deg, #ff2d55, #ff9500);
  color: #fff;
  font-weight: 820;
  box-shadow: 0 14px 28px rgba(255, 45, 85, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: box-shadow 0.2s, transform 0.2s;
  white-space: nowrap;
}

.publish-button span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  font-size: 17px;
  line-height: 1;
}

.publish-button:hover {
  box-shadow: 0 18px 34px rgba(255, 45, 85, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.48);
  transform: translateY(-1px);
}

.current-user {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.feed-section,
.composer,
.admin-panel,
.auth-form {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(1.35);
}

.feed-section,
.composer-panel,
.admin-panel {
  margin-top: 18px;
}

.floating-wall {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  margin-top: 0;
  min-height: 470px;
  border-radius: 8px;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 16%, rgba(0, 122, 255, 0.12), transparent 32%),
    radial-gradient(circle at 68% 8%, rgba(52, 199, 89, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(239, 248, 255, 0.9), rgba(234, 249, 244, 0.82));
  box-shadow: 0 28px 80px rgba(35, 48, 68, 0.12);
}

.feed-section {
  padding: 24px;
}

.feed-head,
.composer-head,
.admin-head,
.dialog-head,
.upload-row,
.post-actions,
.reply-form,
.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-head,
.composer-head,
.admin-head,
.dialog-head {
  justify-content: space-between;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

.feed-head h1,
.composer h2,
.admin-head h2,
.auth-form h2 {
  margin: 4px 0 0;
}

.feed-head h1 {
  font-size: clamp(28px, 4vw, 44px);
}

.floating-visual {
  position: relative;
  min-height: 390px;
}

.floating-frame {
  position: absolute;
  inset: 58px 46px 2px 52px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 26px 54px rgba(35, 48, 68, 0.12);
  backdrop-filter: blur(24px) saturate(1.24);
}

.floating-posts {
  position: relative;
  min-height: 390px;
}

.floating-note {
  position: absolute;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 11px;
  width: 274px;
  min-height: 184px;
  border: 0;
  border-radius: 8px;
  padding: 24px;
  color: #172033;
  text-align: left;
  box-shadow: 0 22px 48px rgba(35, 48, 68, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(20px) saturate(1.28);
  clip-path: none;
  animation: floatNote 7.5s ease-in-out infinite;
  transform: translate3d(0, 0, 0);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.floating-note::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.38), transparent 48%);
  content: "";
  pointer-events: none;
}

.floating-note:hover {
  box-shadow: 0 24px 48px rgba(35, 48, 68, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transform: translate3d(0, -5px, 0);
}

.floating-author {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 54px;
  min-height: 54px;
  border-radius: 50%;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.64);
  color: rgba(23, 32, 51, 0.76);
  font-size: 20px;
  font-weight: 850;
}

.floating-text {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-family: var(--floating-message-font, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: var(--floating-message-size, 19px);
  font-weight: 850;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.floating-date {
  position: relative;
  color: rgba(23, 32, 51, 0.64);
  font-size: 13px;
  font-weight: 760;
}

.floating-date::after {
  display: block;
  width: min(150px, 70%);
  height: 7px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  content: "";
}

.tone-0 {
  background: linear-gradient(135deg, rgba(231, 255, 242, 0.92), rgba(151, 245, 185, 0.82));
}

.tone-1 {
  background: linear-gradient(135deg, rgba(252, 237, 220, 0.94), rgba(255, 148, 138, 0.82));
}

.tone-2 {
  background: linear-gradient(135deg, rgba(216, 240, 255, 0.94), rgba(91, 174, 255, 0.86));
}

.tone-3 {
  background: linear-gradient(135deg, rgba(242, 235, 255, 0.94), rgba(148, 145, 255, 0.82));
}

.tone-4 {
  background: linear-gradient(135deg, rgba(255, 245, 229, 0.94), rgba(255, 197, 126, 0.84));
}

.tone-5 {
  background: linear-gradient(135deg, rgba(232, 248, 255, 0.94), rgba(120, 216, 235, 0.82));
}

.float-card-0 {
  top: 42px;
  left: 0;
  width: 274px;
  min-height: 184px;
}

.float-card-1 {
  top: 0;
  left: 52%;
  width: 236px;
  min-height: 226px;
}

.float-card-2 {
  top: 176px;
  left: 20%;
  width: 292px;
  min-height: 236px;
  z-index: 2;
}

.float-card-3 {
  top: 254px;
  left: 72%;
  width: 210px;
  min-height: 208px;
}

.floating-note:nth-child(2n) {
  animation-delay: -2s;
}

.floating-note:nth-child(3n) {
  animation-delay: -4s;
}

.floating-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.floating-copy .eyebrow {
  color: var(--accent);
  text-transform: none;
}

.floating-copy h1 {
  margin: 12px 0 0;
  color: #111827;
  font-size: clamp(56px, 7vw, 92px);
  font-weight: 900;
  line-height: 0.98;
}

.hero-description {
  max-width: 560px;
  margin: 0;
  color: #5f6b7a;
  font-size: 19px;
  line-height: 1.65;
}

@keyframes floatNote {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

.feed {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.empty-state {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  text-align: center;
}

.post {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 30px rgba(35, 48, 68, 0.08);
  backdrop-filter: blur(18px) saturate(1.2);
}

.post-main {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.12);
  color: var(--accent-strong);
  font-weight: 780;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.86);
}

.avatar-tone-0 {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.16), rgba(94, 92, 230, 0.22));
  color: #0057c2;
}

.avatar-tone-1 {
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.16), rgba(255, 149, 0, 0.2));
  color: #b4235a;
}

.avatar-tone-2 {
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.18), rgba(48, 209, 88, 0.26));
  color: #188038;
}

.avatar-tone-3 {
  background: linear-gradient(135deg, rgba(255, 204, 0, 0.22), rgba(255, 149, 0, 0.22));
  color: #946200;
}

.avatar-tone-4 {
  background: linear-gradient(135deg, rgba(175, 82, 222, 0.16), rgba(191, 90, 242, 0.24));
  color: #7e22ce;
}

.avatar-tone-5 {
  background: linear-gradient(135deg, rgba(90, 200, 250, 0.2), rgba(100, 210, 255, 0.26));
  color: #0369a1;
}

.avatar-tone-6 {
  background: linear-gradient(135deg, rgba(255, 55, 95, 0.18), rgba(255, 179, 64, 0.2));
  color: #be123c;
}

.avatar-tone-7 {
  background: linear-gradient(135deg, rgba(50, 215, 75, 0.18), rgba(191, 255, 0, 0.22));
  color: #3f6212;
}

.post-body {
  min-width: 0;
}

.post-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.post-author {
  flex: 0 0 auto;
  margin: 0;
  font-size: 16px;
}

.pin-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(255, 149, 0, 0.16);
  color: #b45309;
  font-size: 12px;
  font-weight: 820;
}

.post-text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #263238;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.post-quick-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.post-expand-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 0 11px 0 9px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 18px rgba(35, 48, 68, 0.06);
  backdrop-filter: blur(16px) saturate(1.22);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

.post-expand-toggle:hover,
.post-expand-toggle[aria-expanded="true"] {
  border-color: rgba(0, 122, 255, 0.22);
  background: rgba(0, 122, 255, 0.08);
  color: var(--accent-strong);
}

.expand-icon {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.1);
  color: var(--accent);
  line-height: 1;
  transition: transform 0.2s;
}

.post-expand-toggle[aria-expanded="true"] .expand-icon {
  transform: rotate(180deg);
}

.reply-summary {
  white-space: nowrap;
}

.post-details {
  margin-top: 4px;
}

.admin-reply {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  border: 1px solid rgba(255, 45, 85, 0.26);
  border-radius: 8px;
  padding: 13px 14px;
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.16), rgba(255, 149, 0, 0.16));
  box-shadow: 0 14px 28px rgba(255, 45, 85, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.admin-reply strong {
  color: #ff2d55;
  font-size: 14px;
  font-weight: 900;
}

.admin-reply p {
  margin: 0;
  color: #b4235a;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.55;
}

.post-photos,
.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.post-photos img,
.photo-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(35, 48, 68, 0.1);
}

.post-photos img {
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-photos img:hover {
  box-shadow: 0 12px 26px rgba(35, 48, 68, 0.16);
  transform: translateY(-2px);
}

.image-dialog {
  width: auto;
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 28px);
  border: 0;
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(22px) saturate(1.25);
}

.image-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}

.image-dialog img {
  display: block;
  max-width: calc(100vw - 64px);
  max-height: calc(100vh - 84px);
  border-radius: 8px;
  object-fit: contain;
  cursor: zoom-out;
}

.image-dialog .icon-only {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.82);
}

.floating-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: visible;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

.floating-dialog::backdrop {
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(12px);
}

.floating-dialog .icon-only {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.84);
}

.floating-dialog-card {
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 28px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(24px) saturate(1.25);
}

.floating-dialog-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-right: 44px;
}

.floating-dialog-author {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 850;
}

.floating-dialog-time,
.floating-dialog-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.floating-dialog-text {
  margin: 0;
  color: #111827;
  font-family: var(--floating-message-font, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: var(--floating-message-size, 19px);
  font-weight: 820;
  line-height: 1.45;
  white-space: pre-wrap;
}

.floating-dialog-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.floating-dialog-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  cursor: zoom-in;
}

.floating-dialog-admin {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.14), rgba(255, 149, 0, 0.16));
  color: #be123c;
  font-weight: 780;
}

.floating-dialog-admin p {
  margin: 0;
  color: #c2410c;
}

.post-actions {
  margin-top: 10px;
  flex-wrap: wrap;
}

.replies {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.reply {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  line-height: 1.5;
}

.reply-text {
  margin: 0;
}

.reply strong {
  margin-right: 6px;
}

.nested-reply-toggle {
  justify-self: start;
  min-height: 30px;
  padding: 0 11px;
  font-size: 13px;
}

.nested-replies {
  display: grid;
  gap: 8px;
  margin-left: 18px;
  padding-left: 12px;
  border-left: 2px solid rgba(0, 122, 255, 0.12);
}

.composer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
}

label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.field {
  display: grid;
  gap: 8px;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input {
  min-height: 44px;
  padding: 0 13px;
}

textarea {
  min-height: 96px;
  padding: 13px;
  resize: vertical;
  line-height: 1.55;
}

.emoji-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--accent-strong);
  font-weight: 780;
  box-shadow: 0 8px 18px rgba(35, 48, 68, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
}

.emoji-toggle::before {
  margin-right: 6px;
  content: "😀";
}

.emoji-toggle[aria-expanded="true"] {
  border-color: rgba(255, 149, 0, 0.28);
  background: rgba(255, 149, 0, 0.14);
  color: #b45309;
}

.emoji-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -6px;
}

.emoji-tray button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 18px rgba(35, 48, 68, 0.06);
  font-size: 20px;
  backdrop-filter: blur(14px) saturate(1.2);
  transition: transform 0.2s, background 0.2s;
}

.emoji-tray button:hover {
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.14);
}

#photoInput {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-count,
.form-message {
  color: var(--muted);
  font-size: 14px;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
}

.primary,
.secondary,
.ghost,
.danger,
.upload-button,
.reply-toggle,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 15px;
  font-weight: 720;
}

.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 122, 255, 0.24);
}

.primary:hover {
  background: var(--accent-strong);
}

.secondary,
.upload-button {
  background: rgba(255, 255, 255, 0.62);
  color: var(--accent-strong);
  border-color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.ghost,
.reply-toggle,
.icon-button {
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
}

.danger {
  background: rgba(255, 59, 48, 0.12);
  color: var(--danger);
  border-color: rgba(255, 59, 48, 0.2);
}

.icon-button {
  gap: 7px;
  min-width: 72px;
}

.icon-button.liked {
  color: #ff2d55;
  border-color: rgba(255, 45, 85, 0.28);
  background: rgba(255, 45, 85, 0.11);
}

.auth-dialog {
  width: min(420px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.auth-dialog::backdrop {
  background: rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(10px);
}

.auth-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.icon-only {
  width: 40px;
  padding: 0;
  font-size: 24px;
}

.admin-panel {
  padding: 22px;
}

.admin-search {
  width: min(320px, 42vw);
}

.admin-grid,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 16px;
  margin-top: 18px;
}

.admin-layout {
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 16px 34px rgba(35, 48, 68, 0.08);
  backdrop-filter: blur(18px) saturate(1.2);
}

.admin-nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 760;
}

.admin-nav-item:hover,
.admin-nav-item.active {
  border-color: rgba(0, 122, 255, 0.18);
  background: rgba(0, 122, 255, 0.1);
  color: var(--accent-strong);
}

.admin-content {
  min-width: 0;
}

.admin-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.admin-card h3 {
  margin: 0 0 12px;
}

.admin-logo-form,
.admin-hero-form,
.admin-floating-form,
.admin-filters-form,
.admin-settings-form {
  display: grid;
  gap: 12px;
}

.admin-floating-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-floating-form h3 {
  margin: 0;
  color: #111827;
  font-size: 16px;
}

.settings-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field select {
  min-height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font: inherit;
  outline: none;
}

.field select:focus {
  border-color: rgba(0, 122, 255, 0.38);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-empty {
  padding: 14px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.admin-row-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.admin-date,
.status-pill {
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(52, 199, 89, 0.14);
  color: #188038;
  font-weight: 720;
}

.status-pill.disabled {
  background: rgba(255, 59, 48, 0.12);
  color: var(--danger);
}

.pin-active {
  border-color: rgba(255, 149, 0, 0.3);
  background: rgba(255, 149, 0, 0.14);
  color: #b45309;
}

.admin-post-text {
  min-height: 74px;
}

.admin-reply-editor {
  display: grid;
  gap: 9px;
  margin-top: 6px;
  border: 1px solid rgba(255, 45, 85, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 45, 85, 0.08);
}

.admin-reply-label {
  margin-top: 4px;
  color: #ff2d55;
  font-weight: 820;
}

.admin-reply-text {
  min-height: 72px;
  border-color: rgba(255, 45, 85, 0.22);
  background: rgba(255, 255, 255, 0.7);
}

.confirm-admin-reply {
  justify-self: start;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
  }

  .session {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .search-box {
    order: 2;
    width: min(320px, 100%);
  }

  .floating-wall {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .floating-visual {
    min-height: 360px;
  }

  .floating-copy h1 {
    font-size: clamp(44px, 11vw, 72px);
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .admin-nav-item {
    justify-content: center;
    padding-inline: 8px;
    text-align: center;
  }

  .admin-search {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 1120px);
    padding-top: 14px;
  }

  .brand {
    gap: 9px;
    font-size: 17px;
  }

  .brand-mark {
    width: min(var(--logo-size, 42px), 52px);
    height: min(var(--logo-size, 42px), 52px);
  }

  .brand-mark.has-image {
    width: min(calc(var(--logo-size, 42px) * 3.72), 56vw);
    height: min(var(--logo-size, 42px), 60px);
  }

  .floating-wall,
  .feed-section,
  .composer,
  .admin-panel {
    padding: 16px;
  }

  .feed-head,
  .composer-head,
  .admin-head {
    align-items: flex-start;
  }

  .floating-visual,
  .floating-posts {
    min-height: 340px;
  }

  .floating-frame {
    inset: 34px 14px 14px;
  }

  .floating-note {
    width: 190px;
    min-height: 150px;
    padding: 18px;
  }

  .settings-row {
    grid-template-columns: 1fr;
  }

  .floating-dialog-card {
    padding: 20px;
  }

  .float-card-0 {
    top: 18px;
    left: 0;
    width: 190px;
    min-height: 150px;
  }

  .float-card-1 {
    top: 0;
    left: 44%;
    width: 188px;
    min-height: 180px;
  }

  .float-card-2 {
    top: 136px;
    left: 18%;
    width: 224px;
    min-height: 184px;
  }

  .float-card-3 {
    top: 182px;
    left: 60%;
    width: 168px;
    min-height: 156px;
  }

  .post-main {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .avatar {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .post-line {
    gap: 8px;
  }

  .post-text {
    white-space: nowrap;
  }

  .reply-form,
  .admin-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(136px, 38vw);
    align-items: start;
    gap: 12px;
    min-height: 0;
    padding: 14px 16px 16px;
  }

  .brand {
    min-width: 0;
    padding-top: 4px;
  }

  .brand-mark.has-image {
    width: min(48vw, 210px);
    max-width: 100%;
    height: clamp(42px, 12vw, 56px);
  }

  .brand span:last-child,
  .current-user {
    display: none;
  }

  .session {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    justify-self: end;
    width: min(42vw, 164px);
    min-width: 136px;
  }

  .search-box {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
  }

  .search-box input {
    width: 100%;
    min-height: 42px;
    padding-right: 10px;
    font-size: 14px;
  }

  #publishOpenBtn {
    grid-column: 1 / -1;
    order: 1;
    width: 100%;
  }

  #loginOpenBtn,
  #registerOpenBtn,
  #logoutBtn {
    order: 2;
    width: 100%;
  }

  .primary,
  .secondary,
  .ghost,
  .danger,
  .publish-button,
  .upload-button,
  .reply-toggle,
  .icon-button {
    min-height: 38px;
    padding-inline: 12px;
  }

  .publish-button span {
    width: 20px;
    height: 20px;
  }
}
