:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --hairline: #dbdbdb;
  --text: #0c0c0c;
  --text-2: #737373;
  --fill: #efefef;
  --fill-hover: #dbdbdb;
  --blue: #0095f6;
  --blue-hover: #1877f2;
  --danger: #ed4956;
  --ig-gradient: linear-gradient(
    45deg,
    #feda75 0%,
    #fa7e1e 25%,
    #d62976 50%,
    #962fbf 75%,
    #4f5bd5 100%
  );
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --nav-h: 60px;
  --tabbar-h: 0px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

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

html,
body {
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: var(--tabbar-h);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:has(main.full-width) {
  padding-bottom: 0;
}

::selection {
  background: #cce9fd;
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

h2 {
  margin: 24px 0 8px;
  font-size: 16px;
}

h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

p {
  margin: 0 0 12px;
}

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

::placeholder {
  color: var(--text-2);
  opacity: 1;
}

.wordmark,
#home-link {
  color: var(--text);
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
}

#home-link:hover {
  color: var(--text);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}

#site-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  padding: 0 16px;
}

#account-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.nav-icon:hover {
  background: var(--fill);
  color: var(--text);
}

.nav-icon:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

#account-menu {
  position: relative;
}

.account-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  list-style: none;
  cursor: pointer;
}

.account-summary::-webkit-details-marker {
  display: none;
}

.account-summary::marker {
  content: "";
}

.account-summary:hover {
  background: var(--fill);
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: 220px;
  padding: 8px 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.account-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}

.account-menu-panel a:hover {
  background: var(--fill);
}

#profile-link {
  color: var(--text);
  font-weight: 600;
}

#account-menu #sign-out-form {
  display: block;
  margin: 4px 0 0;
  padding-top: 4px;
  border-top: 1px solid var(--hairline);
}

#account-menu #sign-out-button {
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-weight: 400;
}

#account-menu #sign-out-button:hover {
  background: var(--fill);
  color: var(--text);
}

#account-menu #sign-out-button .hero-arrow-right-start-on-rectangle {
  width: 20px;
  height: 20px;
}

#tab-bar {
  display: none;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  align-items: stretch;
  justify-content: space-around;
  box-sizing: border-box;
  height: var(--tabbar-h);
  padding: 0 4px env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--hairline);
}

#tab-bar .nav-icon {
  flex: 1;
  width: auto;
  height: 52px;
  border-radius: 8px;
}

main {
  width: 100%;
  max-width: 470px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

main.auth,
.auth {
  max-width: 350px;
}

main.auth {
  width: 100%;
  padding-top: 32px;
}

main.full-width {
  width: 100%;
  max-width: none;
  height: calc(100dvh - var(--nav-h) - var(--tabbar-h));
  margin: 0;
  padding: 0;
}

main form {
  width: 100%;
  margin: 0;
}

.card form,
#place-suggestions form {
  margin: 0;
}

.fieldset {
  display: block;
  width: 100%;
  min-inline-size: 0;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
}

.label {
  display: block;
  margin: 0 0 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.input,
.select,
.textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background-color: var(--bg);
  background-image: none;
  box-shadow: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
}

.input,
.select {
  height: 40px;
  min-height: 40px;
}

.textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.select {
  appearance: none;
  padding-right: 32px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-2) 50%),
    linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.input:focus,
.input:focus-visible,
.select:focus,
.select:focus-visible,
.textarea:focus,
.textarea:focus-visible {
  border-color: var(--hairline);
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  box-shadow: none;
}

.input.input-error,
.textarea.textarea-error,
.select.select-error {
  border-color: var(--danger);
}

.text-error {
  color: var(--danger);
  font-size: 12px;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--fill);
  color: var(--text-2);
}

.search-pill input,
.search-pill .input {
  flex: 1;
  width: auto;
  height: 36px;
  min-width: 0;
  min-height: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.search-pill input:focus,
.search-pill input:focus-visible,
.search-pill .input:focus,
.search-pill .input:focus-visible {
  outline: none;
  border: 0;
}

.search-pill:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.search-pill .hero-magnifying-glass,
.search-pill-icon {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--text-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  height: auto;
  min-height: 32px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--fill);
  background-image: none;
  box-shadow: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
  vertical-align: middle;
  transition: background-color 0.15s ease, color 0.15s ease;
}

a.btn,
a.btn:hover,
main a.btn,
main a.btn:hover {
  text-decoration: none;
}

.btn:hover {
  background: var(--fill-hover);
  color: var(--text);
}

.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.btn:active {
  translate: none;
}

.btn.btn-primary:not(.btn-soft) {
  background: var(--blue);
  color: #fff;
}

a.btn.btn-primary:not(.btn-soft),
a.btn.btn-primary:not(.btn-soft):hover,
main a.btn.btn-primary:not(.btn-soft),
main a.btn.btn-primary:not(.btn-soft):hover {
  color: #fff;
}

.btn.btn-primary:not(.btn-soft):hover {
  background: var(--blue-hover);
  color: #fff;
}

.btn.btn-primary.btn-soft,
a.btn.btn-primary.btn-soft,
main a.btn.btn-primary.btn-soft {
  background: var(--fill);
  color: var(--text);
}

.btn.btn-primary.btn-soft:hover,
a.btn.btn-primary.btn-soft:hover,
main a.btn.btn-primary.btn-soft:hover {
  background: var(--fill-hover);
  color: var(--text);
}

.btn-link,
a.btn-link,
a.btn-link:hover {
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
}

.btn-link:hover,
a.btn-link:hover {
  background: transparent;
  color: var(--blue-hover);
}

.card form .btn.btn-primary:not(.btn-soft) {
  width: 100%;
  margin-top: 4px;
  white-space: normal;
}

.card {
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.card h1,
.card h2,
.card h3 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.meta {
  color: var(--text-2);
  font-size: 12px;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--fill);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.chip:hover {
  background: var(--fill-hover);
  color: var(--text);
}

.chip.is-selected,
.chip[aria-pressed="true"] {
  background: var(--text);
  color: #fff;
}

.avatar-ring {
  display: inline-flex;
  flex: none;
  border-radius: 50%;
  line-height: 0;
}

.avatar-gap {
  display: flex;
  border-radius: 50%;
}

.avatar-ring-story {
  padding: 2px;
  background: var(--ig-gradient);
}

.avatar-ring-story > .avatar-gap {
  padding: 2px;
  background: #fff;
}

.avatar-ring-hairline {
  padding: 0;
  border: 1px solid var(--hairline);
  background: transparent;
}

.avatar-ring-none > .avatar-gap,
.avatar-ring-hairline > .avatar-gap {
  padding: 0;
}

.avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--fill);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  user-select: none;
}

.avatar.avatar-icon {
  background: var(--fill);
  color: var(--text);
}

.people-row {
  display: flex;
  gap: 16px;
  margin: 0 0 8px;
  padding: 8px 0 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.people-row::-webkit-scrollbar {
  display: none;
}

.people-chip {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 74px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
}

.people-chip:hover {
  color: var(--text);
}

.people-chip:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 12px;
}

.people-chip-name {
  max-width: 74px;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.people-chip.is-selected .people-chip-name,
.people-chip[aria-pressed="true"] .people-chip-name {
  font-weight: 600;
}

.people-chip .avatar-ring {
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 64px;
  height: 64px;
  padding: 0;
  border-color: transparent;
  background: transparent;
}

.people-chip .avatar-ring-story {
  padding: 2px;
  background: var(--ig-gradient);
}

.people-chip .avatar-ring-hairline {
  border: 0;
}

.people-chip .avatar-ring-hairline .avatar {
  box-shadow: 0 0 0 1px var(--hairline);
}

.people-chip .avatar-icon {
  width: 56px;
  height: 56px;
}

.people-chip .avatar-icon .hero-users,
.avatar-ring-dashed .hero-user-plus {
  width: 28px;
  height: 28px;
}

.avatar-ring-dashed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 64px;
  height: 64px;
  border: 1px dashed var(--text-2);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
}

.review-card {
  margin: 0 0 12px;
  padding: 12px 16px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}

.review-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.review-card-header > .avatar-ring {
  margin-top: 2px;
}

.review-card-heading {
  min-width: 0;
  flex: 1;
}

.review-card-author-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.review-card-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-card-name:hover,
.review-card-place:hover {
  text-decoration: underline;
}

.review-card-dot,
.review-card-time,
.review-card-via,
.review-card-private {
  flex: none;
  color: var(--text-2);
  font-size: 14px;
}

.review-card-via a {
  color: var(--text);
  font-weight: 600;
}

.review-card-via a:hover {
  text-decoration: underline;
}

.review-card-private {
  font-size: 12px;
  font-weight: 500;
}

.review-card-place {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 2px;
  color: var(--text);
  font-size: 13px;
}

.review-card-place .review-card-pin {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--text-2);
}

.review-card-place-name {
  min-width: 0;
}

.review-card-body {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.review-photos {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
}

.review-photos img,
.review-photos video {
  flex: none;
  max-width: min(100%, 420px);
  max-height: 280px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--fill);
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}

.review-photos img:hover {
  opacity: 0.92;
}

.review-card-compact .review-photos img,
.review-card-compact .review-photos video {
  max-height: 180px;
}

#review-photos-field {
  margin: 8px 0 16px;
}

.review-photos-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

#review-photos-label {
  margin-bottom: 0;
}

#review-photos-label.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

#review-photos-label .hero-plus {
  width: 16px;
  height: 16px;
}

.review-photos-hint {
  margin: 0;
}

#review-photos-client-error,
#review-photos-error {
  margin: 8px 0 0;
}

.review-existing-photos,
.review-photos-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.photo-tile {
  display: flex;
  flex-direction: column;
  width: 96px;
}

.photo-tile-frame {
  position: relative;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--fill);
}

.photo-tile-frame img,
.photo-tile-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-tile-video-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.photo-tile-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 6px;
  color: var(--text-2);
  text-align: center;
}

.photo-tile-filename {
  max-width: 100%;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-tile-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 12, 12, 0.72);
  color: #fff;
  cursor: pointer;
}

.photo-tile-remove:hover {
  background: rgba(12, 12, 12, 0.9);
}

.photo-tile-remove .hero-x-mark {
  width: 14px;
  height: 14px;
}

.photo-tile-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 149, 246, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.photo-tile-removed-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(12, 12, 12, 0.68);
  color: #fff;
}

.photo-tile.is-removed .photo-tile-removed-overlay {
  display: flex;
}

.photo-tile.is-removed .photo-tile-remove {
  display: none;
}

.photo-tile-removed-badge {
  font-size: 11px;
  font-weight: 600;
}

.photo-tile-undo {
  padding: 3px 10px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.existing-photo-check {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
}

.js-photo-manager .existing-photo-check {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.review-danger-zone {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.review-audience-fieldset {
  margin: 4px 0 14px;
}

.audience-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.audience-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.audience-pill:hover {
  background: var(--fill);
}

.audience-pill input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.audience-pill.is-selected,
.audience-pill:has(input[type="radio"]:checked) {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.audience-pill:has(input[type="radio"]:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.circle-friends-picker {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--bg);
}

.circle-friends-hint {
  margin: 0 0 8px;
}

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

.circle-friend-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 3px 10px 3px 6px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.circle-friend-chip input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.circle-friend-chip.is-checked,
.circle-friend-chip:has(input[type="checkbox"]:checked) {
  border-color: var(--blue);
  background: rgba(0, 149, 246, 0.08);
  color: var(--text);
}

.circle-friend-chip:has(input[type="checkbox"]:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.btn.btn-danger {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(237, 73, 86, 0.35);
  background: rgba(237, 73, 86, 0.08);
  color: var(--danger);
}

.btn.btn-danger:hover {
  background: rgba(237, 73, 86, 0.16);
  color: var(--danger);
}

.btn.btn-danger .hero-trash {
  width: 16px;
  height: 16px;
}

.review-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--fill);
}

.review-card-actions .review-card-share {
  margin-top: 0;
}

.review-card-visibility-form,
.person-bulk-form {
  width: auto;
  margin: 0;
}

.review-card-owner-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.visibility-mini-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--fill);
}

.visibility-mini-pill {
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.visibility-mini-pill:hover {
  color: var(--text);
}

.visibility-mini-pill.is-selected {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.person-bulk-visibility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}

.person-bulk-label {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

#marker-edit {
  margin-top: 8px;
}

.review-card-compact {
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
}

.review-card-compact .review-card-body {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.review-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 8px;
  color: var(--text-2);
  font-size: 12px;
}

.review-card-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

.review-card-share:hover {
  color: var(--blue-hover);
  text-decoration: none;
}

.review-card-share .hero-share {
  width: 16px;
  height: 16px;
}

.sidebar-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-row:hover {
  background: var(--fill);
  color: var(--text);
}

.sidebar-row:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.sidebar-row-body {
  min-width: 0;
  flex: 1;
}

.sidebar-row-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.sidebar-row-meta {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 12px;
}

#person-username {
  margin: 2px 0 0;
  color: var(--text-2);
  font-size: 14px;
}

#person-reviews-list .btn {
  min-height: 28px;
  margin-top: 8px;
  padding: 0 12px;
  font-size: 13px;
}

#person-reviews-list,
#invite-other-reviews,
#active-invites ul,
#place-suggestions {
  margin: 0;
  padding: 0;
  list-style: none;
}

#person-reviews-list,
#invite-other-reviews,
#active-invites ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#place-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}

#place-suggestions li + li {
  border-top: 1px solid var(--hairline);
}

#place-suggestions .btn,
#place-suggestions .btn.btn-primary.btn-soft {
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 56px;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  white-space: normal;
}

#place-suggestions .btn:hover,
#place-suggestions .btn.btn-primary.btn-soft:hover {
  background: var(--fill);
  color: var(--text);
}

#place-suggestions .place-name,
#place-suggestions .meta {
  display: block;
  width: 100%;
}

#place-suggestions .meta {
  margin: 2px 0 0;
  font-weight: 400;
}

#invite-url {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--fill);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

#sign-in-page,
#forgot-password-page,
#reset-password-page,
#magic-confirmation-page,
#invite-claim,
#invite-preview,
#invite-created,
#invite-new {
  padding-top: 0;
}

#sign-in-page h1,
#forgot-password-page h1,
#reset-password-page h1,
#magic-confirmation-page h1,
#invite-created h1 {
  font-weight: 700;
  letter-spacing: -0.04em;
  text-align: center;
}

#sign-in-page > p,
#forgot-password-page > p,
#reset-password-page > p,
#magic-confirmation-page > p,
#invite-created > p {
  color: var(--text-2);
  text-align: center;
}

#home-intro {
  margin-top: 48px;
  padding: 32px 24px;
  text-align: center;
}

#home-intro h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

#home-intro .btn {
  width: 100%;
  margin-top: 8px;
}

.toast {
  position: fixed;
  inset: auto;
  inset-inline-start: 50%;
  inset-inline-end: auto;
  top: calc(var(--nav-h) + 12px);
  bottom: auto;
  left: 50%;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 32px);
  min-width: 0;
  margin: 0;
  translate: -50% 0;
  transform: none;
  background: transparent;
  white-space: normal;
  pointer-events: none;
}

.toast > * {
  animation: none;
  pointer-events: auto;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: min(22rem, calc(100vw - 32px));
  max-width: min(22rem, calc(100vw - 32px));
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  background-image: none;
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  text-align: start;
}

.alert p {
  margin: 0;
}

.alert-error {
  border-color: var(--danger);
}

.alert-info {
  border-color: var(--hairline);
}

.alert button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}

.feed-people {
  margin: 0 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}

.feed-people .people-row {
  margin: 0;
  padding: 12px 16px 8px;
}

.feed-empty {
  padding: 36px 20px 24px;
  text-align: center;
}

.feed-empty p {
  margin: 0 0 4px;
  color: var(--text-2);
}

.feed-empty p.feed-empty-title {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.feed-empty .action-row {
  justify-content: center;
  margin: 16px 0 0;
}

.feed-older {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.profile-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 28px;
  align-items: center;
  padding: 8px 0 20px;
}

.profile-avatar {
  grid-column: 1;
  grid-row: 1;
  --avatar-size: 150px;
  --avatar-font: 63px;
}

.profile-main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

#person-display-name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.profile-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.relationship-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.relationship-badge.is-circle {
  background: rgba(0, 149, 246, 0.1);
  color: var(--blue);
}

.profile-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--text);
  font-size: 16px;
}

.profile-stat strong {
  font-weight: 600;
}

.profile-stat-link {
  color: var(--text);
}

.profile-stat-link:hover {
  text-decoration: underline;
}

.profile-stat-dot {
  color: var(--text-2);
}

.person-mutual-friends {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.mutual-label {
  color: var(--text-2);
  font-size: 12px;
}

.mutual-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mutual-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px 2px 4px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.mutual-chip:hover {
  background: var(--fill);
}

#person-actions {
  grid-column: 2;
  grid-row: 2;
  margin: 16px 0 0;
}

.inline-action-form {
  width: auto;
  margin: 0;
}

.profile-divider {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--hairline);
}

.profile-tabs {
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.profile-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

.profile-tab:hover {
  color: var(--text);
}

.profile-tab.is-active {
  color: var(--text);
}

.profile-tab.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--text);
}

.profile-tab-count {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}

.profile-tab.is-active .profile-tab-count {
  color: var(--text);
}

#person-reviews,
#person-friends {
  padding-top: 12px;
}

.friends-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.friend-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}

.friend-row-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.friend-row-names {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.friend-row-display {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-row-identity:hover .friend-row-display {
  text-decoration: underline;
}

.friend-row-username {
  color: var(--text-2);
  font-size: 12px;
}

.friend-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.friend-remove-form {
  width: auto;
  margin: 0;
}

.friend-remove-btn {
  background: transparent;
  color: var(--danger);
}

.friend-remove-btn:hover {
  background: rgba(237, 73, 86, 0.1);
  color: var(--danger);
}

.profile-empty {
  margin: 28px 0;
  color: var(--text-2);
  text-align: center;
}

.profile-empty .btn {
  margin-top: 8px;
}

.auth-wordmark {
  display: block;
  margin: 8px 0 12px;
  color: var(--text);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
}

.card.auth-card {
  padding: 28px 32px 24px;
  text-align: center;
}

.auth-card h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
}

.auth-tagline,
.auth-card form > p {
  margin: 0 0 16px;
  color: var(--text-2);
  font-size: 14px;
  text-align: center;
}

.auth-secondary {
  margin: 16px 0 0;
  font-size: 14px;
  text-align: center;
}

.auth-secondary a {
  color: var(--text);
  font-weight: 600;
}

.auth-card form {
  text-align: left;
}

.auth-card .label {
  color: var(--text);
  text-align: left;
}

.auth-card .text-error {
  text-align: left;
}

.auth-card > a.btn.btn-primary,
.card.auth-card form .btn.btn-primary:not(.btn-soft) {
  width: 100%;
}

.card.auth-note {
  padding: 18px 16px;
  text-align: center;
}

.card.auth-note p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  text-align: center;
}

.invite-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 4px 0 20px;
  text-align: center;
}

.invite-header h1 {
  margin: 0;
  max-width: 280px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.invite-name {
  font-weight: 700;
}

#invite-review-preview {
  margin-bottom: 16px;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

#invite-url {
  flex: 1;
  min-width: 0;
  margin: 0;
  text-align: left;
}

#copy-invite-url {
  flex: none;
}

#invite-emailed {
  margin: 0;
  color: var(--text-2);
  text-align: center;
}

.auth-back {
  margin: 0;
}

.auth-back .btn {
  width: 100%;
}

#active-invites {
  margin-top: 8px;
}

#active-invites h2 {
  margin: 8px 0 12px;
  font-size: 14px;
  text-align: center;
}

#active-invites-empty {
  margin: 0;
  color: var(--text-2);
  text-align: center;
}

#active-invites .card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
}

#active-invites .card p {
  margin: 0;
}

#active-invites .invite-audience {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 600;
}

#active-invites .meta {
  flex-basis: 100%;
}

#active-invites .card form {
  width: auto;
  margin-left: auto;
}

#active-invites .btn.btn-primary.btn-soft,
#active-invites .btn.btn-primary.btn-soft:hover {
  min-height: 28px;
  padding: 0 8px;
  background: transparent;
  color: var(--danger);
}

#active-invites .btn.btn-primary.btn-soft:hover {
  background: var(--fill);
}

@media (min-width: 768px) {
  main {
    padding: 30px 0 48px;
  }

  .feed-people {
    margin-top: -30px;
  }

  main.auth {
    padding-top: 48px;
  }

  main.full-width {
    padding: 0;
  }
}

@media (max-width: 767px) {
  :root {
    --nav-h: 52px;
    --tabbar-h: calc(52px + env(safe-area-inset-bottom));
  }

  .nav-icons {
    display: none;
  }

  #tab-bar {
    display: flex;
  }

  .wordmark,
  #home-link {
    font-size: 20px;
  }

  .auth-wordmark {
    font-size: 28px;
  }

  main:not(.full-width) .review-card:not(.review-card-compact) {
    margin-right: -16px;
    margin-bottom: 0;
    margin-left: -16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  main:not(.full-width) .review-card:not(.review-card-compact) + .review-card,
  main:not(.full-width) #person-reviews-list li + li .review-card,
  main:not(.full-width) #invite-other-reviews li + li .review-card,
  main:not(.full-width) #invite-review-preview > .review-card + ul .review-card {
    border-top: 0;
  }

  main:not(.full-width) .feed-people {
    margin: -16px -16px 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  main:not(.full-width) .feed-people .people-row {
    margin: 0;
    padding: 12px 16px 8px;
  }

  main:not(.full-width) .feed-empty {
    margin-right: -16px;
    margin-left: -16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .profile-header {
    column-gap: 16px;
    padding: 4px 0 12px;
  }

  .profile-avatar {
    --avatar-size: 77px;
    --avatar-font: 32px;
  }

  #person-display-name {
    font-size: 16px;
  }

  .profile-stat {
    margin-top: 6px;
    font-size: 14px;
  }

  #person-actions {
    grid-column: 1 / -1;
    margin-top: 12px;
  }

  #person-actions .btn {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    padding: 0 10px;
  }

  .profile-divider {
    margin-right: -16px;
    margin-left: -16px;
  }

  .card.auth-card {
    padding: 24px 16px 20px;
  }

  .copy-row {
    flex-direction: column;
    align-items: stretch;
  }

  #copy-invite-url {
    width: 100%;
  }

  .input,
  .select,
  .textarea,
  .search-pill input,
  .search-pill .input {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
}

body.has-lightbox {
  overflow: hidden;
}

#media-lightbox[hidden],
#media-lightbox-prev[hidden],
#media-lightbox-next[hidden],
.media-lightbox-place[hidden],
.media-lightbox-author[hidden],
.media-lightbox-body[hidden] {
  display: none !important;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(8px);
  color: #fff;
}

.media-lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 12px 16px;
}

.media-lightbox-counter {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.media-lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}

.media-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.media-lightbox-close .hero-x-mark {
  width: 20px;
  height: 20px;
}

.media-lightbox-main {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 56px;
}

.media-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.media-lightbox-img,
.media-lightbox-video {
  max-width: 100%;
  max-height: calc(100dvh - 180px);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.media-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
}

.media-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.media-lightbox-prev {
  left: 12px;
}

.media-lightbox-next {
  right: 12px;
}

.media-lightbox-chevron-right {
  transform: rotate(180deg);
}

.media-lightbox-footer {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 20px 20px;
  text-align: center;
}

.media-lightbox-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.media-lightbox-place {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.media-lightbox-author {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.media-lightbox-body {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

@media (max-width: 767px) {
  .media-lightbox-main {
    padding: 0 12px;
  }

  .media-lightbox-prev {
    left: 8px;
  }

  .media-lightbox-next {
    right: 8px;
  }
}
