:root {
  --bg: #070a12;
  --surface: #101722;
  --surface-soft: #141c29;
  --surface-elev: #1b2535;
  --text: #f8fafc;
  --muted: #9aa4b5;
  --line: #283447;
  --accent: #5b8cff;
  --card-width: 280px;
  --event-card-width: 204px;
  --event-card-gutter: 12px;
  --media-ratio: 3 / 4;
  --feed-gutter: 16px;
  --feed-row-width: 1168px;
  --layout-max: 1880px;
  --scrollbar-lock-padding: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html[data-auth-token="present"] #nav-login,
html[data-auth-token="present"] #nav-signup {
  display: none !important;
}

html[data-auth-token="present"] .top-nav-actions .auth-only-action:not([hidden]) {
  display: inline-flex !important;
}

html[data-initial-page="mypage"] #home-view,
html[data-initial-page="notifications"] #home-view,
html[data-initial-page="events"] #home-view {
  display: none;
}

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

html,
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 140, 255, 0.34) transparent;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 140, 255, 0.34) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #080c14;
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(143, 178, 255, 0.52);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}

body.modal-open {
  overflow: hidden;
  padding-right: var(--scrollbar-lock-padding);
}

html.post-detail-open,
body.post-detail-open {
  overflow: hidden;
}

body.post-detail-open {
  padding-right: var(--scrollbar-lock-padding);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 1px solid var(--line);
  background: var(--surface-elev);
  border-radius: 999px;
  height: 34px;
  padding: 0 12px;
  color: var(--text);
  cursor: pointer;
  outline: none;
}

button:hover {
  filter: brightness(1.08);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  filter: none;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 74px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 14, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 16px;
}

.top-nav > .inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
}

.top-brand {
  width: 172px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.top-brand img {
  width: 100%;
  height: auto;
  display: block;
}

.top-nav-menu {
  display: flex;
  gap: 6px;
  flex: 1;
}

.top-nav-menu a {
  position: relative;
  font-size: 15px;
  color: #d0d7e5;
  border-radius: 999px;
  padding: 10px 13px;
  line-height: 1;
}

.top-nav-menu a::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 5px;
  left: 13px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
}

.top-nav-menu a:hover,
.top-nav-menu a.active,
.top-nav-menu a[aria-current="page"] {
  color: #ffffff;
}

.top-nav-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.top-nav-menu a.active::after,
.top-nav-menu a[aria-current="page"]::after {
  opacity: 1;
}

.top-nav-search {
  width: 300px;
}

.top-nav-search input {
  width: 100%;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0b111b;
  color: var(--text);
  padding: 0 16px;
  font-size: 14px;
}

.top-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-pill,
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface-elev);
  color: var(--text);
  cursor: pointer;
}

.button-primary {
  border-color: rgba(91, 140, 255, 0.8);
  color: #ffffff;
  background: #315fb8;
}

.action-pill {
  border-radius: 999px;
  padding: 0 15px;
  font-size: 14px;
}

#nav-notifications,
#nav-rewards {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 999px;
  padding: 0 15px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.notification-button {
  position: relative;
  gap: 7px;
}

.notification-badge {
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #4f8cff;
  color: #ffffff;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px #0b111b;
}

.notification-popover {
  position: fixed;
  inset: 0;
  z-index: 1500;
  pointer-events: none;
}

.notification-popover-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
}

.notification-panel {
  position: absolute;
  top: 66px;
  right: max(16px, calc((100vw - var(--layout-max)) / 2 + 16px));
  width: min(380px, calc(100vw - 24px));
  max-height: min(680px, calc(100dvh - 84px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(91, 140, 255, 0.3);
  border-radius: 10px;
  background: #0d1624;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  pointer-events: auto;
}

.notification-panel-head,
.notifications-page-head,
.events-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notification-panel-head {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px 12px;
}

.notification-panel-head h2,
.notifications-page-head h1,
.events-page-head h1 {
  margin: 0;
}

.notification-panel-head h2 {
  font-size: 17px;
}

.notification-panel-head a {
  color: #8fb2ff;
  font-size: 13px;
  font-weight: 800;
}

.notification-list {
  display: grid;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
}

.notification-list::-webkit-scrollbar {
  width: 8px;
}

.notification-list::-webkit-scrollbar-track {
  background: rgba(8, 13, 22, 0.82);
}

.notification-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.34);
  border: 2px solid rgba(8, 13, 22, 0.82);
}

.notification-list::-webkit-scrollbar-thumb:hover {
  background: rgba(91, 140, 255, 0.58);
}

.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  color: #edf2fc;
  border: 0;
  border-bottom: 1px solid rgba(47, 61, 82, 0.82);
  background: transparent;
  padding: 12px 16px;
  text-align: left;
}

.notification-item:hover {
  background: rgba(91, 140, 255, 0.08);
  filter: none;
}

.notification-item.unread::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5b8cff;
}

.notification-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(91, 140, 255, 0.28);
  border-radius: 50%;
  background: #111a28;
  color: #cfe0ff;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
}

.notification-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.notification-content {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding-right: 14px;
}

.notification-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.notification-category {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.16);
  color: #9fbeff;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.notification-category.operation {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

.notification-category.reward {
  background: rgba(45, 212, 191, 0.14);
  color: #7dd3fc;
}

.notification-title {
  min-width: 0;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.notification-body {
  margin: 0;
  color: #c8d3e3;
  font-size: 12px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.notification-time {
  color: #8d99ad;
  font-size: 11px;
  font-weight: 700;
}

.notification-empty {
  margin: 0;
  color: var(--muted);
  padding: 24px 16px;
  font-size: 13px;
  text-align: center;
}

.operation-notice-dialog {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.operation-notice-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  background: rgba(2, 6, 15, 0.72);
}

.operation-notice-panel {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  display: grid;
  gap: 14px;
  border: 1px solid #243656;
  border-radius: 8px;
  background: #0d1524;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.56);
  overflow-y: auto;
}

.operation-notice-panel header {
  display: grid;
  gap: 4px;
}

.operation-notice-panel h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 20px;
  line-height: 1.25;
}

.operation-notice-body {
  display: grid;
  gap: 12px;
}

.operation-summary {
  display: grid;
  border: 1px solid rgba(91, 140, 255, 0.22);
  border-radius: 8px;
  background: rgba(91, 140, 255, 0.08);
  overflow: hidden;
}

.operation-summary-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid rgba(91, 140, 255, 0.16);
  padding: 10px 12px;
}

.operation-summary-row:last-child {
  border-bottom: 0;
}

.operation-summary-row span {
  color: #91a3bd;
  font-size: 12px;
  font-weight: 800;
}

.operation-summary-row strong {
  color: #edf2fc;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.operation-notice-message {
  margin: 0;
  border: 1px solid rgba(91, 140, 255, 0.22);
  border-radius: 8px;
  background: rgba(91, 140, 255, 0.08);
  color: #dce5f4;
  padding: 12px;
  font-size: 13px;
  line-height: 1.55;
}

.operation-notice-message.is-warning {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.1);
  color: #fde68a;
}

.operation-notice-message.is-muted {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.08);
  color: #c8d3e3;
}

.operation-notice-message.is-error,
.operation-appeal-status.error {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}

.operation-appeal-form {
  display: grid;
  gap: 12px;
}

.operation-appeal-form label {
  display: grid;
  gap: 7px;
  color: #c8d3e3;
  font-size: 12px;
  font-weight: 800;
}

.operation-appeal-form select,
.operation-appeal-form textarea {
  width: 100%;
  border: 1px solid #2f3d52;
  border-radius: 8px;
  background: #080d16;
  color: #edf2fc;
  padding: 10px 12px;
  font: inherit;
}

.operation-appeal-form textarea {
  min-height: 132px;
  resize: vertical;
}

.operation-appeal-check {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  color: #aebbd0;
  font-weight: 700;
  line-height: 1.45;
}

.operation-appeal-check input {
  margin-top: 2px;
}

.operation-appeal-status {
  min-height: 18px;
  margin: 0;
  color: #8fb2ff;
  font-size: 12px;
  font-weight: 800;
}

.operation-notice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.operation-notice-actions.single {
  grid-template-columns: 1fr;
}

.operation-notice-actions button {
  min-height: 40px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.signup-link {
  background: #111a28;
  color: #dce5f4;
}

.avatar {
  width: 42px;
  border-radius: 50%;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
}

.avatar.has-image {
  background: #0b111b;
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar .default-profile-icon {
  width: 24px;
  height: 24px;
  margin: 0;
  stroke-width: 4;
}

.layout-wrap {
  padding: 14px 0 18px;
}

.layout {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(220px, 14vw) minmax(var(--feed-row-width), 1fr) minmax(240px, 16vw);
  align-items: start;
  gap: 16px;
}

.main-content {
  min-width: var(--feed-row-width);
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.panel-block {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(8px, 0.8vw, 12px);
}

.panel-block h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #e6edf6;
}

.panel-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-block-head h2 {
  margin: 0;
}

.panel-block-head a {
  flex: 0 0 auto;
  color: #8fb2ff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.notice-side-list {
  display: grid;
  gap: 2px;
  overflow-x: hidden;
}

.notice-side-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  border-radius: 6px;
  color: #dbe7ff;
  padding: 7px 6px;
}

.notice-side-row:hover {
  background: rgba(91, 140, 255, 0.1);
  color: #ffffff;
}

.notice-side-row time {
  color: #8fb2ff;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.notice-side-row span {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: keep-all;
}

.notice-side-empty {
  margin: 0;
  color: #9aa8ba;
  font-size: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--surface-soft);
  color: #e8eef8;
  overflow-wrap: anywhere;
}

.tag.active {
  border-color: rgba(91, 140, 255, 0.86);
  background: rgba(91, 140, 255, 0.18);
  color: #cfe0ff;
}

.panel-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.panel-block-head h2 {
  margin: 0;
}

.panel-block-head a {
  flex: none;
  font-size: 12px;
  color: #98a7bd;
}

.panel-block-head a:hover {
  color: #f472d0;
}

.event-list {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.event-list li {
  min-width: 0;
}

.event-list li:last-child .upcoming-event-row {
  border-bottom: 0;
}

.upcoming-event-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 86px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: #d0d9e6;
}

.upcoming-event-row:hover strong {
  color: #f8fafc;
}

.upcoming-event-row img {
  width: 56px;
  height: 70px;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #101827;
}

.upcoming-event-info {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
}

.upcoming-event-info strong {
  font-size: 13px;
  line-height: 1.3;
  color: #f8fafc;
}

.upcoming-event-info time,
.upcoming-event-info span {
  font-size: 12px;
  line-height: 1.25;
}

.upcoming-event-info time {
  color: #94a3b8;
}

.upcoming-event-place {
  position: relative;
  color: #a7b3c7;
  padding-left: 12px;
}

.upcoming-event-place::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f472d0, #38bdf8);
  transform: translateY(-50%);
}

.upcoming-event-info strong,
.upcoming-event-info time,
.upcoming-event-info span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-wrapper {
  margin-bottom: 12px;
}

.hero-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(5, 8, 18, 0.28), rgba(5, 8, 18, 0.64)),
    linear-gradient(90deg, #111827 0%, #1f2937 100%);
  height: 190px;
  display: block;
  padding: 0;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-carousel-track {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 420ms ease;
  touch-action: pan-y;
}

.hero-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(5, 8, 18, 0.28), rgba(5, 8, 18, 0.64)),
    linear-gradient(90deg, #111827 0%, #1f2937 100%);
  background-position: center;
  background-size: cover;
  padding: 14px;
}

.hero-slide-link {
  color: inherit;
  text-decoration: none;
}

.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 34px;
  height: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(8, 13, 22, 0.58);
  color: #ffffff;
  padding: 0;
  font-size: 34px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.96);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.hero-card:hover .hero-carousel-arrow,
.hero-card:focus-within .hero-carousel-arrow,
.hero-carousel.controls-visible .hero-carousel-arrow {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.hero-carousel-arrow:hover {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(8, 13, 22, 0.78);
}

.hero-carousel-arrow.prev {
  left: 10px;
}

.hero-carousel-arrow.next {
  right: 10px;
}

@media (hover: none) {
  .hero-card:hover .hero-carousel-arrow {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.96);
  }

  .hero-card:focus-within .hero-carousel-arrow,
  .hero-carousel.controls-visible .hero-carousel-arrow {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
  }
}

.hero-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 7px;
  align-items: center;
  transform: translateX(-50%);
}

.hero-carousel-dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  min-height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  padding: 0;
}

.hero-carousel-dot.active {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  background: #ffffff;
}

.hero-label {
  --hero-label-pad-y: 8px;
  --hero-label-pad-x: 10px;
  --hero-label-size: 11px;
  --hero-title-size: 22px;
  --hero-title-line-height: 1.2;
  --hero-subtitle-size: 13px;
  --hero-subtitle-line-height: 1.3;
  margin: 0 0 0 48px;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  padding: var(--hero-label-pad-y) var(--hero-label-pad-x);
  border-radius: 6px;
}

.hero-label span {
  display: block;
  margin-bottom: 3px;
  color: #8fb2ff;
  font-size: var(--hero-label-size);
  font-weight: 900;
  letter-spacing: 0;
}

.hero-label h2 {
  margin: 0 0 2px;
  font-size: var(--hero-title-size);
  line-height: var(--hero-title-line-height);
}

.hero-label p {
  margin: 0;
  font-size: var(--hero-subtitle-size);
  line-height: var(--hero-subtitle-line-height);
  color: #e5edf8;
}

@media (max-width: 1280px) {
  .hero-label {
    --hero-label-size: 10.5px;
    --hero-title-size: 20px;
    --hero-title-line-height: 1.17;
    --hero-subtitle-size: 12px;
    --hero-subtitle-line-height: 1.25;
  }
}

@media (max-width: 940px) {
  .hero-label {
    --hero-label-size: 10px;
    --hero-title-size: 18px;
    --hero-title-line-height: 1.15;
    --hero-subtitle-size: 11px;
    --hero-subtitle-line-height: 1.22;
  }
}

@media (max-width: 760px) {
  .hero-label {
    --hero-label-size: 9.5px;
    --hero-title-size: 16px;
    --hero-title-line-height: 1.13;
    --hero-subtitle-size: 10px;
    --hero-subtitle-line-height: 1.2;
  }
}

.content-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.control-left,
.control-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-title {
  font-size: 18px;
  font-weight: 700;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chip {
  border-radius: 999px;
  height: 28px;
  padding: 0 12px;
}

.content-control .active {
  border-color: #4f46e5;
  color: #4f46e5;
}

.view-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  min-width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0;
}

.view-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.feed-grid {
  column-count: 4;
  column-width: var(--card-width);
  column-gap: var(--feed-gutter);
}

.feed-sections {
  display: grid;
  gap: 18px;
}

.feed-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--card-width)), var(--card-width)));
  justify-content: center;
  gap: var(--feed-gutter);
}

.feed-section-grid .feed-card {
  width: 100%;
  margin: 0;
}

.feed-section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8d99ad;
  font-size: 13px;
  font-weight: 800;
}

.feed-section-divider::before,
.feed-section-divider::after {
  content: "";
  min-width: 0;
  height: 1px;
  flex: 1 1 0;
  background: rgba(64, 80, 106, 0.72);
}

.explore-coser-strip {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.76);
  padding: 12px;
  overflow: hidden;
}

.explore-coser-strip-row {
  display: grid;
  grid-template-columns: repeat(12, 70px);
  justify-content: center;
  gap: 12px;
}

.explore-coser-bubble {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #dbe5f4;
  text-decoration: none;
}

.explore-coser-bubble span {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(143, 178, 255, 0.32);
  border-radius: 50%;
  background: #101827;
}

.explore-coser-bubble img,
.explore-coser-bubble svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.explore-coser-bubble .default-profile-icon {
  width: 42px;
  height: 42px;
}

.explore-coser-bubble strong {
  max-width: 70px;
  overflow: hidden;
  color: #dbe5f4;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explore-coser-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.feed-card {
  width: min(var(--card-width), 100%);
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  break-inside: avoid;
  margin: 0 0 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

.feed-empty {
  width: min(100%, 420px);
  display: grid;
  gap: 10px;
  break-inside: avoid;
  border: 1px dashed rgba(91, 140, 255, 0.38);
  border-radius: 8px;
  background: rgba(11, 17, 27, 0.72);
  color: #cfe0ff;
  padding: 16px;
}

.feed-empty strong {
  font-size: 14px;
}

.feed-empty button {
  justify-self: start;
  border-radius: 8px;
}

.feed-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.feed-card-link:hover {
  border-color: rgba(91, 140, 255, 0.7);
  transform: translateY(-1px);
}

.media-frame {
  width: 100%;
  aspect-ratio: var(--media-ratio);
  overflow: hidden;
  background: #0f172a;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feed-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.34;
  color: #f3f7fe;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-preview {
  margin: 0;
  font-size: 14px;
  color: #b8c2d3;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.more-link {
  align-self: flex-start;
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  row-gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  line-height: 1.3;
}

.feed-meta {
  display: grid;
  gap: 6px;
  align-items: stretch;
  border-top: 1px solid rgba(64, 80, 106, 0.72);
  margin-top: 6px;
  padding-top: 8px;
}

.feed-social-row,
.feed-author-row {
  min-width: 0;
  display: flex;
  align-items: center;
}

.feed-social-row {
  gap: 10px;
  color: #aeb9cc;
  font-size: 13px;
}

.feed-social-row span,
.feed-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.feed-social-pill {
  color: #aeb9cc;
  font-weight: 800;
  line-height: 1;
}

.feed-social-pill svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.feed-like-pill.active {
  color: #ef4444;
}

.feed-like-pill.active svg {
  fill: #ef4444;
  stroke: #ef4444;
}

.feed-author-row {
  gap: 6px;
  font-size: 14px;
}

.feed-author-name {
  min-width: 0;
  color: #dbe5f4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
}

.feed-author-follow {
  flex: 0 0 auto;
  color: #8fb2ff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.feed-author-follow.following {
  color: #aeb9cc;
}

.feed-author-follow[aria-disabled="true"] {
  opacity: 0.52;
  pointer-events: none;
}

.feed-author-row time {
  flex: 0 0 auto;
  margin-left: auto;
  color: #8d99ad;
  font-size: 12px;
  white-space: nowrap;
}

.feed-author-row .author-avatar {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.author-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.author-avatar {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: #0b111b;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.author-avatar:empty {
  display: none;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.author-avatar .default-profile-icon {
  width: 13px;
  height: 13px;
  margin: 2px;
  stroke-width: 5;
}

.feed-author-row .author-avatar .default-profile-icon {
  width: 24px;
  height: 24px;
  margin: 5px;
  stroke-width: 4;
}

.tweet-card {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.tweet-feed-card .tweet-card {
  padding: 0;
}

.tweet-media-frame {
  aspect-ratio: var(--media-ratio);
}

.tweet-card blockquote {
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
  font-size: 13px;
  line-height: 1.4;
  color: #eef3fb;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tweet-feed-card .tweet-meta,
.tweet-feed-card blockquote,
.tweet-feed-card .tweet-stats,
.tweet-feed-card .tweet-source-footer {
  margin-left: 10px;
  margin-right: 10px;
}

.tweet-feed-card blockquote {
  margin-top: 10px;
}

.tweet-feed-card .tweet-source-footer {
  margin-bottom: 10px;
}

.tweet-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 13px;
  color: #dbe5f4;
}

.tweet-meta strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.tweet-author-avatar {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.tweet-author-avatar .default-profile-icon {
  width: 24px;
  height: 24px;
  margin: 5px;
  stroke-width: 4;
}

.tweet-source-footer {
  display: grid;
  gap: 6px;
  border-top: 1px solid rgba(64, 80, 106, 0.72);
  padding-top: 8px;
}

.tweet-source-author {
  gap: 6px;
}

.tweet-source-author time {
  margin-left: auto;
}

.tweet-source-chip {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.tweet-stats {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #a7b3c7;
  font-weight: 800;
}

.tweet-stats span,
.tweet-stats time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.tweet-stats time {
  margin-left: auto;
  color: #8d99ad;
  font-weight: 700;
}

.tweet-stats svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.post-detail-page {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: transparent;
  padding: 24px;
  overflow: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.post-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.82);
  backdrop-filter: blur(5px);
}

.post-detail-close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 3;
  display: block;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.22);
  border-radius: 999px;
  background: rgba(8, 13, 24, 0.74);
  color: #ffffff;
  font-size: 0;
  line-height: 1;
  text-align: center;
}

.post-detail-close::before,
.post-detail-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.post-detail-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.post-detail-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.post-detail-shell {
  --post-detail-media-ratio: 1;
  --post-detail-media-width: 520px;
  --post-detail-side-width: 380px;
  --post-detail-stacked-media-height: clamp(280px, 58dvh, 560px);
  position: relative;
  z-index: 2;
  width: min(calc(var(--post-detail-media-width) + var(--post-detail-side-width)), calc(100vw - 48px), 1180px);
  height: min(92vh, 900px);
  height: min(92dvh, 900px);
  margin: 0 auto;
}

.post-detail-content {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.post-detail-article {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, var(--post-detail-media-width)) var(--post-detail-side-width);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050812;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.post-detail-side {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: #0b111b;
}

.post-detail-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #0b111b;
  padding: 14px 16px;
}

.post-detail-avatar {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.post-detail-avatar .default-profile-icon {
  width: 28px;
  height: 28px;
  margin: 0;
  stroke-width: 4;
}

.post-detail-head strong,
.post-detail-head time {
  display: block;
  margin: 0;
}

.post-detail-head strong {
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.25;
}

.post-detail-author-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-detail-author-line strong,
.post-detail-author-line .post-detail-author-link {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-detail-author-follow {
  flex: 0 0 auto;
  min-height: 24px;
  border: 1px solid rgba(77, 124, 255, 0.48);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.18);
  color: #9db8ff;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.post-detail-author-follow.following {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.post-detail-author-follow[aria-disabled="true"] {
  opacity: 0.58;
  pointer-events: none;
}

.post-detail-head time {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.post-detail-media {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  background: #050812;
}

.post-detail-main-media {
  position: relative;
  display: grid;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  place-items: center;
  background: #050812;
}

.post-detail-main-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #050812;
}

.post-detail-image-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 64px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 6px;
  background: rgba(5, 8, 18, 0.72);
  color: #f8fafc;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.post-detail-image-nav.prev {
  left: 12px;
}

.post-detail-image-nav.next {
  right: 12px;
}

.post-detail-image-nav:hover {
  border-color: var(--accent);
  background: rgba(29, 78, 216, 0.78);
}

.post-detail-image-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 999px;
  background: rgba(5, 8, 18, 0.78);
  padding: 6px 10px;
  color: #e8eef8;
  font-size: 12px;
  font-weight: 800;
}

.post-detail-main-media.with-thumbs .post-detail-image-count {
  bottom: 86px;
}

.post-detail-thumbs-overlay {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  max-width: calc(100% - 32px);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px;
  transform: translateX(-50%);
  scrollbar-width: thin;
}

.post-detail-thumb {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 62px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.45);
  border-radius: 4px;
  background: rgba(5, 8, 18, 0.48);
  padding: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38);
}

.post-detail-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.post-detail-thumb.active {
  border-color: #8fb2ff;
  box-shadow:
    0 0 0 2px rgba(91, 140, 255, 0.32),
    0 8px 18px rgba(0, 0, 0, 0.38);
}

.post-detail-empty-media {
  min-height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.post-detail-scroll {
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 140, 255, 0.34) transparent;
  -webkit-overflow-scrolling: touch;
  background: #0b111b;
}

.post-detail-scroll::-webkit-scrollbar {
  width: 8px;
}

.post-detail-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.post-detail-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #0b111b;
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.3);
}

.post-detail-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(143, 178, 255, 0.52);
}

.post-detail-caption,
.post-detail-comment {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 16px;
}

.post-detail-comment {
  grid-template-columns: 34px minmax(0, 1fr) 32px;
  align-items: start;
}

.post-detail-caption p,
.post-detail-comment p {
  margin: 0;
  color: #e8eef8;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.post-detail-caption strong,
.post-detail-comment strong {
  color: #ffffff;
  font-weight: 800;
}

.post-detail-caption > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.post-detail-caption-preview {
  display: none;
}

.post-mobile-caption-more,
.post-mobile-comment-preview,
.post-mobile-comments-header,
.post-mobile-comments-backdrop {
  display: none;
}

@media (max-width: 940px) {
  .post-detail-caption-text.is-collapsible .post-detail-caption-full {
    display: none;
  }

  .post-detail-caption-text.is-collapsible .post-detail-caption-preview {
    display: inline;
  }

  .post-detail-caption-text.is-collapsible.expanded .post-detail-caption-full {
    display: inline;
  }

  .post-detail-caption-text.is-collapsible.expanded .post-detail-caption-preview {
    display: none;
  }

  .post-detail-caption-ellipsis {
    color: #aeb9cc;
  }

  .post-detail-caption .post-url {
    display: inline-block;
    max-width: min(100%, 28ch);
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
  }

  .post-detail-caption-text.expanded .post-url {
    max-width: 100%;
    white-space: normal;
  }

  .post-mobile-caption-more {
    width: fit-content;
    height: auto;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #8fb2ff;
    padding: 2px 0 0;
    font-size: 13px;
    font-weight: 800;
  }

  .post-mobile-caption-more:hover {
    color: #ffffff;
    filter: none;
  }
}

.post-detail-comment-avatar {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  grid-column: 1;
}

.post-detail-comment-avatar:empty {
  display: grid;
}

.post-detail-comment-avatar .default-profile-icon {
  width: 22px;
  height: 22px;
  margin: 0;
  stroke-width: 4;
}

.post-detail-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
}

.post-detail-meta {
  min-height: 0;
  border-top: 1px solid var(--line);
  background: #0b111b;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 12px;
}

.post-detail-meta strong,
.post-detail-meta a,
.post-detail-meta span {
  display: block;
}

.post-detail-meta strong {
  margin-top: 8px;
  color: #f8fafc;
  font-size: 13px;
}

.post-detail-meta a {
  margin-top: 4px;
  color: #cfe1ff;
  text-decoration: none;
}

.post-detail-meta a:hover {
  color: #ffffff;
}

.post-detail-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.post-detail-icon-button,
.post-detail-icon-link {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e8eef8;
  padding: 0;
  line-height: 0;
  text-decoration: none;
}

.post-detail-icon-button svg,
.post-detail-icon-link svg {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.post-detail-icon-button:hover,
.post-detail-icon-link:hover,
.post-detail-icon-button.active {
  background: rgba(91, 140, 255, 0.12);
  color: #8fb2ff;
}

.post-detail-icon-button.active svg {
  fill: rgba(91, 140, 255, 0.22);
}

#post-detail-like.active {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

#post-detail-like.active svg {
  fill: #ef4444;
  stroke: #ef4444;
}

#post-detail-like:disabled {
  cursor: default;
  opacity: 0.62;
}

.post-detail-action-menu {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 20px;
}

.post-detail-action-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: rgba(2, 6, 14, 0.48);
  padding: 0;
}

.post-detail-action-sheet {
  position: relative;
  z-index: 1;
  width: min(340px, 100%);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: #111827;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.54);
}

.post-detail-action-sheet button {
  width: 100%;
  height: 48px;
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0;
  background: transparent;
  color: #e8eef8;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
}

.post-detail-action-sheet button:last-child {
  border-bottom: 0;
  color: #9aa4b5;
}

.post-detail-action-sheet button.danger {
  color: #f87171;
}

.post-detail-action-sheet button:hover {
  filter: none;
  background: rgba(91, 140, 255, 0.12);
}

.post-detail-dialog {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
}

.post-detail-dialog-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: rgba(2, 6, 14, 0.58);
  padding: 0;
}

.post-detail-dialog-panel {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  display: grid;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  background: #111827;
  padding: 20px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.56);
}

.post-detail-dialog-panel h2,
.post-detail-dialog-panel p {
  margin: 0;
}

.post-detail-dialog-panel h2 {
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.3;
}

.post-detail-dialog-panel p {
  color: #c7d0df;
  font-size: 14px;
  line-height: 1.55;
}

.post-detail-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.post-detail-dialog-actions button {
  min-height: 40px;
  border-radius: 8px;
}

.post-detail-dialog-actions button[hidden] + button {
  grid-column: 1 / -1;
}

.post-detail-dialog-actions .danger {
  border-color: rgba(248, 113, 113, 0.48);
  background: #7f1d1d;
  color: #ffffff;
}

.post-detail-report-dialog {
  z-index: 152;
}

.post-detail-report-panel {
  width: min(420px, 100%);
  text-align: left;
}

.post-detail-report-panel h2,
.post-detail-report-panel p {
  text-align: center;
}

.post-detail-report-panel p {
  min-height: 20px;
}

.post-detail-report-panel label {
  display: grid;
  gap: 7px;
  color: #dce5f3;
  font-size: 13px;
  font-weight: 800;
}

.post-detail-report-panel label span {
  color: #cbd5e1;
}

.post-detail-report-panel select,
.post-detail-report-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b111b;
  color: #f8fafc;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
}

.post-detail-report-panel select {
  height: 40px;
}

.post-detail-report-panel textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.5;
}

.post-detail-report-panel select:focus,
.post-detail-report-panel textarea:focus {
  border-color: rgba(91, 140, 255, 0.75);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.16);
}

.post-detail-edit-dialog {
  z-index: 152;
}

.post-detail-edit-panel {
  width: min(520px, 100%);
  text-align: left;
}

.post-detail-edit-panel h2 {
  text-align: center;
}

.post-detail-edit-panel label {
  display: grid;
  gap: 8px;
  color: #dce5f3;
  font-size: 13px;
  font-weight: 800;
}

.post-detail-edit-panel label > span:first-child {
  color: #cbd5e1;
}

.post-detail-edit-editor {
  position: relative;
  display: block;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b111b;
}

.post-detail-edit-highlight,
.post-detail-edit-panel textarea {
  min-height: 190px;
  padding: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.post-detail-edit-highlight {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--text);
  pointer-events: none;
}

.post-detail-edit-panel textarea {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 190px;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: var(--text);
  resize: vertical;
}

.post-detail-edit-panel textarea::placeholder {
  color: #7f8ca3;
}

.post-detail-edit-panel textarea:focus {
  outline: 0;
}

.post-detail-edit-status {
  min-height: 18px;
  text-align: left;
}

.post-detail-comments {
  display: grid;
  align-content: start;
  gap: 0;
  padding-bottom: 8px;
}

.post-detail-thread {
  display: grid;
}

.post-detail-comment-body {
  display: grid;
  grid-column: 2;
  gap: 5px;
  min-width: 0;
}

.post-detail-comment.deleted .post-detail-comment-avatar {
  visibility: hidden;
}

.post-detail-comment-deleted {
  margin: 0;
  color: #7f8ba0;
  font-size: 13px;
  line-height: 1.45;
}

.post-detail-comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8d99ad;
  font-size: 12px;
  line-height: 1.2;
}

.post-detail-comment-actions time {
  color: #8d99ad;
}

.post-detail-comment-actions button {
  height: auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8d99ad;
  padding: 0;
  font-size: 12px;
  font-weight: 800;
}

.post-detail-comment-actions button:hover,
.post-detail-comment-actions button.active {
  color: #cfe0ff;
  filter: none;
}

.post-detail-comment-more {
  width: 22px;
  height: 18px;
  min-width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.14s ease, color 0.14s ease;
}

.post-detail-comment:hover .post-detail-comment-more,
.post-detail-comment:focus-within .post-detail-comment-more {
  opacity: 1;
}

.post-detail-comment-more svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.post-detail-comment-like {
  grid-column: 3;
  justify-self: end;
  width: auto;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #aeb9cc;
  padding: 2px 0 0 4px;
}

.post-detail-comment-like svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.post-detail-comment-like-count {
  display: inline-block;
  min-width: 8px;
  color: #8d99ad;
  font-size: 10px;
  line-height: 1;
  text-align: left;
}

.post-detail-comment-like:hover,
.post-detail-comment-like.active {
  color: #f87171;
  filter: none;
}

.post-detail-comment-like.active svg {
  fill: #ef4444;
  stroke: #ef4444;
}

.post-detail-comment-like:disabled {
  cursor: default;
  opacity: 0.62;
}

.post-detail-replies {
  display: grid;
  margin-left: 50px;
  padding-bottom: 4px;
}

.post-detail-replies-toggle {
  justify-self: start;
  height: 28px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8d99ad;
  margin: 0 16px 2px 50px;
  padding: 0;
  font-size: 12px;
  font-weight: 800;
}

.post-detail-replies-toggle span {
  width: 34px;
  height: 1px;
  background: rgba(141, 153, 173, 0.42);
}

.post-detail-replies-toggle:hover {
  color: #cfe0ff;
  filter: none;
}

.post-detail-reply {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 30px;
  column-gap: 10px;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 0;
}

.post-detail-reply .post-detail-comment-avatar {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

.post-detail-reply .post-detail-comment-avatar .default-profile-icon {
  width: 18px;
  height: 18px;
  stroke-width: 4.4;
}

.post-detail-comment-empty {
  padding: 14px 16px 18px 60px;
  color: var(--muted);
  font-size: 13px;
}

.post-detail-comments-more {
  justify-self: start;
  height: 32px;
  margin: 4px 16px 12px 60px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8fb2ff;
  padding: 0;
  font-size: 13px;
  font-weight: 800;
}

.post-detail-comments-more:hover {
  color: #ffffff;
  filter: none;
}

.post-detail-comment-form {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: #0b111b;
  padding: 12px 16px;
}

.post-detail-comment-form input {
  width: 100%;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: #f8fafc;
  font: inherit;
  font-size: 13px;
}

.post-detail-comment-form input:focus {
  outline: 0;
}

.post-detail-comment-form button {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: #8fb2ff;
  font-size: 13px;
  font-weight: 800;
}

.post-detail-comment-form button:disabled {
  color: #526177;
  cursor: default;
}

.post-detail-error {
  display: grid;
  gap: 14px;
  justify-items: start;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 18px;
}

.banner-list {
  display: grid;
  gap: 8px;
}

.banner-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  margin-bottom: 0;
  background: var(--surface-soft);
  overflow: hidden;
}

.banner-image {
  width: 100%;
  aspect-ratio: 250 / 132;
  display: block;
  object-fit: cover;
  background: #0b111b;
}

.banner-body {
  padding: 10px;
}

.banner-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
  color: #edf2fc;
  overflow-wrap: anywhere;
}

.banner-item p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.banner-item a {
  min-height: 32px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(91, 140, 255, 0.7);
  border-radius: 999px;
  background: #315fb8;
  color: #ffffff;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 900;
}

.banner-item a[aria-disabled="true"] {
  opacity: 0.58;
  pointer-events: none;
}

.right-side .panel-block {
  min-height: fit-content;
}

.member-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 16px 44px;
  min-width: 0;
}

.notifications-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px 16px 48px;
  min-width: 0;
}

.notifications-shell {
  display: grid;
  gap: 14px;
}

.notices-shell {
  display: grid;
  gap: 14px;
}

.notices-content {
  display: grid;
  gap: 12px;
}

.notice-board-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b111b;
}

.notice-board-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(40, 52, 71, 0.78);
  color: #dbe7ff;
  padding: 13px 14px;
}

.notice-board-row:last-child {
  border-bottom: 0;
}

.notice-board-row:hover {
  background: rgba(91, 140, 255, 0.08);
  color: #ffffff;
}

.notice-board-row span {
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-board-row time {
  color: #9aa8ba;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.notice-detail-page {
  display: grid;
  gap: 12px;
}

.notice-detail-page header {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b111b;
  padding: 16px;
}

.notice-detail-page h2 {
  margin: 0 0 7px;
  color: #f8fafc;
  font-size: 22px;
}

.notice-detail-page time {
  color: #9aa8ba;
  font-size: 13px;
  font-weight: 800;
}

.notice-detail-body {
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b111b;
  color: #dbe7ff;
  padding: 18px;
  font-size: 14px;
  line-height: 1.7;
}

.notice-detail-body p,
.notice-detail-body ul,
.notice-detail-body ol,
.notice-detail-body figure {
  margin: 0 0 14px;
}

.notice-detail-body ul,
.notice-detail-body ol {
  padding-left: 22px;
}

.notice-detail-body a {
  color: #8fb2ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice-detail-body img,
.notice-detail-gallery img {
  display: block;
  width: auto;
  max-width: min(100%, 860px);
  height: auto;
  margin: 14px auto;
  border-radius: 8px;
  border: 1px solid rgba(91, 140, 255, 0.22);
  object-fit: contain;
}

.notice-detail-gallery {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.notifications-page-head {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.notifications-page-head h1 {
  color: #f8fafc;
  font-size: 26px;
  line-height: 1.2;
}

.notifications-page-head button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #111a28;
  color: #dce5f4;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 800;
}

.notifications-page-head button:hover {
  border-color: rgba(91, 140, 255, 0.8);
  background: rgba(91, 140, 255, 0.16);
  color: #ffffff;
}

.notifications-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.notifications-chip-row button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #111a28;
  color: #dce5f4;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 800;
}

.notifications-chip-row button:hover,
.notifications-chip-row button.active {
  border-color: rgba(91, 140, 255, 0.8);
  background: rgba(91, 140, 255, 0.16);
  color: #ffffff;
}

.notification-list.full {
  max-height: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.notification-list.full .notification-item {
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 14px 16px;
}

.notification-list.full .notification-avatar {
  width: 48px;
  height: 48px;
}

.events-page {
  max-width: none;
  margin: 0;
  padding: 14px 0 18px;
  min-width: 0;
}

.events-layout {
  grid-template-columns: minmax(220px, 14vw) minmax(var(--feed-row-width), 1fr) minmax(240px, 16vw);
}

.events-main-content {
  min-width: var(--feed-row-width);
}

.events-shell {
  display: grid;
  gap: 14px;
}

.events-page-head {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.events-page-head h1 {
  color: #f8fafc;
  font-size: 26px;
  line-height: 1.2;
}

.events-page-head p:not(.eyebrow) {
  margin: 8px 0 0;
  color: #9aa8ba;
  font-size: 13px;
}

.events-view-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.event-request-open-button {
  min-height: 38px;
  border-color: rgba(91, 140, 255, 0.38);
  background: rgba(91, 140, 255, 0.14);
  color: #dbe7ff;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.events-view-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0b1220;
}

.events-view-toggle button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9fb0c8;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.events-view-toggle button svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.events-view-toggle button.active,
.events-view-toggle button:hover {
  background: rgba(91, 140, 255, 0.18);
  color: #f8fafc;
}

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

.event-request-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.event-request-panel + .event-request-panel {
  margin-top: 14px;
}

.event-request-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.event-request-head h2,
.event-request-head p {
  margin: 0;
}

.event-request-head h2 {
  color: #f8fafc;
  font-size: 18px;
}

.event-request-head p {
  margin-top: 5px;
  color: #9aa8ba;
  font-size: 13px;
}

.event-request-head button,
.event-request-login-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(91, 140, 255, 0.38);
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.14);
  color: #dbe7ff;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 900;
}

.event-request-message {
  margin: 0;
  border: 1px solid rgba(91, 140, 255, 0.36);
  border-radius: 8px;
  background: rgba(91, 140, 255, 0.1);
  color: #dbe7ff;
  padding: 10px 12px;
  font-size: 13px;
}

.event-request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.event-request-form label,
.event-request-schedule {
  display: grid;
  gap: 6px;
}

.event-request-form label span,
.event-request-schedule strong {
  color: #d6deeb;
  font-size: 13px;
  font-weight: 900;
}

.event-request-image-field small {
  color: #9aa8ba;
  font-size: 12px;
}

.event-request-form input,
.event-request-form select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b111b;
  color: #f8fafc;
  padding: 0 12px;
}

.event-request-schedule {
  border: 1px solid rgba(91, 140, 255, 0.24);
  border-radius: 8px;
  background: rgba(11, 17, 27, 0.72);
  padding: 12px;
}

.event-request-schedule > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.event-form-wide,
.event-request-actions {
  grid-column: 1 / -1;
}

.event-request-actions {
  display: flex;
  justify-content: flex-end;
}

.event-request-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b111b;
}

.event-request-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 0.9fr) 110px 130px;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 9px 12px;
  color: #cbd7ea;
  font-size: 13px;
}

.event-request-row.head {
  min-height: 36px;
  border-top: 0;
  color: #9fb1cc;
  font-weight: 900;
}

.event-request-row strong,
.event-request-row small {
  display: block;
}

.event-request-row strong {
  color: #f8fafc;
}

.event-request-row small {
  margin-top: 3px;
  color: #9aa8ba;
}

.event-request-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.18);
  color: #dbe7ff;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}

.event-request-status.approved {
  background: rgba(22, 101, 52, 0.28);
  color: #bbf7d0;
}

.event-request-status.rejected {
  background: rgba(127, 29, 29, 0.38);
  color: #fecaca;
}

.event-request-empty {
  margin: 0;
  color: #9aa8ba;
  font-size: 13px;
}

.event-request-pagination {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: #0b111b;
  padding: 10px;
}

.event-request-pagination > span {
  justify-self: start;
  color: #9fb1cc;
  font-size: 13px;
}

.event-request-page-buttons {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.event-request-pagination button {
  min-width: 34px;
  min-height: 30px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
}

.event-request-pagination button.active {
  border-color: rgba(91, 140, 255, 0.8);
  background: rgba(91, 140, 255, 0.22);
  color: #ffffff;
}

.events-empty {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #9aa8ba;
  padding: 18px;
  font-size: 14px;
}

.events-list-page {
  display: grid;
  gap: 14px;
}

.events-list-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(240px, 360px) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.events-list-filter-block,
.events-list-search {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.events-list-filter-block > span,
.events-list-search > span {
  color: #8ea0b8;
  font-size: 12px;
  font-weight: 900;
}

.events-list-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.events-list-filter-chips button,
.events-list-empty-actions button,
.events-list-more button,
.events-list-section-head button {
  min-height: 32px;
  border: 1px solid rgba(91, 140, 255, 0.26);
  border-radius: 999px;
  background: #101827;
  color: #cbd7ea;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.events-list-filter-chips button.active,
.events-list-filter-chips button:hover,
.events-list-empty-actions button:hover,
.events-list-more button:hover,
.events-list-section-head button:hover {
  border-color: rgba(91, 140, 255, 0.8);
  background: rgba(91, 140, 255, 0.18);
  color: #ffffff;
}

.events-list-search input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0b111b;
  color: #f8fafc;
  padding: 0 13px;
}

.events-list-summary {
  margin: 0;
  justify-self: end;
  color: #8ea0b8;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

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

.events-list-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(40, 52, 71, 0.76);
  padding: 2px 2px 9px;
}

.events-list-section-head h2,
.events-list-section-head p {
  margin: 0;
}

.events-list-section-head h2 {
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.2;
}

.events-list-section-head p {
  margin-top: 4px;
  color: #8ea0b8;
  font-size: 12px;
  font-weight: 700;
}

.events-list-empty {
  display: grid;
  gap: 12px;
}

.events-list-empty p {
  margin: 0;
}

.events-list-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.events-list-more {
  display: flex;
  justify-content: center;
  padding: 4px 0 2px;
}

.events-list-more button {
  min-width: 160px;
  min-height: 38px;
}

.events-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, var(--event-card-width)));
  justify-content: center;
  gap: var(--event-card-gutter);
}

.event-page-card {
  width: min(var(--event-card-width), 100%);
  max-width: 100%;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #101722;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.event-page-card .event-card-link {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  min-height: 0;
  min-width: 0;
  color: inherit;
}

.event-page-card:hover {
  border-color: rgba(91, 140, 255, 0.58);
  transform: translateY(-2px);
  transition: border-color 160ms ease, transform 160ms ease;
}

.event-card-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  aspect-ratio: var(--media-ratio);
  background: #070b13;
  overflow: hidden;
}

.event-page-card.landscape .event-card-media {
  min-height: 0;
}

.event-page-card.portrait .event-card-media {
  min-height: 0;
}

.event-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.event-card-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.event-card-overlay .event-type {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(8, 13, 22, 0.74);
  color: #f8fafc;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.event-page-card.landscape .event-card-media img {
  object-fit: cover;
}

.event-page-card.portrait .event-card-media img,
.event-page-card.no-image .event-card-media img {
  object-fit: contain;
  padding: 12px;
}

.event-page-card.fit-cover .event-card-media img {
  object-fit: cover;
  padding: 0;
}

.event-page-card.fit-contain .event-card-media img {
  object-fit: contain;
  padding: 12px;
}

.event-page-card.no-image .event-card-media img {
  max-width: 150px;
  max-height: 188px;
}

.event-card-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 6px;
  padding: 8px;
  min-width: 0;
}

.event-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.event-type {
  min-width: 0;
  width: fit-content;
  border: 1px solid rgba(255, 47, 143, 0.38);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 47, 143, 0.16), rgba(138, 53, 234, 0.14));
  color: #fbcfe8;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.event-card-body h2 {
  margin: 2px 0;
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.3;
  min-height: 0;
  overflow-wrap: anywhere;
}

.event-card-info {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.event-card-info-row,
.event-card-location {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.event-card-location {
  margin-bottom: 1px;
  border-bottom: 1px solid rgba(40, 52, 71, 0.74);
  padding-bottom: 6px;
}

.event-card-info-row time,
.event-card-info-row > span:last-child {
  min-width: 0;
  overflow: hidden;
  color: #d7e0ee;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.34;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card-location span {
  min-width: 0;
  color: #9fb0c8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.event-info-chip {
  min-width: 32px;
  border: 1px solid rgba(91, 140, 255, 0.28);
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.1);
  color: #bcd3ff;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.event-info-chip-period {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.1);
  color: #d7e0ee;
}

.event-info-chip-open {
  border-color: rgba(255, 47, 143, 0.32);
  background: rgba(255, 47, 143, 0.1);
  color: #ffc0dd;
}

.event-info-chip-end {
  border-color: rgba(168, 85, 247, 0.32);
  background: rgba(168, 85, 247, 0.1);
  color: #d8b4fe;
}

.event-info-chip-host {
  border-color: rgba(20, 184, 166, 0.32);
  background: rgba(20, 184, 166, 0.1);
  color: #99f6e4;
}

.event-location-icon {
  width: 13px;
  height: 13px;
  color: #8fb2ff;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.event-card-body p {
  margin: 0;
  color: #b7c2d4;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-body dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.event-card-body dl div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 6px;
  align-items: baseline;
}

.event-card-body dt {
  color: #748199;
  font-size: 11px;
  font-weight: 800;
}

.event-card-body dd {
  margin: 0;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card-date-cell {
  white-space: normal;
}

.event-card-date {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.event-date-line,
.event-time-line {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-time-line {
  color: #9fb0c8;
}

.event-card-detail-button {
  align-self: end;
  justify-self: stretch;
  width: 100%;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-top: 1px solid rgba(40, 52, 71, 0.74);
  border-radius: 0;
  background: transparent;
  color: #8fb2ff;
  padding: 7px 0 0;
  font-size: 12px;
  font-weight: 900;
}

.event-page-card:hover .event-card-detail-button {
  color: #cfe0ff;
}

.event-detail-backbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.event-detail-backbar a,
.event-detail-backbar .event-request-open-button {
  flex: 0 0 auto;
}

.event-detail-backbar a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0b1220;
  color: #dbe7ff;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 900;
}

.event-detail-backbar .event-request-open-button {
  width: auto;
  min-height: 34px;
  padding: 0 13px;
}

.event-detail-backbar a:hover {
  border-color: rgba(91, 140, 255, 0.62);
  color: #ffffff;
}

.event-detail-page-card {
  display: grid;
  grid-template-columns: minmax(280px, 46%) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1522;
  overflow: hidden;
}

.event-detail-page-media {
  display: grid;
  place-items: center;
  min-height: clamp(320px, 54vh, 620px);
  background: #070b13;
}

.event-detail-page-media img {
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: contain;
  display: block;
}

.event-detail-page-card.no-image .event-detail-page-media img {
  width: min(220px, 58%);
  height: auto;
}

.event-detail-page-body {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 22px;
}

.event-detail-page-body h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 26px;
  line-height: 1.22;
}

.event-detail-page-body p {
  margin: 0;
  color: #b7c2d4;
  font-size: 14px;
  line-height: 1.55;
}

.event-detail-page-body dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.event-detail-page-body dl div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
}

.event-detail-page-body dt {
  color: #748199;
  font-size: 12px;
  font-weight: 900;
}

.event-detail-page-body dd {
  margin: 0;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.4;
}

.event-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-detail-actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0b1220;
  color: #dbe7ff;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 900;
}

.event-detail-actions a.primary {
  border-color: rgba(91, 140, 255, 0.7);
  background: #315fb8;
  color: #fff;
}

@media (max-width: 940px) {
  .event-detail-page-card {
    grid-template-columns: 1fr;
  }

  .event-detail-page-media {
    min-height: clamp(260px, 52vh, 520px);
  }
}

.events-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 14px;
}

.events-calendar,
.events-calendar-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
  min-width: 0;
}

.events-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.events-calendar-head > div {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.events-calendar-head h2,
.events-calendar-list h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 18px;
}

.calendar-event-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.calendar-event-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(40, 52, 71, 0.88);
  border-radius: 8px;
  background: #0d1522;
  color: inherit;
  padding: 8px;
}

.calendar-event-row:hover {
  border-color: rgba(91, 140, 255, 0.58);
  background: #111a28;
}

.calendar-event-thumb {
  width: 48px;
  height: 60px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 6px;
  background: #070b13;
}

.calendar-event-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.calendar-event-row.no-image .calendar-event-thumb img {
  object-fit: contain;
  padding: 7px;
}

.calendar-event-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.calendar-event-title {
  overflow: hidden;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event-time,
.calendar-event-place {
  overflow: hidden;
  color: #9aa8ba;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event-place {
  color: #cbd5e1;
}

.events-calendar-head button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #111a28;
  color: #dce5f4;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.events-calendar-head > button {
  width: 34px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.events-calendar-today {
  min-height: 26px !important;
  padding: 0 11px !important;
  color: #f9a8d4 !important;
  font-size: 11px !important;
}

.events-calendar-type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.events-calendar-type-filters button {
  min-height: 30px;
  border-color: rgba(91, 140, 255, 0.26);
  border-radius: 999px;
  background: #101827;
  color: #cbd7ea;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.events-calendar-type-filters button.active,
.events-calendar-type-filters button:hover {
  border-color: rgba(91, 140, 255, 0.8);
  background: rgba(91, 140, 255, 0.18);
  color: #ffffff;
}

.events-calendar-weekdays,
.events-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.events-calendar-weekdays {
  margin-bottom: 6px;
}

.events-calendar-weekdays span {
  color: #7f8aa0;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.events-calendar-day {
  min-width: 0;
  min-height: 96px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: start;
  gap: 5px;
  overflow: hidden;
  border: 1px solid rgba(40, 52, 71, 0.78);
  border-radius: 8px;
  background: #0d1522;
  color: #dbe3ef;
  padding: 8px;
  text-align: left;
}

.events-calendar-day.outside-month {
  border-color: rgba(40, 52, 71, 0.38);
  background: rgba(13, 21, 34, 0.36);
  color: #667085;
}

.calendar-day-number {
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.events-calendar-day.outside-month .calendar-day-number {
  color: #667085;
}

.calendar-event-bars {
  display: grid;
  gap: 3px;
}

.calendar-event-bar {
  height: 6px;
  background: linear-gradient(90deg, #ff2f8f, #5b8cff);
  box-shadow: 0 0 10px rgba(91, 140, 255, 0.18);
}

.calendar-event-bar.single {
  border-radius: 999px;
}

.calendar-event-bar.start {
  border-radius: 999px 0 0 999px;
}

.calendar-event-bar.middle {
  border-radius: 0;
}

.calendar-event-bar.end {
  border-radius: 0 999px 999px 0;
}

.calendar-event-chips {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
}

.calendar-event-chip {
  min-width: 0;
  min-height: 19px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(91, 140, 255, 0.14);
  border-radius: 4px;
  background: #111a28;
  color: #dbe7ff;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event-chip.start,
.calendar-event-chip.middle,
.calendar-event-chip.end {
  background: #162033;
}

.calendar-event-more {
  width: fit-content;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(91, 140, 255, 0.28);
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.14);
  color: #cfe0ff;
  padding: 0 7px;
  font-size: 10px;
  font-weight: 900;
}

.calendar-event-more.mobile-more {
  display: none;
}

.events-calendar-day.active {
  border-color: rgba(91, 140, 255, 0.9);
  background: rgba(91, 140, 255, 0.16);
}

.events-calendar-day.today {
  color: #f9a8d4;
}

.events-calendar-list {
  display: grid;
  align-content: start;
  gap: 12px;
}

.events-calendar-list .event-page-card {
  width: 100%;
  max-width: none;
  box-shadow: none;
}

.events-calendar-list .event-page-card .event-card-link {
  grid-template-columns: 110px minmax(0, 1fr);
  grid-template-rows: none;
  width: 100%;
  min-height: 132px;
}

.events-calendar-list .event-card-media {
  min-height: 132px;
}

.events-calendar-list .event-card-body {
  grid-template-rows: auto auto 1fr auto;
  padding: 12px;
}

.events-calendar-list .event-card-body h2 {
  font-size: 16px;
}

.events-calendar-list .event-card-body p {
  display: none;
}

.events-calendar-list .event-card-detail-button {
  min-height: 22px;
  font-size: 12px;
}

.member-shell,
.profile-shell {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.auth-narrow {
  max-width: 420px;
  margin: 0 auto;
}

.member-heading {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(49, 95, 184, 0.22), rgba(16, 23, 34, 0.68)),
    var(--surface);
  min-width: 0;
  overflow-wrap: anywhere;
}

.eyebrow {
  margin: 0 0 6px;
  color: #8fb2ff;
  font-size: 12px;
  font-weight: 700;
}

.member-heading h1,
.profile-summary h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.member-heading p:last-child {
  max-width: 700px;
  margin: 10px 0 0;
  color: #c7d0df;
  font-size: 14px;
  line-height: 1.6;
}

.member-form,
.account-security-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  min-width: 0;
}

.member-form {
  display: grid;
  gap: 16px;
}

.profile-main-column,
.account-security-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.form-section {
  display: grid;
  gap: 12px;
}

.form-section h2,
.account-security-panel h2 {
  margin: 0;
  font-size: 16px;
  color: #edf2fc;
}

.member-form label,
.account-security-panel label,
.address-field {
  display: grid;
  gap: 7px;
  color: #d5deeb;
  font-size: 13px;
}

.member-form input,
.member-form textarea,
.account-security-panel input,
.address-search-row input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0b111b;
  color: var(--text);
  padding: 9px 11px;
  font: inherit;
}

.member-form input[readonly] {
  color: #dbe3ef;
  background: #0d1420;
}

.member-form textarea {
  resize: vertical;
  line-height: 1.45;
}

.field-label {
  color: #d5deeb;
}

.activity-type-field {
  display: grid;
  gap: 8px;
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.address-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
}

.address-search-row button {
  height: 40px;
  border-radius: 6px;
  white-space: nowrap;
}

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

.check-option {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: var(--surface-soft);
  grid-template-columns: 18px 1fr;
  align-items: center;
}

.check-option.wide {
  grid-template-columns: 18px 1fr;
}

.check-option input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.check-option.locked {
  border-color: rgba(91, 140, 255, 0.45);
  background: rgba(91, 140, 255, 0.12);
}

.check-option input:disabled {
  cursor: not-allowed;
}

.check-option input:disabled + span {
  color: #edf2fc;
}

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

.text-link {
  color: #9db8ff;
  font-size: 13px;
}

.form-status {
  min-height: 18px;
  margin: 0;
  color: #a9c2ff;
  font-size: 13px;
}

.form-status.error {
  color: #fecaca;
}

.profile-summary {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  min-width: 0;
}

.profile-page-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: -8px;
}

.profile-page-actions button {
  min-height: 34px;
  border-radius: 8px;
  background: #111a28;
  color: #dce5f4;
}

.profile-photo-preview {
  position: relative;
  width: 108px;
  height: 108px;
  color: #ffffff;
  font-weight: 700;
}

.profile-photo-display {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #315fb8, #1b2535);
}

.profile-photo-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.default-profile-icon {
  width: 66px;
  height: 66px;
  fill: none;
  stroke: #dce8ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.profile-photo-action {
  position: absolute;
  z-index: 2;
  bottom: -7px;
  width: 26px;
  min-height: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 50%;
  background: #ffffff;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
}

.profile-photo-action.upload {
  left: 10px;
  color: #315fb8;
}

.profile-photo-action.delete {
  right: 10px;
  color: #dc2626;
}

.profile-photo-action svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.public-profile-page,
.profile-edit-page {
  max-width: 1120px;
}

.public-profile-shell,
.profile-edit-shell {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.public-profile-header {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.public-profile-avatar {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(135deg, #315fb8, #1b2535);
}

.public-profile-avatar img,
.public-profile-edit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-profile-avatar .default-profile-icon {
  width: 78px;
  height: 78px;
}

.public-profile-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.public-profile-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.public-profile-title-row h1 {
  margin: 0;
  color: #f8fafc;
  font-size: 26px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.profile-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.profile-role-chip {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(91, 140, 255, 0.36);
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.13);
  color: #dbe7ff;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.profile-role-chip.muted {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.08);
  color: #9aa8ba;
}

.public-profile-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.public-profile-edit-button,
.public-profile-follow-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(91, 140, 255, 0.46);
  border-radius: 8px;
  background: #315fb8;
  color: #ffffff;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.public-profile-follow-button.following,
.public-profile-edit-button {
  border-color: var(--line);
  background: #111a28;
  color: #dce5f4;
}

.public-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #dce5f4;
  font-size: 14px;
}

.public-profile-stats span,
.public-profile-stats button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
}

.public-profile-stats button {
  cursor: pointer;
}

.public-profile-bio {
  margin: 0;
  color: #d6deeb;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.public-profile-bio.empty {
  color: var(--muted);
}

.public-profile-website {
  width: fit-content;
  color: #8fb2ff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.public-profile-posts {
  display: grid;
  gap: 12px;
}

.search-page {
  max-width: 1120px;
}

.search-shell,
.search-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.search-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px 16px;
}

.search-summary strong {
  color: #f8fafc;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.search-summary span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.search-section {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  padding: 14px;
}

.search-section header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(64, 80, 106, 0.72);
  padding-bottom: 10px;
}

.search-section h2 {
  margin: 0;
  color: #edf2fc;
  font-size: 16px;
}

.search-section header span,
.search-empty {
  color: var(--muted);
  font-size: 13px;
}

.search-empty {
  margin: 0;
}

.search-list {
  display: grid;
  gap: 8px;
}

.search-person-row,
.search-x-row,
.search-event-row {
  min-width: 0;
  display: grid;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  padding: 8px;
}

.search-person-row,
.search-event-row {
  grid-template-columns: 42px minmax(0, 1fr);
}

.search-x-row {
  grid-template-columns: 120px minmax(0, 1fr) auto;
}

.search-person-row:hover,
.search-x-row:hover,
.search-event-row:hover {
  background: #141c29;
}

.search-person-row .author-avatar {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.search-person-row strong,
.search-x-row strong,
.search-event-row strong {
  display: block;
  color: #f8fafc;
  font-size: 14px;
}

.search-person-row small,
.search-x-row small,
.search-event-row small,
.search-event-row em,
.search-x-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.search-event-thumb {
  width: 42px;
  height: 56px;
  overflow: hidden;
  border: 1px solid rgba(143, 178, 255, 0.24);
  border-radius: 6px;
  background: #0b111b;
}

.search-event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--card-width)), var(--card-width)));
  justify-content: center;
  gap: var(--feed-gutter);
}

.search-feed-grid .feed-card {
  width: 100%;
  margin: 0;
}

.public-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-width)), var(--card-width)));
  justify-content: center;
  gap: var(--feed-gutter);
  column-count: auto;
  column-width: auto;
}

.public-profile-grid .feed-card {
  width: 100%;
  margin: 0;
}

.feed-author-row.clickable {
  cursor: pointer;
}

.feed-author-row.clickable:hover .feed-author-name,
.post-detail-author-link:hover {
  color: #8fb2ff;
}

.post-detail-author-link {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 900;
}

.public-follow-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 18px;
}

.public-follow-modal[hidden] {
  display: none;
}

.public-follow-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.62);
}

.public-follow-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(620px, calc(100dvh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101722;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.public-follow-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
}

.public-follow-panel h2 {
  margin: 0;
  font-size: 16px;
}

.public-follow-panel header button {
  min-height: 30px;
  border-radius: 8px;
}

.public-follow-list {
  display: grid;
  align-content: start;
  gap: 2px;
  overflow-y: auto;
  padding: 8px;
}

.public-follow-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 8px;
  color: inherit;
  padding: 8px;
}

.public-follow-row:hover {
  background: #141c29;
}

.public-follow-row strong,
.public-follow-row small {
  display: block;
}

.public-follow-row strong {
  color: #f8fafc;
  font-size: 14px;
}

.public-follow-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.profile-edit-head {
  display: grid;
  gap: 6px;
  align-items: start;
}

.profile-edit-back-title {
  margin: 0;
  color: #8fb2ff;
  font-size: 14px;
  line-height: 1.25;
}

.profile-edit-back-title a {
  color: inherit;
  text-decoration: none;
}

.profile-edit-back-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-edit-head h1 {
  margin: 0;
  color: #f8fafc;
  font-size: 26px;
}

.profile-edit-form {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.profile-edit-photo-stack {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.public-profile-edit-photo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
}

.profile-edit-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-edit-photo-actions button {
  min-height: 34px;
  border-radius: 8px;
}

.readiness-badge {
  min-width: 150px;
  border: 1px solid rgba(248, 113, 113, 0.42);
  border-radius: 999px;
  padding: 8px 12px;
  text-align: center;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.22);
  font-size: 13px;
  font-weight: 700;
}

.profile-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.profile-crop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.profile-crop-dialog {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101722;
  padding: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.profile-crop-dialog h2,
.profile-crop-dialog p {
  margin: 0;
  text-align: center;
}

.profile-crop-dialog h2 {
  font-size: 18px;
}

.profile-crop-dialog > p {
  color: #c7d0df;
  font-size: 12px;
  line-height: 1.5;
}

.profile-crop-canvas-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  justify-self: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b111b;
  touch-action: none;
}

.profile-crop-canvas-wrap canvas {
  width: 260px;
  height: 260px;
  display: block;
  cursor: grab;
}

.profile-crop-canvas-wrap canvas:active {
  cursor: grabbing;
}

.profile-crop-canvas-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0 126px, rgba(0, 0, 0, 0.48) 128px);
}

.profile-crop-canvas-wrap::after {
  content: "";
  position: absolute;
  inset: 2px;
  pointer-events: none;
  border: 3px solid #ffffff;
  border-radius: 50%;
}

.profile-crop-zoom {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: #d5deeb;
  font-size: 13px;
}

.profile-crop-zoom input {
  width: 100%;
  accent-color: var(--accent);
}

.profile-crop-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.profile-crop-actions button {
  border-radius: 8px;
}

.post-upload-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 18px;
  overscroll-behavior: contain;
  overscroll-behavior-x: none;
}

.post-upload-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 14, 0.82);
}

.post-upload-dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  min-height: 640px;
  max-height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border: 1px solid rgba(0, 148, 255, 0.34);
  border-radius: 10px;
  background:
    linear-gradient(180deg, #12172a 0%, #0b101d 48%, #101722 100%);
  overflow: hidden;
  overscroll-behavior: contain;
  overscroll-behavior-x: none;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(138, 53, 234, 0.12);
}

.post-upload-head {
  min-height: 62px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(91, 140, 255, 0.28);
  background: linear-gradient(90deg, rgba(255, 47, 143, 0.11), rgba(0, 148, 255, 0.1));
  padding: 10px 14px;
}

.post-upload-head h2,
.post-upload-head p {
  margin: 0;
  text-align: center;
}

.post-upload-head h2 {
  font-size: 17px;
  color: #f8fafc;
}

.post-upload-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.post-upload-head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.post-upload-head button {
  border-radius: 8px;
}

.post-upload-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
}

.post-upload-steps span {
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: rgba(64, 80, 106, 0.76);
}

.post-upload-steps span.active {
  background: #0094ff;
}

.post-upload-step {
  min-height: 0;
  padding: 18px;
  overflow: auto;
}

.post-upload-dropzone {
  width: 100%;
  min-height: 280px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px dashed rgba(0, 148, 255, 0.46);
  border-radius: 8px;
  background: #0c1322;
  color: #e7f0ff;
  text-align: center;
}

.post-upload-dropzone strong,
.post-upload-dropzone span {
  display: block;
}

.post-upload-dropzone strong {
  font-size: 18px;
}

.post-upload-dropzone span {
  color: var(--muted);
  font-size: 13px;
}

.post-upload-dropzone.drag-over {
  border-color: rgba(255, 47, 143, 0.78);
  background: rgba(0, 148, 255, 0.12);
}

.post-upload-selected-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.post-upload-selected-head strong {
  color: #cfe0ff;
}

.post-upload-selected-head > div {
  display: grid;
  gap: 2px;
}

.post-upload-selected-head span {
  color: #8fb2ff;
  font-size: 12px;
}

.post-upload-selected-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.post-upload-selected-list.reordering {
  touch-action: none;
  user-select: none;
}

.post-upload-thumb-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  align-items: start;
  gap: 14px;
  margin-top: 14px;
}

.post-upload-selected-item,
.post-upload-thumb-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(64, 80, 106, 0.82);
  border-radius: 8px;
  background: #0c1322;
  aspect-ratio: 1;
}

.post-upload-selected-item {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

.post-upload-selected-item:active {
  cursor: grabbing;
}

.post-upload-selected-item.dragging {
  opacity: 0.58;
}

.post-upload-selected-item.drag-over {
  border-color: rgba(255, 47, 143, 0.78);
  box-shadow: 0 0 0 2px rgba(255, 47, 143, 0.18);
}

.post-upload-selected-item img,
.post-upload-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.post-upload-remove,
.post-upload-cover-badge {
  position: absolute;
  right: 6px;
  top: 6px;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  font-size: 12px;
  touch-action: manipulation;
}

.post-upload-cover-badge {
  left: 6px;
  right: auto;
  display: inline-grid;
  place-items: center;
}

.post-upload-order-number {
  position: absolute;
  left: 6px;
  top: 6px;
  min-width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.post-upload-crop-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 380px;
  gap: 18px;
}

.post-thumbnail-editor {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 14px;
}

.post-thumbnail-canvas-wrap {
  width: min(360px, 100%);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b111b;
  touch-action: none;
}

.post-thumbnail-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.post-thumbnail-canvas-wrap canvas:active {
  cursor: grabbing;
}

.post-thumbnail-zoom {
  width: min(360px, 100%);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: #d5deeb;
  font-size: 13px;
}

.post-thumbnail-zoom input {
  width: 100%;
  accent-color: var(--accent);
}

.post-upload-side {
  min-width: 0;
  border-left: 1px solid rgba(91, 140, 255, 0.24);
  padding-left: 20px;
}

.post-upload-side h3,
.post-upload-side p {
  margin: 0;
}

.post-upload-side h3 {
  font-size: 15px;
  color: #f8fafc;
}

.post-upload-side p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.post-upload-thumb-item {
  width: 100%;
  height: auto;
  min-height: 0;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  padding: 0;
  line-height: 0;
}

.post-upload-thumb-item.active {
  border-color: rgba(0, 148, 255, 0.9);
  box-shadow:
    0 0 0 2px rgba(0, 148, 255, 0.22),
    0 12px 28px rgba(0, 0, 0, 0.24);
}

.post-upload-compose-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
}

.post-upload-card-preview {
  align-self: start;
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.post-upload-card-preview .feed-card {
  margin: 0;
}

.post-upload-textarea-label {
  display: grid;
  gap: 4px;
  align-content: start;
  color: #d5deeb;
  font-size: 13px;
  line-height: 1.2;
}

.post-upload-editor {
  position: relative;
  display: block;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b111b;
  overflow: hidden;
}

.post-upload-text-highlight,
.post-upload-textarea-label textarea {
  min-height: 280px;
  padding: 12px;
  font: inherit;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.post-upload-text-highlight {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--text);
  pointer-events: none;
}

.post-upload-textarea-label textarea {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 280px;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: var(--text);
  resize: vertical;
}

.post-upload-textarea-label textarea::placeholder {
  color: #7f8ca3;
}

.post-upload-textarea-label textarea:focus {
  outline: 0;
}

.media-frame {
  position: relative;
}

.media-count-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 32px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0 9px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.post-mention {
  color: #cfe0ff;
  font-weight: 700;
}

.post-hashtag {
  color: #5b8cff;
  font-weight: 700;
}

.post-url {
  color: #8fb2ff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.post-url:hover {
  color: #ffffff;
}

.readiness-badge.ready {
  border-color: rgba(74, 222, 128, 0.42);
  color: #bbf7d0;
  background: rgba(20, 83, 45, 0.28);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-width: 0;
}

body[data-page="mypage"] .member-page {
  max-width: 840px;
}

.account-security-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-security-head h2,
.account-security-head p {
  margin: 0;
}

.account-security-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.account-security-head button {
  flex: 0 0 auto;
  min-height: 36px;
  border-radius: 6px;
  white-space: nowrap;
}

.security-meta {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(91, 140, 255, 0.18);
  border-radius: 6px;
  background: #0b111b;
  padding: 10px;
}

.security-meta span {
  color: var(--muted);
  font-size: 12px;
}

.security-meta strong {
  color: #edf2fc;
  font-size: 13px;
}

.password-change-panel {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.password-change-panel[hidden] {
  display: none;
}

.password-change-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.purchase-agent-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 44px;
}

.purchase-agent-shell {
  display: grid;
  gap: 16px;
}

.purchase-agent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(49, 95, 184, 0.2), rgba(16, 23, 34, 0.76)),
    var(--surface);
  padding: 20px;
}

.purchase-agent-head h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.purchase-agent-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.purchase-summary-item,
.purchase-agent-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  min-width: 0;
}

.purchase-summary-item {
  padding: 16px;
}

.purchase-summary-item.ready {
  border-color: rgba(74, 222, 128, 0.34);
  background:
    linear-gradient(135deg, rgba(20, 83, 45, 0.28), rgba(16, 23, 34, 0.92)),
    var(--surface);
}

.summary-label {
  display: block;
  margin-bottom: 8px;
  color: #8fb2ff;
  font-size: 12px;
  font-weight: 700;
}

.purchase-summary-item strong {
  display: block;
  color: #f8fafc;
  font-size: 24px;
  line-height: 1.2;
}

.purchase-summary-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.purchase-agent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 16px;
}

.purchase-agent-card {
  padding: 18px;
}

.purchase-agent-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.purchase-agent-card-head h2,
.purchase-agent-guide h2 {
  margin: 0;
  color: #edf2fc;
  font-size: 17px;
}

.purchase-agent-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
  align-items: end;
}

.purchase-agent-form label {
  display: grid;
  gap: 7px;
  color: #d5deeb;
  font-size: 13px;
}

.purchase-agent-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0b111b;
  color: var(--text);
  padding: 9px 11px;
  font: inherit;
}

.purchase-agent-form button {
  height: 42px;
  border-radius: 6px;
}

.purchase-agent-missing {
  margin-top: 12px;
}

.missing-field-box,
.purchase-empty {
  border: 1px dashed rgba(143, 178, 255, 0.34);
  border-radius: 8px;
  background: rgba(11, 17, 27, 0.62);
  padding: 12px;
}

.missing-field-box strong,
.purchase-empty strong {
  display: block;
  margin-bottom: 8px;
  color: #e6edf6;
  font-size: 13px;
}

.missing-field-box div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.missing-field-box span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(248, 113, 113, 0.32);
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.18);
  color: #fecaca;
  padding: 4px 9px;
  font-size: 12px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.purchase-empty.compact {
  display: grid;
  gap: 8px;
}

.purchase-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.purchase-agent-guide {
  display: grid;
  gap: 10px;
}

.purchase-agent-guide details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px 12px;
}

.purchase-agent-guide summary {
  color: #e8eef8;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.purchase-agent-guide p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.purchase-order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 14px;
}

.purchase-order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.purchase-order-url {
  display: inline-flex;
  max-width: 100%;
  color: #f8fafc;
  font-weight: 700;
}

.purchase-order-top p {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
}

.purchase-status-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(91, 140, 255, 0.48);
  border-radius: 999px;
  background: rgba(49, 95, 184, 0.24);
  color: #cfe0ff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.purchase-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  color: #aeb9cc;
  font-size: 12px;
}

.purchase-status-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
}

.purchase-status-track span {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0b111b;
  color: #8d99ad;
  padding: 6px 3px;
  text-align: center;
  font-size: 11px;
  white-space: nowrap;
}

.purchase-status-track span.done {
  border-color: rgba(74, 222, 128, 0.35);
  color: #bbf7d0;
  background: rgba(20, 83, 45, 0.2);
}

.purchase-status-track span.active {
  border-color: rgba(91, 140, 255, 0.65);
  color: #ffffff;
  background: #315fb8;
}

.muted {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  max-width: var(--layout-max);
  margin: 18px auto 26px;
  padding: 0 16px;
  font-size: 12px;
  color: var(--muted);
}

.footer .inner {
  display: flex;
  gap: 14px;
  justify-content: center;
}

@media (min-width: 1900px) {
  .layout {
    grid-template-columns: minmax(280px, 16vw) minmax(var(--feed-row-width), 1fr) minmax(320px, 18vw);
  }
}

@media (max-width: 1700px) {
  .layout {
    grid-template-columns: clamp(180px, 13vw, 220px) minmax(0, 1fr) clamp(190px, 15vw, 250px);
  }

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

  .events-main-content {
    min-width: 0;
  }

  .feed-grid {
    column-count: 3;
  }

  .events-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1480px) {
  .layout {
    grid-template-columns: clamp(150px, 13vw, 200px) minmax(0, 1fr) clamp(160px, 15vw, 220px);
  }

  .feed-grid {
    column-count: 3;
  }

  .events-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .layout {
    grid-template-columns: clamp(108px, 12vw, 150px) minmax(0, 1fr) clamp(118px, 13vw, 160px);
    gap: clamp(8px, 1.2vw, 12px);
    padding: 0 10px;
  }

  .main-content {
    width: 100%;
    min-width: 0;
    margin: 0 auto;
  }

  .feed-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--feed-gutter);
    column-count: auto;
    column-width: auto;
  }

  .feed-card {
    width: 100%;
    max-width: var(--card-width);
    justify-self: center;
    margin-bottom: 0;
  }

  .explore-coser-strip {
    overflow-x: auto;
  }

  .explore-coser-strip-row {
    width: max-content;
    justify-content: start;
  }

  .events-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .events-list-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .events-list-summary {
    justify-self: start;
  }

  .event-page-card {
    width: 100%;
    max-width: var(--event-card-width);
    justify-self: center;
  }

  .panel-block h2 {
    font-size: clamp(12px, 1.3vw, 14px);
  }

  .tag {
    min-height: 25px;
    padding: 4px 7px;
    font-size: clamp(10px, 1.1vw, 12px);
  }

  .upcoming-event-info time,
  .upcoming-event-info span {
    font-size: clamp(10px, 1.1vw, 12px);
  }

  .banner-item a {
    font-size: 11px;
  }
}

@media (max-width: 1080px) {
  .top-nav-search {
    width: 220px;
  }
  .top-nav-menu a {
    font-size: 14px;
    padding: 9px 10px;
  }

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

@media (max-width: 940px) {
  .layout-wrap {
    padding-top: 8px;
  }
  .layout {
    grid-template-columns: clamp(82px, 11vw, 106px) minmax(0, 1fr) clamp(90px, 12vw, 116px);
    gap: 8px;
    padding: 0 10px;
  }
  .feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .events-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .top-nav {
    height: auto;
    padding: 8px 0;
  }
  .top-nav > .inner {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .top-nav-menu {
    order: 3;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 6px;
  }
  .top-nav-search {
    flex: 1;
    width: 100%;
    order: 2;
  }
  .top-nav-actions {
    order: 1;
    flex: 1 1 230px;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
  }

  .top-nav-actions > * {
    flex: 0 0 auto;
  }
}

@media (max-width: 760px) {
  .main-content {
    width: 100%;
  }

  .feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .events-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .events-list-controls {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .events-list-filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .events-list-filter-chips::-webkit-scrollbar {
    display: none;
  }

  .events-list-filter-chips button {
    flex: 0 0 auto;
  }

  .events-list-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .events-list-section-head button {
    min-height: 30px;
  }

  .events-view-control,
  .event-request-head {
    align-items: stretch;
    flex-direction: column;
  }

  .event-request-open-button,
  .event-request-head button {
    width: 100%;
  }

  .event-request-form,
  .event-request-schedule > div,
  .event-request-row {
    grid-template-columns: 1fr;
  }

  .event-request-pagination {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .event-request-pagination > span,
  .event-request-page-buttons {
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 10px;
  }

  .main-content {
    order: 1;
  }

  .left-side,
  .right-side {
    display: none;
  }

  .main-content {
    width: min(100%, calc((var(--card-width) * 2) + var(--feed-gutter)));
    justify-self: center;
  }

  .hero-card {
    height: 120px;
  }

  .hero-slide {
    padding: 12px;
  }

  .hero-label {
    --hero-label-pad-y: 6px;
    --hero-label-pad-x: 8px;
    --hero-label-size: 9px;
    --hero-title-size: 15px;
    --hero-title-line-height: 1.12;
    --hero-subtitle-size: 10px;
    --hero-subtitle-line-height: 1.2;
    max-width: calc(100% - 92px);
    margin-left: 38px;
  }

  .hero-label span {
    margin-bottom: 2px;
  }

  .hero-label h2 {
    margin-bottom: 1px;
  }

  .hero-carousel-arrow {
    width: 30px;
    height: 40px;
    min-height: 40px;
    font-size: 30px;
  }

  .hero-carousel-arrow.prev {
    left: 7px;
  }

  .hero-carousel-arrow.next {
    right: 7px;
  }

  .hero-carousel-dots {
    bottom: 7px;
  }

  .events-main-content {
    width: min(100%, calc((var(--event-card-width) * 2) + var(--event-card-gutter)));
  }

  .events-list {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-card-info {
    gap: 4px;
  }

  .event-info-chip {
    min-width: 29px;
    padding: 2px 5px;
    font-size: 9px;
  }

  .event-card-info-row,
  .event-card-location {
    gap: 5px;
  }

  .event-card-info-row time,
  .event-card-info-row > span:last-child {
    font-size: 11px;
  }

}

@media (max-width: 380px) {
  .hero-slide {
    padding: 10px;
  }

  .hero-label {
    --hero-label-pad-y: 5px;
    --hero-label-pad-x: 7px;
    --hero-label-size: 8px;
    --hero-title-size: 14px;
    --hero-title-line-height: 1.1;
    --hero-subtitle-size: 9px;
    --hero-subtitle-line-height: 1.15;
    max-width: calc(100% - 84px);
    margin-left: 34px;
  }

  .hero-label span {
    margin-bottom: 1px;
  }
}

@media (max-width: 1180px), (max-height: 820px) {
  .post-detail-page {
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }

  .post-detail-shell {
    --post-detail-side-width: clamp(320px, 34vw, 360px);
    width: min(calc(var(--post-detail-media-width) + var(--post-detail-side-width)), calc(100vw - 16px));
    height: calc(100vh - 16px);
    height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
  }

  .post-detail-article {
    grid-template-columns: minmax(0, var(--post-detail-media-width)) var(--post-detail-side-width);
  }

  .post-detail-head {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px 12px;
  }

  .post-detail-avatar {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
}

@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
  .post-detail-page {
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }

  .post-detail-shell {
    --post-detail-side-width: clamp(320px, 34vw, 360px);
    width: min(calc(var(--post-detail-media-width) + var(--post-detail-side-width)), calc(100vw - 16px));
    height: calc(100vh - 16px);
    height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
  }
}

@media (max-width: 940px) {
  .post-detail-page {
    align-items: start;
    justify-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }

  .post-detail-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .post-detail-shell {
    width: 100%;
    height: calc(100vh - 20px);
    height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px);
    min-height: 0;
    margin: auto 0;
  }

  .post-detail-article {
    grid-template-columns: 1fr;
    grid-template-rows: var(--post-detail-stacked-media-height, clamp(280px, 58dvh, 560px)) minmax(0, 1fr);
  }

  .post-detail-side {
    min-height: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .post-detail-head {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    padding: 10px 12px;
  }

  .post-detail-avatar {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .post-detail-main-media {
    min-height: 0;
  }

  .post-detail-main-media > img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .post-detail-image-nav {
    width: 36px;
    height: 54px;
    font-size: 28px;
  }

  .post-detail-caption,
  .post-detail-comment {
    padding: 11px 12px;
  }

  .post-detail-meta,
  .post-detail-comment-form {
    padding-right: 12px;
    padding-left: 12px;
  }

  .post-detail-comment-form {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 940px) and (max-height: 720px) {
  .post-detail-page {
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }

  .post-detail-shell {
    width: 100%;
    height: calc(100vh - 16px);
    height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
  }

  .post-detail-article {
    grid-template-rows: var(--post-detail-stacked-media-height, clamp(220px, 54dvh, 430px)) minmax(0, 1fr);
  }

  .post-detail-head {
    padding: 8px 10px;
  }

  .post-detail-caption,
  .post-detail-comment {
    padding: 9px 10px;
  }

  .post-detail-meta {
    padding: 8px 10px;
  }

  .post-detail-comment-form {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }

  .post-detail-thumbs-overlay {
    bottom: 8px;
    gap: 6px;
  }

  .post-detail-thumb {
    flex-basis: 38px;
    width: 38px;
    height: 50px;
  }

  .post-detail-main-media.with-thumbs .post-detail-image-count {
    bottom: 66px;
  }
}

@media (max-width: 520px) {
  .top-nav > .inner {
    gap: 8px;
  }

  .top-brand {
    order: 0;
    width: 112px;
    height: 28px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
  }

  .top-nav-actions {
    order: 1;
    flex: 1 1 calc(100% - 120px);
    max-width: calc(100% - 120px);
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
  }

  .top-nav-search {
    order: 2;
    display: none;
  }

  .top-nav-menu {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
    padding-bottom: 4px;
    overflow-x: hidden;
    scrollbar-width: none;
  }

  .top-nav-menu::-webkit-scrollbar {
    display: none;
  }

  .top-nav-menu a {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 7px 2px 8px;
    font-size: clamp(11px, 3.25vw, 12px);
    text-align: center;
    white-space: nowrap;
  }

  .top-nav-menu a::after {
    right: 8px;
    bottom: 2px;
    left: 8px;
  }

  .top-nav-actions button,
  .top-nav-actions .action-pill {
    height: 30px;
    min-height: 30px;
    padding: 0 7px;
    font-size: 11px;
    white-space: nowrap;
  }

  #nav-notifications,
  #nav-rewards {
    height: 30px;
    min-height: 30px;
    padding: 0 7px;
    font-size: 11px;
  }

  .top-nav-actions .avatar {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    flex: 0 0 30px;
  }

  .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 9px;
  }

  .notification-panel {
    top: 58px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100dvh - 70px);
  }

  .layout {
    width: 100vw;
    max-width: 100vw;
  }

  .main-content {
    width: 100%;
    max-width: 100%;
  }

  .feed-grid {
    width: 100%;
    margin: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--feed-gutter);
  }

  .feed-card {
    width: 100%;
    max-width: none;
  }

  .feed-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-section-grid .feed-card {
    max-width: none;
  }

  .events-list {
    width: 100%;
    margin: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .feed-author-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas:
      "avatar name"
      "avatar time";
    column-gap: 7px;
    row-gap: 1px;
    align-items: center;
    font-size: 13px;
  }

  .feed-author-row .author-avatar {
    grid-area: avatar;
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .feed-author-name {
    grid-area: name;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
  }

  .feed-author-row time {
    grid-area: time;
    font-size: 12px;
    line-height: 1.2;
  }

  .feed-author-row .author-avatar .default-profile-icon {
    width: 18px;
    height: 18px;
    margin: 4px;
  }

  .post-detail-thumbs-overlay {
    display: none;
  }

  .post-detail-main-media.with-thumbs .post-detail-image-count {
    bottom: 14px;
  }
}

@media (max-width: 760px) {
  .member-page,
  .notifications-page,
  .events-page {
    padding-top: 18px;
  }

  .events-page,
  .events-layout,
  .events-main-content,
  .events-shell,
  .events-content,
  .events-calendar-layout,
  .events-calendar,
  .events-calendar-weekdays,
  .events-calendar-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .events-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .events-main-content {
    justify-self: stretch;
  }

  .events-calendar-layout {
    justify-items: start;
  }

  .events-calendar,
  .events-calendar-list {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }

  .option-grid,
  .profile-grid,
  .profile-summary,
  .password-change-grid,
  .purchase-agent-summary,
  .purchase-agent-grid {
    grid-template-columns: 1fr;
  }

  .public-profile-header {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .public-profile-avatar {
    width: 72px;
    height: 72px;
  }

  .public-profile-avatar .default-profile-icon {
    width: 46px;
    height: 46px;
  }

  .public-profile-title-row {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .public-profile-title-row h1 {
    font-size: 20px;
  }

  .public-profile-actions,
  .public-profile-edit-button,
  .public-profile-follow-button {
    width: 100%;
  }

  .public-profile-stats {
    gap: 10px;
    font-size: 13px;
  }

  .public-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-summary,
  .search-section header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .search-feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-feed-grid .feed-card {
    max-width: none;
  }

  .profile-edit-head,
  .profile-edit-photo-stack {
    grid-template-columns: 1fr;
  }

  .account-security-head {
    align-items: stretch;
    flex-direction: column;
  }

  .notifications-page-head,
  .events-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .event-page-card .event-card-link,
  .events-calendar-layout,
  .events-calendar-list .event-page-card .event-card-link {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    min-height: 0;
  }

  .event-page-card.landscape .event-card-media,
  .event-card-media {
    min-height: 0;
    aspect-ratio: var(--media-ratio);
  }

  .event-page-card.portrait .event-card-media,
  .event-page-card.no-image .event-card-media {
    aspect-ratio: 3 / 4;
    max-height: 240px;
  }

  .events-calendar-day {
    min-height: 74px;
    padding: 6px;
    gap: 4px;
  }

  .events-calendar,
  .events-calendar-list {
    padding: 10px 8px;
  }

  .events-calendar-weekdays,
  .events-calendar-grid {
    gap: 4px;
  }

  .calendar-day-number {
    font-size: 12px;
  }

  .calendar-event-bars {
    gap: 2px;
  }

  .calendar-event-bar {
    height: 5px;
  }

  .calendar-event-bar:nth-child(n + 2),
  .calendar-event-chip:nth-child(n + 2),
  .calendar-event-more.desktop-more {
    display: none;
  }

  .calendar-event-chip {
    min-height: 17px;
    padding: 2px 4px;
    font-size: 9px;
  }

  .calendar-event-more.mobile-more {
    display: inline-flex;
  }

  .calendar-event-list {
    margin-top: 8px;
  }

  .purchase-agent-head,
  .purchase-agent-card-head,
  .purchase-order-top {
    align-items: stretch;
    flex-direction: column;
  }

  .address-search-row,
  .purchase-agent-form,
  .purchase-status-track {
    grid-template-columns: 1fr;
  }

  html.post-mobile-comments-open,
  body.post-mobile-comments-open {
    overflow: hidden;
  }

  .post-detail-page {
    position: fixed;
    inset: 0;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    background: #050812;
    padding: 0;
  }

  .post-detail-backdrop {
    display: none;
  }

  .post-detail-close {
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    z-index: 170;
    width: 36px;
    height: 36px;
  }

  .post-detail-shell {
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 100dvh;
    margin: 0;
  }

  .post-detail-content {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .post-detail-article {
    display: block;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .post-detail-media {
    display: block;
    min-height: 0;
  }

  .post-detail-main-media {
    height: min(66dvh, 560px);
    min-height: 320px;
    border-bottom: 1px solid var(--line);
  }

  .post-detail-main-media > img {
    object-fit: contain;
  }

  .post-detail-thumbs-overlay {
    display: none;
  }

  .post-detail-main-media.with-thumbs .post-detail-image-count {
    bottom: 14px;
  }

  .post-detail-side {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
    border-top: 0;
    border-left: 0;
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .post-detail-head {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    border-top: 1px solid var(--line);
    padding: 12px;
  }

  .post-detail-scroll {
    display: block;
    max-height: none;
    overflow: visible;
  }

  .post-detail-caption {
    padding: 12px;
  }

  .post-detail-caption p {
    font-size: 14px;
    line-height: 1.48;
  }

  .post-mobile-caption-more {
    width: fit-content;
    height: auto;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #8fb2ff;
    padding: 2px 0 0;
    font-size: 13px;
    font-weight: 800;
  }

  .post-mobile-caption-more:hover {
    color: #ffffff;
    filter: none;
  }

  .post-mobile-comment-preview {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--line);
    background: #0b111b;
    padding: 12px;
  }

  .post-mobile-comment-preview-head strong {
    color: #f8fafc;
    font-size: 13px;
    line-height: 1.3;
  }

  .post-mobile-comment-preview-list {
    display: grid;
    gap: 9px;
  }

  .post-mobile-comment-preview-row {
    width: 100%;
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #d6deeb;
    padding: 0;
    text-align: left;
  }

  .post-mobile-comment-preview-row:hover {
    filter: none;
  }

  .post-mobile-comment-preview-avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .post-mobile-comment-preview-row strong {
    display: inline;
    margin-right: 5px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.48;
  }

  .post-mobile-comment-preview-copy {
    display: -webkit-box;
    overflow: hidden;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    word-break: break-word;
  }

  .post-mobile-comment-preview-text {
    color: #cbd5e1;
  }

  .post-mobile-comment-preview-empty {
    margin: 0;
    color: #9aa7bb;
    font-size: 13px;
  }

  .post-mobile-comment-open {
    justify-self: start;
    width: fit-content;
    height: auto;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #8fb2ff;
    padding: 0;
    font-size: 13px;
    font-weight: 800;
  }

  .post-mobile-comment-open:hover {
    color: #ffffff;
    filter: none;
  }

  .post-detail-comments,
  .post-detail-comment-form {
    display: none;
  }

  .post-detail-meta {
    border-top: 1px solid var(--line);
    padding: 10px 12px;
  }

  .post-detail-action-row {
    margin-bottom: 5px;
  }

  .post-mobile-comments-open .post-mobile-comments-backdrop {
    position: fixed;
    inset: 0;
    z-index: 175;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: rgba(2, 6, 14, 0.62);
    padding: 0;
  }

  .post-mobile-comments-open .post-mobile-comments-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 18dvh;
    z-index: 181;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    border-bottom: 1px solid var(--line);
    border-radius: 14px 14px 0 0;
    background: #0b111b;
    padding: 0 14px;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.42);
  }

  .post-mobile-comments-header strong {
    color: #f8fafc;
    font-size: 15px;
  }

  .post-mobile-comments-header button {
    width: auto;
    height: 34px;
    min-height: 34px;
    border: 0;
    background: transparent;
    color: #8fb2ff;
    padding: 0;
    font-size: 13px;
    font-weight: 800;
  }

  .post-mobile-comments-open .post-detail-comments {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(18dvh + 48px);
    bottom: calc(58px + env(safe-area-inset-bottom));
    z-index: 181;
    display: grid;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #0b111b;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(91, 140, 255, 0.34) transparent;
    -webkit-overflow-scrolling: touch;
  }

  .post-mobile-comments-open .post-detail-comments::-webkit-scrollbar {
    width: 8px;
  }

  .post-mobile-comments-open .post-detail-comments::-webkit-scrollbar-track {
    background: transparent;
  }

  .post-mobile-comments-open .post-detail-comments::-webkit-scrollbar-thumb {
    border: 2px solid #0b111b;
    border-radius: 999px;
    background: rgba(91, 140, 255, 0.3);
  }

  .post-mobile-comments-open .post-detail-comment-form {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 182;
    display: grid;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  .post-mobile-comments-open .post-detail-comment-more {
    opacity: 1;
  }

  .post-mobile-comments-open .post-detail-comment-action-menu {
    z-index: 190;
  }

  .post-mobile-comments-open .post-detail-dialog,
  .post-mobile-comments-open .post-detail-report-dialog {
    z-index: 195;
  }

  .post-mobile-comments-open .post-detail-dialog {
    place-items: center;
    padding: 20px;
  }

  .post-mobile-comments-open .post-detail-dialog-panel {
    width: min(340px, calc(100vw - 40px));
  }

  .post-upload-modal {
    padding: 0;
  }

  .post-upload-dialog {
    width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .post-upload-head {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .post-upload-head h2 {
    font-size: 15px;
  }

  .post-upload-head-actions {
    gap: 6px;
  }

  .post-upload-head button {
    height: 32px;
    padding: 0 9px;
    font-size: 12px;
  }

  .post-upload-crop-grid,
  .post-upload-compose-grid {
    grid-template-columns: 1fr;
  }

  .post-upload-side {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 16px 0 0;
  }

  .post-upload-selected-list {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  }

  .post-upload-thumb-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .purchase-status-track span {
    text-align: left;
    padding: 7px 10px;
  }

  .readiness-badge {
    width: fit-content;
  }
}
