:root {
  --ink: #14121b;
  --muted: #5a5764;
  --accent: #0b6b3a;
  --accent-light: #b4f0d0;
  --panel: #ffffff;
  --shadow: 0 30px 60px rgba(12, 16, 28, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  color: var(--ink);
  background: #f4f1ea;
}

.page-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, #ffe6cc, transparent 50%),
    radial-gradient(circle at 30% 20%, #d1f5ff, transparent 40%),
    linear-gradient(160deg, #faf7f2 0%, #f2f7f9 60%, #fef9f3 100%);
  z-index: -1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 8vw;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 241, 234, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.brand-mark {
  background: var(--ink);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 16px;
}

.brand-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.brand-sub {
  color: var(--muted);
  font-size: 14px;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 600;
}

.nav-links a,
.link-button {
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: none;
  font: inherit;
  cursor: pointer;
}

.inline-form {
  margin: 0;
}

.page {
  padding: 0 8vw 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
  margin-top: 20px;
}

.hero.hero-single {
  grid-template-columns: minmax(0, 1fr);
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  margin: 12px 0;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.primary,
.ghost {
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

.ghost {
  border: 1px solid rgba(20, 18, 27, 0.2);
  color: var(--ink);
}

.map-card {
  background: var(--panel);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: none;
}

.map-wide {
  margin: 32px 0 12px;
}

.map-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.map {
  height: clamp(320px, 42vw, 520px);
  border-radius: 18px;
  overflow: hidden;
}

.map-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel h2,
.panel h1 {
  font-family: "Space Grotesk", sans-serif;
  margin-top: 0;
}

.chip-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-light);
  font-size: 14px;
  font-weight: 600;
}

.filter-chip {
  position: relative;
  border: 2px solid transparent;
  background: #d9f5e7;
  color: #0b4427;
  cursor: pointer;
  font: inherit;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, color 120ms ease,
    border-color 120ms ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(8, 38, 24, 0.16);
}

.filter-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 107, 58, 0.28);
}

.filter-chip.is-active {
  background: #0b6b3a;
  color: #fff;
  border-color: #064827;
  box-shadow: 0 0 0 3px rgba(11, 107, 58, 0.3), 0 10px 18px rgba(8, 38, 24, 0.28);
  transform: translateY(-1px);
  font-weight: 700;
}

.filter-chip.is-active::before {
  content: "✓ ";
  font-weight: 800;
}

.chip.muted {
  background: #eee;
  color: var(--muted);
}

.explore-shell {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.explore-panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.explore-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.explore-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.explore-add-button {
  border: 1px solid #0b6b3a;
  background: linear-gradient(180deg, #0d7c43 0%, #0b6b3a 100%);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(11, 107, 58, 0.26);
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.explore-add-button::before {
  content: "+";
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
}

.explore-add-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(11, 107, 58, 0.3);
}

.explore-add-button:active {
  transform: translateY(0);
}

.explore-add-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 107, 58, 0.32), 0 10px 20px rgba(11, 107, 58, 0.28);
}

.explore-search {
  display: grid;
  gap: 6px;
}

.search-input {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input .text-input {
  padding-left: 42px;
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.explore-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.explore-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.explore-results {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.explore-detail {
  display: grid;
  gap: 16px;
}

.detail-header h2 {
  margin: 4px 0 6px;
}

.detail-meta {
  color: var(--muted);
  font-size: 13px;
}

.detail-section h3 {
  margin: 0 0 8px;
}

.detail-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.detail-section-header h3 {
  margin: 0;
}

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

.review-photos {
  margin-top: 8px;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
}

.review-photos .photo-card img {
  height: 80px;
}

.photo-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(20, 18, 27, 0.08);
  background: #fff;
}

.photo-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.detail-info-grid {
  display: grid;
  gap: 10px;
}

.detail-info-grid div {
  display: grid;
  gap: 4px;
}

.detail-info-grid strong {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.review-card {
  border: 1px solid rgba(20, 18, 27, 0.08);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
  display: grid;
  gap: 8px;
}

.review-rating {
  color: #f59e0b;
  letter-spacing: 0.1em;
}

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

.review-author {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.review-author:hover {
  text-decoration: underline;
}

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

.review-form .text-input {
  width: 100%;
}

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

.suggest-form .field {
  display: grid;
  gap: 6px;
}

.suggest-form .field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.suggest-form select[multiple] {
  min-height: 120px;
}

.suggest-review {
  border: 1px solid rgba(20, 18, 27, 0.12);
  border-radius: 14px;
  padding: 14px;
  background: #fbfcfe;
  display: grid;
  gap: 10px;
}

.suggest-review h4 {
  margin: 0;
  font-size: 16px;
}

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

.suggest-review-item {
  border: 1px solid rgba(20, 18, 27, 0.1);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.suggest-review-label {
  font-weight: 700;
  font-size: 13px;
  color: #111827;
}

.suggest-review-values {
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.suggest-review-note {
  font-size: 13px;
}

.review-word-count {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.review-word-count.is-over {
  color: #b42318;
}

.review-stars {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.review-star {
  border: 1px solid rgba(20, 18, 27, 0.2);
  background: #fff;
  color: #9aa3b2;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.review-star:hover {
  transform: translateY(-1px);
}

.review-star.is-active {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.6);
}

.review-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.review-delete {
  border: 1px solid rgba(180, 35, 24, 0.35);
  padding: 8px 12px;
  border-radius: 999px;
}

.review-login-actions {
  margin-top: 12px;
}

.review-name-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.review-name-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 12px;
}

.review-name-field .text-input {
  width: 100%;
}

.review-photo-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.review-photo-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(20, 18, 27, 0.12);
  background: #fff;
  font-size: 13px;
}

.result-card {
  border: 1px solid rgba(20, 18, 27, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
}

.result-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f6fb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #1f2937;
  border: 1px solid rgba(20, 18, 27, 0.08);
}

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

.result-title {
  font-weight: 600;
}

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

.result-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.result-stars {
  color: #f59e0b;
  letter-spacing: 0.12em;
}

.explore-map {
  position: relative;
}

.explore-map #explore-map {
  height: clamp(520px, 70vh, 720px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: none;
}

.leaflet-tooltip.poi-tooltip {
  background: transparent;
  color: #111;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  max-width: none;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  text-align: left;
  line-height: 1.25;
  box-shadow: none !important;
}

.leaflet-tooltip.poi-tooltip::before {
  display: none;
}

.poi-label-text {
  display: block;
  width: 25ch;
  max-width: 25ch;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  text-align: left;
  line-height: 1.25;
  color: #111;
  font-weight: 600;
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff,
    0 0 8px rgba(255, 255, 255, 0.6);
  filter: none;
}

.poi-icon {
  background: transparent;
  border: none;
}

.poi-dot {
  width: var(--poi-size, 18px);
  height: var(--poi-size, 18px);
  border-radius: 50%;
  background: var(--poi-color, #2563eb);
  border: var(--poi-ring, 2px) solid #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.25);
}

.poi-emoji {
  font-size: 10px;
  line-height: 1;
  color: #fff;
}

@media (max-width: 900px) {
  .explore-shell {
    grid-template-columns: 1fr;
  }

  .explore-map #explore-map {
    height: 60vh;
  }
}

.chip.featured-tag {
  background: #111827;
  color: #fff;
}

.chip-compact {
  padding: 6px 10px;
  font-size: 12px;
}

.category-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dot-color, #2563eb);
  border: 2px solid #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  box-shadow: 0 8px 14px rgba(15, 23, 42, 0.25);
}

.category-dot-icon {
  font-size: 11px;
  color: #fff;
}

.table-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 2px;
}

.tag-picker {
  display: grid;
  gap: 8px;
}

.tag-picker-label {
  font-weight: 600;
}

.tag-suggestions {
  display: grid;
  gap: 6px;
  background: #fff;
  border: 1px solid rgba(20, 18, 27, 0.16);
  border-radius: 12px;
  padding: 8px;
  max-height: 180px;
  overflow: auto;
  box-shadow: 0 18px 30px rgba(15, 18, 26, 0.15);
}

.tag-suggestions[hidden] {
  display: none;
}

.tag-suggestion {
  text-align: left;
  border: 1px solid rgba(20, 18, 27, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  background: #f7f8fb;
  cursor: pointer;
  font: inherit;
}

.tag-suggestion:hover {
  background: #edf1f9;
}

.tag-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.category-input-row .text-input {
  flex: 1;
}

.tag-chip {
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.tag-chip-remove {
  font-weight: 700;
  opacity: 0.6;
}

.action-list {
  display: grid;
  gap: 16px;
}

.action-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.action-body {
  color: var(--muted);
  font-size: 14px;
}

.callout {
  background: #fff5da;
  padding: 12px 14px;
  border-radius: 12px;
  color: #7d5c00;
  margin: 16px 0;
}

.auth-form .field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-shell {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth {
  max-width: 360px;
  width: 100%;
}

.auth-form input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(20, 18, 27, 0.2);
  font-size: 15px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.profile-reviews {
  margin-top: 24px;
}

.label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.value {
  font-weight: 600;
}

.site-footer {
  padding: 30px 8vw;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.admin-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.admin-form p {
  margin: 0;
  display: grid;
  gap: 6px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(20, 18, 27, 0.2);
  font-size: 14px;
}

.map-block {
  margin-top: 12px;
}

.map-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 8px;
}

.map-embed {
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(20, 18, 27, 0.12);
  background: #e9eef5;
}

.hours-editor {
  border: 1px solid rgba(20, 18, 27, 0.12);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.hours-editor + .hours-editor {
  margin-top: 16px;
}

.hours-row {
  display: grid;
  grid-template-columns: 140px 180px 1fr;
  gap: 12px;
  align-items: center;
}

.hours-day {
  font-weight: 600;
}

.hours-flags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hours-closed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.hours-ranges {
  display: grid;
  gap: 8px;
}

.hours-range-block {
  display: grid;
  gap: 6px;
}

.hours-ranges.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.hours-ranges.is-disabled input[type="time"] {
  background: #f2f3f7;
  color: #8d97a6;
}

.hours-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.hours-range input[type="time"] {
  width: 100%;
  min-width: 120px;
}

.hours-add {
  justify-self: flex-start;
}

.hours-remove {
  white-space: nowrap;
}

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

.special-day {
  border: 1px dashed rgba(20, 18, 27, 0.16);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 12px;
}

.special-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.small {
  padding: 8px 14px;
  font-size: 12px;
}

.is-hidden {
  display: none;
}

.field-error {
  color: #b42318;
  font-size: 12px;
}


.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border-radius: 18px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(20, 18, 27, 0.08);
}

.table-shell {
  border-radius: 18px;
  border: 1px solid rgba(20, 18, 27, 0.08);
  overflow: hidden;
}

.table-title {
  font-weight: 600;
}

.table-sub {
  font-size: 12px;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eef2f7;
  color: #405066;
}

.status-pill.status-published {
  background: #e4f8ed;
  color: #117a3a;
}

.status-pill.status-draft {
  background: #fff3d6;
  color: #8b5a00;
}

.status-pill.featured {
  background: #dff4ff;
  color: #0a5b7c;
}

.status-pill.muted-pill {
  background: #f0f0f0;
  color: #667085;
}

.danger-link {
  background: transparent;
  border: none;
  color: #b42318;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.table-actions {
  display: flex;
  gap: 12px;
}

.text-input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(20, 18, 27, 0.2);
  font-size: 14px;
  background: #fff;
}

.dropdown-field {
  position: relative;
}

.dropdown-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid rgba(20, 18, 27, 0.14);
  border-radius: 12px;
  box-shadow: 0 18px 32px rgba(12, 16, 28, 0.16);
  max-height: 240px;
  overflow-y: auto;
  z-index: 30;
}

.dropdown-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(20, 18, 27, 0.06);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: #f4f7fb;
}

.picker-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggest-picker-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(22, 163, 74, 0.5);
  background: rgba(22, 163, 74, 0.12);
  color: #0f5132;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 600;
}

.suggest-picker-chip-remove {
  border: none;
  background: transparent;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.suggest-picker-empty {
  color: var(--muted);
  font-size: 12px;
}

.suggest-picker-item {
  width: 100%;
  text-align: left;
  border: none;
  background: #fff;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(20, 18, 27, 0.06);
  cursor: pointer;
}

.suggest-picker-item:last-child {
  border-bottom: none;
}

.suggest-picker-item:hover {
  background: #edf8f2;
}

.suggest-picker-item mark {
  background: rgba(22, 163, 74, 0.24);
  color: inherit;
  border-radius: 4px;
  padding: 0 2px;
}

.helper-text {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.helptext {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.field-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.panel-spacing {
  margin-bottom: 22px;
}

.table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.media-section {
  display: grid;
  gap: 18px;
}

.media-block {
  display: grid;
  gap: 12px;
}

.media-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.media-dropzone {
  border: 1px dashed rgba(20, 18, 27, 0.2);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 16px;
  background: #fff;
}

.media-dropzone.is-dragover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(46, 125, 50, 0.06);
}

.media-card {
  border: 1px solid rgba(20, 18, 27, 0.08);
  border-radius: 16px;
  padding: 10px;
  background: #fff;
  display: grid;
  gap: 8px;
}

.media-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #f4f6fb;
}

.media-meta {
  font-size: 12px;
  color: var(--muted);
  word-break: break-word;
}

.media-empty {
  font-size: 13px;
  color: var(--muted);
}

.form-group {
  display: grid;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(20, 18, 27, 0.08);
}

.form-group:first-of-type {
  border-top: none;
  padding-top: 0;
}

.field-row {
  display: grid;
  gap: 6px;
}

.detail-tags {
  margin-top: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 24px;
  margin-bottom: 22px;
}

.detail-card h2 {
  margin-top: 0;
}

.detail-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.detail-list > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
}

.detail-list dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 600;
}

.detail-list dd {
  margin: 0;
}

.detail-description h3 {
  margin-bottom: 8px;
}

.map-empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 26, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px;
  width: min(820px, 100%);
  max-height: 85vh;
  overflow: auto;
  box-shadow: var(--shadow);
}

.modal-form {
  margin-top: 16px;
}

.report-modal-card {
  width: min(620px, 100%);
  max-height: min(84vh, 760px);
}

.report-modal-card .panel-header {
  align-items: flex-start;
  gap: 12px;
}

.report-modal-card .panel-header h3 {
  margin: 0;
}

.report-modal-card .panel-header .muted {
  margin-top: 4px;
}

.report-modal-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.report-modal-form .field {
  display: grid;
  gap: 8px;
}

.report-modal-form .text-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
}

.report-modal-form textarea.text-input {
  min-height: 132px;
  line-height: 1.42;
  resize: vertical;
}

.report-form-actions {
  margin-top: 2px;
  justify-content: flex-end;
  gap: 10px;
}

.report-note {
  min-height: 20px;
  margin-top: 2px;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 11, 18, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2500;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-panel {
  position: relative;
  max-width: min(92vw, 980px);
  max-height: 90vh;
  display: grid;
  gap: 12px;
  justify-items: center;
  color: #f8f7fb;
}

.lightbox-image {
  max-width: 92vw;
  max-height: 78vh;
  border-radius: 16px;
  box-shadow: 0 28px 60px rgba(5, 7, 12, 0.4);
  background: #111826;
}

.lightbox-caption {
  font-size: 14px;
  color: rgba(248, 247, 251, 0.8);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -12px;
  right: -6px;
  background: rgba(17, 24, 39, 0.9);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 24, 39, 0.9);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  display: grid;
  place-items: center;
}

.lightbox-nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.lightbox-prev {
  left: -58px;
}

.lightbox-next {
  right: -58px;
}

@media (max-width: 900px) {
  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 900px) {
  .panel {
    padding: 18px;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .detail-list > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .table-actions {
    width: 100%;
  }

  .table-actions .text-input {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .modal-card {
    padding: 18px;
    max-height: 92vh;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table tr {
    padding: 14px 0;
    border-bottom: 1px solid rgba(20, 18, 27, 0.08);
  }

  .admin-table td {
    border-bottom: none;
    padding: 6px 0;
  }

  .admin-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
  }

  .admin-table td[colspan]::before {
    content: "";
    display: none;
  }

  .table-shell {
    border: none;
    background: transparent;
  }

  .admin-table {
    background: transparent;
  }

  .hours-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hours-range {
    grid-template-columns: 1fr 1fr;
  }

  .hours-range span {
    display: none;
  }

  .hours-range .hours-remove {
    grid-column: 1 / -1;
    justify-self: flex-start;
  }

  .hours-range input[type="time"] {
    min-width: 0;
  }
}

.log-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.log-card {
  border: 1px solid rgba(20, 18, 27, 0.1);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
}

.log-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.log-title {
  font-weight: 600;
}

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

.log-user {
  font-size: 12px;
  color: #3f4b5b;
}

.log-message {
  color: var(--muted);
  font-size: 13px;
}

.log-card details {
  margin-top: 10px;
}

.log-card summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
}

.log-card pre {
  background: #f7f8fb;
  border-radius: 12px;
  padding: 12px;
  overflow-x: auto;
  font-size: 12px;
}

.log-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.log-empty {
  color: var(--muted);
}

.feed-shell {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(220px, 260px);
  gap: 2rem;
  position: relative;
}

.feed-shell::before {
  content: "";
  position: absolute;
  inset: -40px;
  border-radius: 36px;
  background: radial-gradient(circle at 20% 20%, rgba(148, 163, 184, 0.3), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(163, 230, 53, 0.2), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(56, 189, 248, 0.2), transparent 45%);
  z-index: -1;
}

.feed-rail {
  display: grid;
  gap: 1.2rem;
  position: sticky;
  top: 96px;
  align-self: start;
}

.rail-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  padding: 1.2rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

.rail-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.rail-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
}

.rail-card ul {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  color: #4b5563;
}

.rail-pill {
  display: inline-flex;
  margin-top: 0.8rem;
  background: #111827;
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
}

.feed-center {
  display: grid;
  gap: 1.8rem;
  max-width: 760px;
  margin: 0 auto;
}

.feed-compose {
  padding: 2rem;
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

.feed-compose-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem 1rem;
}

.feed-subtle {
  color: var(--muted);
  font-size: 0.95rem;
}

.feed-compose h1 {
  margin: 0.4rem 0 0.4rem;
  font-size: 2rem;
}

.feed-compose p {
  margin: 0;
  color: #4b5563;
}

.feed-compose-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.feed-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 1rem;
}

.feed-avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 1.1rem;
}

.feed-profile {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.feed-user-name {
  font-weight: 600;
}

.feed-user-role {
  font-size: 0.85rem;
  color: #6b7280;
}

.feed-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.4rem;
}

.feed-form textarea,
.feed-form input[type="url"] {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: #ffffff;
  font-size: 1rem;
}

.feed-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  padding-top: 0.8rem;
  border-top: 1px solid #e5e7eb;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #1f2937;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

.action-pill:hover {
  background: #eef2f7;
}

.action-pill .pill-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 0.75rem;
  padding: 0 0.5rem;
}

.feed-action-bar .primary {
  margin-left: auto;
}

.feed-panels {
  display: grid;
  gap: 0.8rem;
}

.feed-panel {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: #f9fafb;
}

.feed-controls {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1rem 1.2rem;
  background: #f9fafb;
}

.feed-controls summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.feed-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.chip-input {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 0.6rem;
  background: #fff;
}

.chip-input input {
  border: none;
  outline: none;
  width: 100%;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.chip {
  background: #111827;
  color: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.chip button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.chip-suggestions {
  margin-top: 0.4rem;
  display: grid;
  gap: 0.3rem;
}

.chip-suggestions button {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
}

.chip-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-toggle {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  background: #fff;
}

.chip-toggle input {
  display: none;
}

.chip-toggle span {
  font-size: 0.85rem;
}

.chip-toggle input:checked + span {
  color: #0f172a;
  font-weight: 600;
}

.chip-toggle input:checked + span::before {
  content: "✓ ";
}

.switch {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.feed-area {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.6rem;
}

.feed-map {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.feed-radius {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.feed-radius input[type="range"] {
  flex: 1;
}

.feed-upload {
  border: 2px dashed #cbd5f5;
  padding: 1.2rem;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  background: #f8fafc;
}

.feed-upload input {
  display: none;
}

.feed-file-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.6rem;
}

.file-pill {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
}

.feed-preview {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #eef2f7;
  min-height: 90px;
  display: grid;
  place-items: center;
}

.feed-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-preview-file {
  padding: 0.6rem;
  font-size: 0.8rem;
  color: #374151;
  text-align: center;
}

.preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(17, 24, 39, 0.75);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.feed-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feed-status {
  color: #dc2626;
  font-size: 0.9rem;
}

.feed-timeline {
  display: grid;
  gap: 1.2rem;
}

.feed-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.feed-mode-toggle {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.feed-mode {
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  font-weight: 600;
}

.feed-mode.is-active {
  background: #111827;
  color: #fff;
  border-color: transparent;
}

.feed-list {
  display: grid;
  gap: 1.5rem;
}

.feed-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 1.6rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 0.8rem;
}

.feed-card-head-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #6b7280;
  font-size: 0.85rem;
}

.feed-more {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.feed-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.16);
  padding: 0.35rem;
  display: none;
  z-index: 40;
}

.feed-more-menu.feed-more-menu-right {
  right: 0;
  left: auto;
}

.feed-more.is-open .feed-more-menu {
  display: block;
}

.feed-more-item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #0f172a;
  cursor: pointer;
}

.feed-more-item:hover {
  background: #f3f4f6;
}

.icon-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
}

.icon-button:hover {
  background: #eef2f7;
}

.feed-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.feed-card-actions .ghost.danger {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.3);
}

.feed-interactions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.feed-comment-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.feed-comment-total {
  font-weight: 600;
  color: #111827;
}

.feed-comments {
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding-top: 0.8rem;
  display: grid;
  gap: 0.8rem;
}

.feed-comments[hidden] {
  display: none;
}

.feed-comment-form {
  display: grid;
  gap: 0.5rem;
}

.feed-comment-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  background: #f8fafc;
  resize: vertical;
  min-height: 56px;
}

.feed-comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.feed-comment-count {
  font-size: 0.8rem;
  color: #6b7280;
}

.feed-comment-count.is-over {
  color: #dc2626;
  font-weight: 600;
}

.feed-comment-list {
  display: grid;
  gap: 0.7rem;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.feed-comment-card {
  background: #f8fafc;
  border-radius: 14px;
  padding: 0.45rem 0.65rem;
  display: grid;
  gap: 0.35rem;
  position: relative;
}

.feed-comment-card.comment-depth-2 {
  margin-left: 22px;
  padding-left: 0.5rem;
}

.feed-comment-card.comment-depth-3 {
  margin-left: 44px;
  padding-left: 0.5rem;
}

.feed-comment-card.comment-depth-2::before,
.feed-comment-card.comment-depth-3::before {
  content: "";
  position: absolute;
  left: -14px;
  top: -12px;
  bottom: -12px;
  border-left: 2px solid rgba(148, 163, 184, 0.6);
}

.feed-comment-card.comment-depth-2::after,
.feed-comment-card.comment-depth-3::after {
  content: "";
  position: absolute;
  left: -14px;
  top: 16px;
  width: 14px;
  border-top: 2px solid rgba(148, 163, 184, 0.6);
}

.feed-comment-body {
  margin: 0;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.feed-comment-body.is-expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.feed-comment-more {
  border: none;
  background: none;
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  justify-self: start;
}

.feed-comment-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.feed-comment-reply-btn {
  border: none;
  background: none;
  color: #111827;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 0.85rem;
}

.feed-comment-toggle {
  border: none;
  background: none;
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 0.85rem;
}

.comment-react {
  border: none;
  background: none;
  color: #111827;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.comment-react.is-active {
  color: #2563eb;
}

.comment-react-count {
  font-weight: 600;
}

.feed-comment-author {
  font-size: 0.8rem;
  color: #6b7280;
}

.feed-comment-reply {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.feed-edit {
  display: none;
  gap: 0.7rem;
}

.feed-edit-body {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.8rem;
  font-size: 1rem;
  background: #f8fafc;
}

.feed-edit-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

.feed-word-count {
  font-size: 0.85rem;
  color: #6b7280;
  justify-self: end;
}

.feed-word-count.is-over {
  color: #dc2626;
  font-weight: 600;
}

.feed-see-more {
  justify-self: start;
  border: none;
  background: none;
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-top: -0.2rem;
}

.feed-card.is-editing .feed-edit {
  display: grid;
}

.feed-card.is-editing .feed-body {
  display: none;
}

.feed-body.is-hidden {
  display: none;
}

.feed-body {
  white-space: pre-line;
}

.feed-body[data-full] {
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.feed-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.feed-meta {
  font-size: 0.85rem;
  color: #6b7280;
}

.feed-card p {
  margin: 0;
  color: #111827;
  line-height: 1.6;
}

.feed-card a {
  color: #2563eb;
  word-break: break-all;
}

.feed-tags {
  font-size: 0.85rem;
  color: #475569;
}

.feed-reactions {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.reaction-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #dbe2ea;
  background: #f8fafc;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.reaction-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
}

.reaction-trigger.has-selection {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.08);
}

.reaction-trigger-icons {
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}

.reaction-trigger-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  min-width: 10px;
}

.reaction-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  background: #ffffff;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
  transform-origin: left bottom;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 24;
}

.feed-reactions.is-open .reaction-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 999px;
  padding: 0.26rem 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.reaction-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
}

.reaction-btn.is-active {
  background: #111827;
  color: #fff;
  border-color: transparent;
}

.reaction-icon {
  font-size: 0.95rem;
}

.reaction-count {
  font-weight: 700;
  min-width: 10px;
}

.feed-media {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 140px;
}

.feed-media[data-count="1"] {
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
}

.feed-media[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 200px;
}

.feed-media[data-count="3"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feed-media[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feed-media-item {
  position: relative;
  background: #f3f4f6;
  border-radius: 14px;
  overflow: hidden;
}

.feed-media-item.feature {
  grid-row: span 2;
}

.feed-media[data-count="4"] .feed-media-item.feature {
  grid-row: span 3;
}

.feed-media-item.has-overflow::after {
  content: attr(data-overflow);
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.media-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(17, 24, 39, 0.75);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.feed-card.is-editing .media-remove {
  opacity: 1;
  pointer-events: auto;
}

.feed-media img,
.feed-media video {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  height: 100%;
}

.feed-media[data-count="1"] img,
.feed-media[data-count="1"] video {
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.feed-load-more {
  justify-self: center;
}

.feed-sentinel {
  width: 100%;
  height: 1px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    gap: 16px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
  }

  .feed-compose {
    padding: 1.4rem;
  }

  .feed-card {
    padding: 1.2rem;
  }

  .feed-media img,
  .feed-media video {
    max-height: 360px;
  }

  .feed-media {
    grid-auto-rows: 110px;
  }

  .feed-media[data-count="2"] {
    grid-auto-rows: 160px;
  }
}

@media (max-width: 1100px) {
  .feed-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .feed-rail {
    position: static;
    order: 2;
  }

  .feed-right {
    order: 3;
  }

  .feed-center {
    padding-right: 0;
  }
}
