:root {
  --cream: #fafaf7;
  --white: #fff;
  --green: #63713e;
  --dark: #46552e;
  --yellow: #ffe8a3;
  --text: #252922;
  --muted: #65705b;
  --line: #e6e9df;
  --soft: #f0f3e9;
  --shadow: none;
  --radius: 22px;
  --social-stroke: #879467;
  --social-ease: cubic-bezier(.22, .68, 0, 1);
  --social-gutter: 20px;
}

html {
  background: #f1f2ed;
  scrollbar-color: #a3ae90 #f1f2ed;
  scrollbar-width: thin;
  scroll-padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
}

body {
  background: #f1f2ed;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

/* Apply to document, sheets, chat logs and horizontal activity lists. */
* {
  scrollbar-width: thin;
  scrollbar-color: #a3ae90 #f1f2ed;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f2ed; }
::-webkit-scrollbar-thumb { background: #a3ae90; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #7c895f; }

.app {
  max-width: 430px;
  padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
  background: var(--cream);
  box-shadow: none;
}

.app-header { padding: 0; }

button, a, input, textarea, select {
  transition: background-color 180ms var(--social-ease),
    border-color 180ms var(--social-ease), color 180ms var(--social-ease);
}

button { min-height: 44px; }
button:disabled { opacity: .55; }

button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

button, a[href], input, textarea, select, [tabindex] { scroll-margin-block: 16px; }
#main-content:focus-visible { outline-offset: -3px; }
.skip-link {
  position: fixed;
  z-index: 1000;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: max(16px, calc((100vw - 430px) / 2 + 16px));
  max-width: calc(100vw - 32px);
  min-height: 44px;
  padding: 12px 16px;
  border: 2px solid var(--green);
  border-radius: 12px;
  background: var(--yellow);
  color: var(--dark);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.skip-link:not(:focus-visible) {
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

button:not(:disabled):active { filter: brightness(.94); }
input, textarea, select { font-size: 16px; border-color: var(--social-stroke); }
input::placeholder, textarea::placeholder { color: #747b6c; opacity: 1; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border: 2px solid #963f35;
}

.primary, .secondary {
  min-height: 44px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: none;
}

.primary, .join { background: var(--green); }
.primary.danger, .danger { background: #faefeb; color: #963f35; }

/* Search first, then the four categories and the single message entry. */
#plaza-tools {
  padding: calc(20px + env(safe-area-inset-top, 0px)) var(--social-gutter) 0;
}

.search-row { gap: 8px; }
.search-box {
  width: 100%;
  min-height: 48px;
  gap: 4px;
  padding: 0 12px 0 16px;
  border: 1.5px solid var(--social-stroke);
  border-radius: 15px;
  background: #fff;
  box-shadow: none;
  transition: border-color 180ms var(--social-ease);
}

.search-box:focus-within { border-color: var(--green); outline: 2px solid var(--green); outline-offset: -2px; }
/* The container supplies the input's focus ring; the clear button keeps its own. */
.search-box input:focus-visible { outline: none; }
.search-box .clear-search:focus-visible { outline-offset: -3px; }
.search-box input {
  order: 0;
  flex: 1 1 0;
  min-width: 0;
  min-height: 46px;
  padding: 10px 0;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
}

/* hydrateIcons removes data-icon, so order the surviving wrapper, not that attribute. */
.search-box > span:not(.sr-only), .search-box > svg {
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  color: #6b7659;
  pointer-events: none;
}

.search-box svg { width: 22px; height: 22px; color: inherit; }
.search-box .clear-search { order: 1; flex: 0 0 44px; border-radius: 10px; }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }

.community-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  min-width: 0;
}

.community-toolbar .tabs {
  flex: 1 1 0;
  min-width: 0;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
}

.community-toolbar .tab {
  position: relative;
  isolation: isolate;
  flex: 1 1 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

/* A 32px painted pill inside a 44px touch target. */
.community-toolbar .tab::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6px 0;
  border-radius: inherit;
  background: transparent;
  transition: background-color 180ms var(--social-ease);
}

.community-toolbar .tab.active { color: #fff; font-size: 14px; font-weight: 700; }
.community-toolbar .tab.active::before { background: #252723; }
.community-toolbar .tab.active::after { display: none; }

.message-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: transparent;
  color: #30362a;
  box-shadow: none;
}

.message-button svg { width: 25px; height: 25px; }
.message-dot {
  width: 8px;
  height: 8px;
  top: 5px;
  right: 4px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: var(--green);
}

#storage-state {
  min-height: 0;
  margin: 0;
  padding: 4px var(--social-gutter) 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

#plaza-tools #storage-state { padding-inline: 0; }
#storage-state.warning {
  margin: 4px var(--social-gutter) 10px;
  padding: 8px 12px;
  background: #fbf1df;
  color: #86591e;
  border-radius: 10px;
}

#plaza-tools #storage-state.warning { margin-inline: 0; padding-inline: 12px; }

/* One playful entry: copy on the left, a single decorative SVG on the right. */
.buddy-discovery { margin: 4px var(--social-gutter) 12px; }
.buddy-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(76px, 25vw, 112px);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 152px;
  padding: 16px;
  border: 1px solid #dce2c8;
  border-radius: 22px;
  background: #eef1df;
  color: var(--dark);
  text-align: left;
  white-space: normal;
  transition: background-color 200ms var(--social-ease),
    border-color 200ms var(--social-ease), transform 200ms var(--social-ease);
}

.buddy-entry-copy { order: 0; min-width: 0; overflow-wrap: anywhere; }
.buddy-eyebrow { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.buddy-entry-title { display: block; color: var(--dark); font-size: clamp(24px, 6.5vw, 28px); font-weight: 800; line-height: 1.2; letter-spacing: 0; }
.buddy-entry-subtitle { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.buddy-entry-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  min-height: 28px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.buddy-entry-cta svg { flex: 0 0 16px; width: 16px; height: 16px; transition: transform 200ms var(--social-ease); }
.buddy-entry-art { order: 1; display: block; width: 100%; min-width: 0; color: var(--dark); pointer-events: none; }
.buddy-entry-illustration { display: block; width: 100%; height: auto; aspect-ratio: 160 / 144; }
.buddy-entry:not(:disabled):active { background: #e2e9cf; border-color: var(--social-stroke); filter: none; transform: translateY(1px); }

/* Existing activities remain available when real records exist. */
@supports selector(:has(*)) {
  #activities-section:not(:has(.activity-card)) { display: none; }
}

.activities-section { padding-top: 0; }
.section-heading { padding-inline: var(--social-gutter); }
.section-heading .muted, .section-heading button { font-size: 12px; }
.activity-track {
  padding-inline: var(--social-gutter);
  scrollbar-width: thin;
  scrollbar-color: #a3ae90 #f1f2ed;
}
.activity-track::-webkit-scrollbar { display: block; height: 5px; }
.activity-card, .activity-card:nth-child(even) { background: var(--soft); border-color: #dce2cf; }
.activity-card { display: flex; flex-direction: column; flex-basis: min(272px, 82vw); padding: 0; }
.activity-link { display: block; flex: 1; padding: 12px 14px 8px; color: var(--text); }
.activity-link h3 { max-width: none; margin: 8px 0; font-size: 14px; }
.activity-card p { white-space: normal; overflow: visible; font-size: 12px; color: var(--muted); }
.activity-card .activity-account { margin-top: 4px; }
.activity-card .pill, .pill { font-size: 12px; }
.activity-source { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 8px 14px; border-top: 1px solid #dce2cf; color: var(--dark); font-size: 12px; text-align: left; }
.activity-source svg { width: 16px; height: 16px; }
.activity-link:hover, .activity-source:hover { background: #e7eddb; }
.activity-link:focus-visible, .activity-source:focus-visible { outline: 2px solid var(--dark); outline-offset: -3px; }
.activity-link:active, .activity-source:active { background: #dce5cc; }
.activity-track { scroll-padding-inline: var(--social-gutter); }

.feed-heading {
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 4px var(--social-gutter) 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.feed-heading .row { gap: 4px; }
.filter-description { padding: 4px var(--social-gutter) 8px; font-size: 12px; overflow-wrap: anywhere; }
.feed { gap: 16px; padding: 0 var(--social-gutter); }
.post {
  min-width: 0;
  padding: 18px 18px 6px;
  border: 1.5px solid var(--social-stroke);
  border-radius: 22px;
  background: #fff;
  box-shadow: none;
  transition: border-color 180ms var(--social-ease);
}

.post.flash { outline: 3px solid var(--green); outline-offset: 3px; }
.post-top { gap: 10px; align-items: center; }
.avatar { width: 44px; height: 44px; border: 1px solid #e4e8db; border-radius: 12px; background: #eeeadd; color: #716144; }
.avatar.sage { background: #e9eddf; color: #57693b; }
.avatar.rose { background: #f2e8e2; color: #865a48; }
.post-name { flex-wrap: wrap; gap: 2px 6px; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.post-meta { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.self-tag { font-size: 12px; color: var(--dark); }

.follow {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  min-width: 64px;
  min-height: 44px;
  gap: 3px;
  padding: 8px;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.follow::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 7px 0;
  border-radius: inherit;
  background: var(--green);
  transition: background-color 180ms var(--social-ease);
}

.follow.is-following { color: var(--dark); font-weight: 500; }
.follow.is-following::before { background: var(--soft); }
.follow svg { width: 13px; height: 13px; }
.post-tools { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.post-tools .follow { min-width: 56px; padding-inline: 6px; }
.post-dm { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 54px; min-height: 44px; padding: 6px; border: 1px solid #dce2cf; border-radius: 999px; font-size: 12px; color: var(--dark); white-space: nowrap; }
.post-dm svg { width: 14px; height: 14px; }
.post-content { margin: 16px 0 12px; font-size: 16px; line-height: 1.75; color: var(--text); }
.post-tags { flex-wrap: wrap; gap: 4px 10px; margin-bottom: 12px; }
.post-tag, .post-tag.warm { padding: 0; background: none; border-radius: 0; color: #60713e; font-size: 12px; line-height: 1.5; }
.post-image { min-height: 44px; border-radius: 12px; background: var(--soft); }
.post-image::after { font-size: 12px; letter-spacing: 0; }
.image-fallback { font-size: 12px; line-height: 1.5; color: var(--muted); background: var(--soft); }
.achievement { border-color: #d5ddc9; background: #f6f7f2; border-radius: 12px; }
.achievement-label { font-size: 12px; }

.buddy-box { margin: 12px 0; padding: 12px; background: #f5f6f0; border-radius: 12px; }
.buddy-title { align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--dark); }
.buddy-title svg { margin-top: 3px; }
.buddy-detail, .buddy-members { color: var(--muted); font-size: 12px; line-height: 1.5; }
.buddy-detail svg { width: 15px; height: 15px; }
.buddy-bottom { margin-top: 8px; flex-wrap: wrap; }
.buddy-members strong { font-size: 12px; color: var(--dark); }

.post-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-height: 52px;
  margin-top: 12px;
  padding: 4px 0;
  border-top: 1px solid var(--line);
}

.post-action {
  min-height: 44px;
  min-width: 44px;
  gap: 5px;
  padding: 6px 0;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.post-action svg { width: 20px; height: 20px; }
.post-action.liked { color: var(--dark); }
.post-action.liked svg { fill: #e5ebd8; }
.post-action.chat, .post-footer > :not(button):last-child {
  min-width: 0;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
  overflow-wrap: anywhere;
}

.join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
}

.post-footer > .join { margin-left: auto; }
.join svg { width: 18px; height: 18px; }
.join.joined { background: var(--soft); color: var(--dark); }
.feed-end { padding: 24px 16px; font-size: 12px; color: var(--muted); letter-spacing: 0; }

.empty { padding: 28px 20px; background: #fff; border-color: var(--social-stroke); color: var(--muted); }
.empty h3 { color: var(--text); line-height: 1.4; }
.empty p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.empty .empty-icon { width: 52px; height: 52px; border-radius: 16px; }
.empty-icon svg { color: var(--green); }

/* Quiet persistent navigation; no yellow message or publishing blocks. */
.bottom-nav {
  background: #fff;
  border-color: var(--line);
  border-radius: 0;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  backdrop-filter: none;
  box-shadow: none;
}

.nav-item { min-height: 52px; font-size: 12px; color: var(--muted); }
.nav-item .nav-icon { padding: 2px 14px; border-radius: 9px; }
.nav-item.active .nav-icon { color: var(--dark); background: var(--soft); }
.fab {
  right: max(20px, calc((100vw - 430px) / 2 + 20px));
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  width: 52px;
  height: 52px;
  border: 2px solid #fff;
  border-radius: 18px;
  background: var(--yellow);
  color: var(--dark);
  box-shadow: 0 4px 12px #38432524;
}

/* Shared sheets retain the existing script's native dialog and focus management. */
dialog {
  width: 100%;
  max-width: 430px;
  background: var(--cream);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 32px #2529221f;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-padding-block: 80px calc(24px + env(safe-area-inset-bottom, 0px));
}

dialog::backdrop { background: #25292266; backdrop-filter: none; }
.sheet-handle { width: 32px; height: 4px; margin: 8px auto 2px; background: #cbd2bf; }
.sheet-head { gap: 12px; padding: 4px 16px 8px; border-color: var(--line); background: var(--cream); }
.sheet-head h2 { min-width: 0; font-size: 18px; line-height: 1.3; letter-spacing: 0; overflow-wrap: anywhere; }
.sheet-head > button { flex: 0 0 44px; }
.sheet-body { padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
.sheet-feedback {
  flex-shrink: 0;
  min-width: 0;
  margin: 8px var(--social-gutter);
  padding: 10px 12px;
  border: 1px solid #dce2cf;
  border-radius: 10px;
  background: var(--soft);
  color: var(--dark);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.sheet-note, .field .hint, .counter, .comment-time, .end-note, .draft-image span { font-size: 12px; line-height: 1.5; }
.field { font-size: 14px; }
.field-title { gap: 8px; flex-wrap: wrap; }
.field input, .field textarea, .field select,
.field input[type="datetime-local"], .input-send textarea { min-width: 0; font-size: 16px; }
.input-send textarea { line-height: 1.7; }
.image-tools button, .message-tabs button { min-height: 44px; font-size: 12px; }
.comment-item p, .chat-bubble { font-size: 15px; line-height: 1.7; }
.chat-bubble small { font-size: 12px; }
.comment-item strong, .message-item strong { font-size: 14px; line-height: 1.5; }
.message-item { gap: 12px; min-height: 64px; border-color: var(--line); border-radius: 8px; }
.message-item p { font-size: 12px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.message-item > svg { width: 18px; height: 18px; color: var(--muted); }
.liked-post-excerpt { display: block; margin: 6px 0; color: var(--muted); font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-item[data-action="discovery-detail"] { align-items: flex-start; }
.message-item[data-action="discovery-detail"] > .avatar, .message-item[data-action="discovery-detail"] > svg { flex-shrink: 0; }
.people-heading { margin: 20px 0 4px; font-size: 15px; font-weight: 700; line-height: 1.4; }
.sheet-body .people-hint { margin: 0 0 8px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.empty-chat { font-size: 14px; color: var(--muted); }
.toast { background: #39472af5; font-size: 14px; line-height: 1.5; transition: opacity 150ms var(--social-ease); }

/* Discovery: JS owns active-card transforms; CSS lifts real previews with --deck-progress. */
dialog[data-kind="buddy-discovery"] {
  inset: 0;
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  margin: auto;
  padding: env(safe-area-inset-top, 0px) 0 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
  overflow: clip;
  overscroll-behavior: contain;
}

dialog[data-kind="buddy-discovery"][open] { display: flex; flex-direction: column; }
dialog[data-kind="buddy-discovery"] .sheet-handle { display: none; }
dialog[data-kind="buddy-discovery"] .sheet-head {
  position: static;
  z-index: 4;
  flex: 0 0 auto;
  justify-content: flex-start;
  gap: 8px;
  padding: 4px 12px;
  border: 0;
  background: #fff;
}
dialog[data-kind="buddy-discovery"] .sheet-head > button { order: -1; width: 44px; height: 44px; }
dialog[data-kind="buddy-discovery"] .sheet-head > button svg { transform: rotate(180deg); }
dialog[data-kind="buddy-discovery"] .sheet-head h2 { margin: 0; font-size: 17px; line-height: 1.3; }
dialog[data-kind="buddy-discovery"] .sheet-feedback { margin: 4px 12px; padding: 8px 12px; font-size: 12px; }
dialog[data-kind="buddy-discovery"] .sheet-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  overflow: clip;
}
.discovery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0 16px;
}
.discovery-count { min-width: 0; color: var(--muted); font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.discovery-toolbar button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 6px; min-width: 44px; min-height: 44px; padding: 8px; border-radius: 10px; font-size: 12px; color: var(--dark); }
.discovery-toolbar button svg { width: 17px; height: 17px; }

/* The deck never scrolls or grows with its article; only .discovery-content scrolls. */
.swipe-stage {
  position: relative;
  isolation: isolate;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  margin: 4px 12px 18px;
  padding: 0;
  overflow: visible;
}
.swipe-underlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1px solid #cbd3bd;
  border-radius: 16px;
  background: #e9eddf;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  transform-origin: 50% 100%;
  transform: translateY(calc(10px * (1 - var(--deck-progress, 0)))) scale(calc(.96 + .04 * var(--deck-progress, 0)));
  transition: transform 200ms var(--social-ease);
}
.swipe-underlay.is-next { z-index: 2; }
.swipe-underlay.is-far {
  transform: translateY(calc(18px - 8px * var(--deck-progress, 0))) scale(calc(.92 + .04 * var(--deck-progress, 0)));
}
.swipe-underlay > img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.swipe-underlay-label {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  padding: 24px 16px 16px;
  background: #e9eddf;
  color: var(--dark);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.swipe-underlay > img ~ .swipe-underlay-label { padding-top: 48px; background: linear-gradient(transparent, #172013d9 55%, #172013ed); color: #fff; }
.swipe-stage.is-advancing .swipe-underlay { --deck-progress: 1; }
.swipe-stage.is-advancing { pointer-events: none; }
.swipe-stage.is-dragging .swipe-underlay { transition: none; }
.swipe-card {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  border: 1px solid #cbd3bd;
  border-radius: 16px;
  background: var(--cream);
  overflow: hidden;
  overflow: clip;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  transform-origin: 50% 80%;
  transition: transform 200ms var(--social-ease), opacity 200ms var(--social-ease),
    border-color 200ms var(--social-ease);
}
.swipe-card:focus:not(:focus-visible) { outline: none; }
.swipe-card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.swipe-card.is-leaving { transition: transform 200ms var(--social-ease), opacity 200ms var(--social-ease); pointer-events: none; }
.swipe-card.is-dragging, .swipe-stage.is-dragging .swipe-card { transition: none; cursor: grabbing; user-select: none; }
.swipe-post-card { padding: 0; overflow-wrap: anywhere; }

/* A separate, non-interactive rail cannot cover scrolled text or keyboard focus. */
.swipe-card-rail { flex: 0 0 3px; height: 3px; margin: 8px 12px 5px; border-radius: 999px; background: #dce2cf; overflow: hidden; pointer-events: none; user-select: none; }
.swipe-card-rail > span { display: block; max-width: 100%; height: 100%; border-radius: inherit; background: var(--green); pointer-events: none; }
.discovery-content {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-padding-block: 16px;
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
  scrollbar-width: thin;
  scrollbar-color: #a3ae90 var(--cream);
}
.discovery-content::-webkit-scrollbar { width: 5px; }
.discovery-content::-webkit-scrollbar-track { background: var(--cream); }
.discovery-content::-webkit-scrollbar-thumb { background: #a3ae90; border-radius: 8px; }
.discovery-content::-webkit-scrollbar-thumb:hover { background: #7c895f; }
.swipe-post-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  min-height: 100%;
  background: #e9eddf;
}
.swipe-post-media { position: absolute; inset: 0; margin: 0; border-radius: 0; background: #e9eddf; }
.swipe-post-media > img { display: block; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border-radius: 0; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.swipe-post-header { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; margin-top: auto; padding: 20px; }
.swipe-post-header .avatar { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--cream); color: var(--dark); }
.swipe-post-header .grow { min-width: 0; }
.swipe-post-header h3 { margin: 0; color: var(--text); font-size: 18px; font-weight: 750; line-height: 1.4; overflow-wrap: anywhere; }
.swipe-post-header .post-meta { margin-top: 4px; font-size: 12px; line-height: 1.5; }
.swipe-post-hero.has-image .swipe-post-header { padding-top: 64px; background: linear-gradient(transparent, #172013d9 48px, #172013ed); }
.swipe-post-hero.has-image .swipe-post-header h3,
.swipe-post-hero.has-image .swipe-post-header .post-meta { color: #fff; }
.swipe-post-hero.is-text { min-height: 0; padding-top: 8px; background: #e9eddf; color: var(--dark); }
.swipe-text-art { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; padding: 16px 24px; text-align: center; }
.swipe-text-art svg { width: 40px; height: 40px; color: var(--green); stroke-width: 1.4; }
.swipe-text-art small { font-size: 12px; line-height: 1.5; color: var(--dark); }
.swipe-text-art strong { max-width: 100%; font-size: clamp(28px, 8vw, 36px); font-weight: 750; line-height: 1.3; letter-spacing: .03em; overflow-wrap: anywhere; }
.swipe-post-hero.is-text .swipe-post-header { border-top: 1px solid #d4dcc6; }
.swipe-post-hero.is-text .swipe-post-header h3 { color: var(--dark); }
.swipe-post-copy { min-width: 0; padding: 20px 20px 24px; background: var(--cream); }
.swipe-post-card .post-content { display: block; height: auto; max-height: none; margin: 0 0 16px; overflow: visible; -webkit-line-clamp: unset; font-size: 16px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.swipe-post-card .post-tags { flex-wrap: wrap; gap: 4px 10px; }
.swipe-post-card .post-tag { min-width: 0; overflow-wrap: anywhere; }
.swipe-post-card .achievement { margin: 16px 0; }
.swipe-post-card .achievement img { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: auto; border-radius: 12px; object-fit: contain; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.swipe-post-card .achievement-label { color: var(--muted); }
.swipe-post-card .buddy-box { margin: 16px 0; border: 1px solid var(--line); }
.swipe-post-card .buddy-title, .swipe-post-card .buddy-detail { min-width: 0; overflow-wrap: anywhere; }
.swipe-post-card .buddy-members { flex-wrap: wrap; gap: 4px; }
.swipe-post-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.swipe-post-stats > span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.swipe-post-stats svg { width: 16px; height: 16px; }
.swipe-post-stats .secondary { min-width: 44px; min-height: 44px; max-width: 100%; margin-left: auto; padding: 8px 12px; border: 1px solid var(--line); font-size: 12px; overflow-wrap: anywhere; }
.sheet-body .discovery-note { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }

.swipe-feedback {
  position: absolute;
  z-index: 4;
  top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(50% - 20px);
  padding: 8px 10px;
  border: 2px solid currentColor;
  border-radius: 10px;
  background: var(--cream);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
}
.swipe-feedback svg { width: 22px; height: 22px; }
.swipe-feedback.like { right: 12px; left: auto; color: var(--dark); opacity: var(--swipe-like, 0); }
.swipe-feedback.skip { left: 12px; right: auto; color: #705e50; background: #fff8e6; opacity: var(--swipe-skip, 0); }

/* Controls occupy their own row: no button overlaps scrollable copy or its focus ring. */
.discovery-controls {
  flex: 0 0 auto;
  min-width: 0;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
  border: 0;
  background: #fff;
}
.swipe-actions { display: grid; grid-template-columns: 72px 52px 72px; align-items: center; justify-content: center; gap: 24px; margin: 0; }
.swipe-actions button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 72px;
  height: 72px;
  min-width: 44px;
  min-height: 44px;
  padding: 6px;
  border: 1px solid var(--social-stroke);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  box-shadow: 0 3px 10px #38432512;
  transition: background-color 180ms var(--social-ease), border-color 180ms var(--social-ease),
    color 180ms var(--social-ease), transform 180ms var(--social-ease);
}
.swipe-actions button:not(:disabled):active { transform: scale(.96); }
.swipe-actions button:disabled { box-shadow: none; }
.swipe-actions button > span { display: flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1.5; }
.swipe-actions .swipe-pass { background: var(--cream); color: #606b54; }
.swipe-actions .swipe-undo { width: 52px; height: 52px; padding: 4px 2px; color: var(--dark); background: var(--yellow); border-color: #a18c51; box-shadow: none; }
.swipe-actions .swipe-like { background: var(--green); color: #fff; border-color: var(--green); }
.swipe-actions svg { width: 26px; height: 26px; }
.swipe-actions .swipe-undo svg { width: 18px; height: 18px; }
.sheet-body .swipe-hint { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }

/* Hover is only painted for devices with an actual hover-capable pointer. */
@media (hover: hover) and (pointer: fine) {
  .search-box:hover, input:not([aria-invalid="true"]):hover,
  textarea:not([aria-invalid="true"]):hover, select:not([aria-invalid="true"]):hover { border-color: var(--green); }
  .community-toolbar .tab:not(.active):hover::before { background: #e9edde; }
  .message-button:hover, .post-action:hover, .discovery-toolbar button:hover, .message-item:hover { background: var(--soft); }
  .buddy-entry:hover:not(:disabled):not(:active) { background: #e7edd5; border-color: var(--social-stroke); }
  .buddy-entry:hover:not(:disabled) .buddy-entry-cta svg { transform: translateX(2px); }
  .swipe-post-card:hover:not(.is-dragging):not(.is-leaving) { border-color: var(--green); }
  .post:hover { border-color: #738157; }
  .follow:not(.is-following):hover::before { background: #526033; }
  .follow.is-following:hover::before { background: #e2e8d6; }
  .primary:not(.danger):hover, .join:not(.joined):hover:not(:disabled), .swipe-actions .swipe-like:hover:not(:disabled) { background: #526033; }
  .fab:hover:not(:disabled) { background: #f5dda0; color: var(--dark); }
  .secondary:hover, .join.joined:hover, .swipe-actions .swipe-pass:hover, .swipe-actions .swipe-undo:hover:not(:disabled) { background: #e7ecde; }
  .post-image:hover { outline: 2px solid var(--social-stroke); outline-offset: 2px; }
}

@media (max-width: 359px) {
  :root { --social-gutter: 16px; }
  .app-header { padding: 0; }
  .community-toolbar { gap: 4px; }
  .community-toolbar .tabs { gap: 2px; }
  .community-toolbar .tab, .community-toolbar .tab.active { padding-inline: 6px; font-size: 13px; }
  .buddy-entry { grid-template-columns: minmax(0, 1fr) 76px; min-height: 148px; padding: 12px; }
  .buddy-entry-title { font-size: 24px; }
  .buddy-entry-cta { padding-inline: 8px; }
  .post { padding: 16px 14px 6px; }
  .post-top { gap: 8px; }
  .post-name { font-size: 14px; }
  .post-meta { font-size: 12px; }
  .follow { min-width: 60px; padding-inline: 6px; }
  .post-footer { column-gap: 8px; }
  .join { padding-inline: 10px; }
  .sheet-body { padding-inline: 16px; }
  .discovery-toolbar { padding-inline: 12px; }
  .swipe-stage { margin-inline: 8px; }
  .swipe-post-header { gap: 8px; padding-inline: 16px; }
  .swipe-post-copy { padding-inline: 16px; }
  .swipe-feedback { gap: 4px; padding: 8px; font-size: 16px; }
  .swipe-feedback svg { width: 18px; height: 18px; }
  .swipe-actions { gap: 20px; grid-template-columns: 64px 48px 64px; }
  .swipe-actions button { width: 64px; height: 64px; }
  .swipe-actions .swipe-undo { width: 48px; height: 48px; }
}

@media (min-width: 760px) {
  body { background: #f1f2ed; }
  .app { box-shadow: 0 0 0 1px #e0e5d6; }
  .app-header { padding: 0; }
  dialog { bottom: 16px; max-height: calc(100dvh - 32px); border-radius: 22px; }
  dialog[data-kind="buddy-discovery"] {
    inset: 16px 0;
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    border-radius: 20px;
    box-shadow: 0 8px 32px #2529221f;
  }
  .desktop-note { color: var(--muted); }
  .desktop-note p, .desktop-note ol, .desktop-note footer,
  .desktop-note .brand-en, .desktop-note .demo-pill { color: var(--muted); font-size: 12px; }
  .desktop-note h2 { color: var(--dark); line-height: 1.4; }
}

/* Short landscape viewports keep every action visible without scrolling the sheet. */
@media (max-height: 500px) {
  dialog[data-kind="buddy-discovery"] {
    inset: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
  dialog[data-kind="buddy-discovery"] .sheet-head { padding-block: 0; }
  dialog[data-kind="buddy-discovery"] .sheet-head h2 { font-size: 16px; }
  dialog[data-kind="buddy-discovery"] .sheet-feedback { margin-block: 2px; padding: 4px 8px; }
  .discovery-toolbar { padding-inline: 12px; }
  .swipe-stage { margin-top: 2px; }
  .swipe-post-hero.is-text { padding-top: 0; }
  .swipe-text-art { flex-direction: row; justify-content: flex-start; gap: 8px; padding: 12px 16px; }
  .swipe-text-art svg { width: 32px; height: 32px; margin: 0; }
  .swipe-text-art small { display: none; }
  .swipe-text-art strong { font-size: 24px; }
  .swipe-post-header { padding: 12px 16px; }
  .swipe-post-hero.has-image .swipe-post-header { padding-top: 48px; }
  .discovery-controls { padding: 4px 12px calc(4px + env(safe-area-inset-bottom, 0px)); }
  .swipe-actions { grid-template-columns: 64px 48px 64px; gap: 20px; }
  .swipe-actions button { width: 64px; height: 64px; }
  .swipe-actions .swipe-undo { width: 48px; height: 48px; }
  .sheet-body .swipe-hint { margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .activity-track { scroll-snap-type: none; }
  button, a, input, textarea, select, .search-box, .post, .buddy-entry,
  .community-toolbar .tab::before, .follow::before,
  .swipe-card, .swipe-card.is-leaving, .swipe-card.is-dragging,
  .swipe-underlay, .swipe-actions button,
  .swipe-feedback, .buddy-entry-cta svg, .toast { transition: none; animation: none; }
  .swipe-underlay { transform: translateY(10px) scale(.96); }
  .swipe-underlay.is-far { transform: translateY(18px) scale(.92); }
  .swipe-actions button:not(:disabled):active { transform: none; }
  .discovery-content { scroll-behavior: auto; }
  .buddy-entry:not(:disabled):active,
  .buddy-entry:hover:not(:disabled) .buddy-entry-cta svg { transform: none; }
}

/* ---- 功能需求说明文档弹层 ---- */
.docs-open {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 16px; padding: 11px 15px; min-height: 44px;
  border: 1.5px solid #b9c7a4; border-radius: 15px; background: #fffdf4;
  color: var(--dark); font-weight: 700; font-size: 13px; letter-spacing: .5px;
  transition: background 150ms var(--social-ease), border-color 150ms var(--social-ease), transform 150ms var(--social-ease);
}
.docs-open:hover { background: var(--soft); border-color: var(--green); transform: translateY(-1px); }
.docs-open svg { width: 16px; height: 16px; }
.docs-open-sub { flex-basis: 100%; font-size: 10px; font-weight: 500; color: #7f8b76; letter-spacing: .4px; }
.docs-link {
  display: flex; width: max-content; align-items: center; gap: 6px;
  margin: 12px auto 0; padding: 8px 16px; min-height: 44px;
  border: 1px dashed #c4cdb2; border-radius: 16px; background: transparent;
  color: #77836b; font-size: 12px; letter-spacing: .5px;
  transition: background 150ms var(--social-ease), color 150ms var(--social-ease), border-color 150ms var(--social-ease);
}
.docs-link:hover { background: #fff; color: var(--dark); border-color: var(--green); }
.docs-link svg { width: 14px; height: 14px; }

#docs-dialog {
  max-width: 430px; height: 92dvh; max-height: 92dvh;
  overflow: hidden; border-radius: 24px 24px 0 0;
}
#docs-dialog[open] { display: flex; flex-direction: column; }
.docs-head {
  flex: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 18px 18px 13px; border-bottom: 1px solid var(--line);
  background: linear-gradient(140deg, #fffdf4 0%, #f3f6e8 100%);
}
.docs-eyebrow { font-size: 9px; letter-spacing: 2px; color: #8a9678; font-weight: 700; }
.docs-head h2 { font-size: 21px; color: var(--dark); letter-spacing: 1px; margin: 3px 0 2px; line-height: 1.3; }
.docs-head p { font-size: 11px; color: var(--muted); line-height: 1.5; }
.docs-close { flex: 0 0 44px; }
.docs-layout { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.docs-nav {
  flex: none; display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f7f5ea;
  scrollbar-width: thin; scrollbar-color: #a3ae90 #f1f2ed;
}
.docs-nav-title { display: none; }
.docs-nav a {
  flex: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 8px 12px; min-height: 36px; border-radius: 16px;
  border: 1px solid #e3e6d6; background: #fff; color: #6b7663;
  font-size: 12px; text-decoration: none;
  transition: background 150ms var(--social-ease), color 150ms var(--social-ease), border-color 150ms var(--social-ease);
}
.docs-nav a span { font-size: 10px; font-weight: 700; color: #a3ae90; }
.docs-nav a:hover { border-color: var(--green); color: var(--dark); }
.docs-nav a.active { background: var(--dark); border-color: var(--dark); color: #fff; }
.docs-nav a.active span { color: #cbd8b8; }
.docs-content {
  flex: 1; min-height: 0; overflow-y: auto; position: relative;
  padding: 16px 18px calc(28px + env(safe-area-inset-bottom, 0px));
  overscroll-behavior: contain; outline: none;
}
.docs-content:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.docs-intro {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; margin-bottom: 16px; font-size: 12.5px; line-height: 1.8; color: var(--muted);
}
.docs-intro strong { color: var(--dark); }
.docs-intro-tip { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 11.5px; }
.doc-section {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 16px 14px; margin-bottom: 14px;
  box-shadow: 0 3px 0 rgba(66, 86, 52, .03); scroll-margin-top: 14px;
}
.doc-section > header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.doc-num {
  flex: none; font-size: 11px; font-weight: 800; letter-spacing: .5px;
  color: #8a7a3f; background: var(--yellow); border-radius: 9px; padding: 4px 7px;
}
.doc-section h3 { flex: 1; min-width: 0; font-size: 16px; color: var(--dark); letter-spacing: .3px; line-height: 1.4; }
.doc-tag {
  flex: none; font-size: 9px; font-weight: 800; letter-spacing: 1px;
  color: #4c7a45; background: #e7f0dc; border: 1px solid #cfe0bc; padding: 3px 7px; border-radius: 10px;
}
.doc-summary { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin-bottom: 10px; }
.doc-entry {
  font-size: 12px; line-height: 1.7; background: #f7f8ee; border-radius: 10px;
  padding: 8px 10px; color: #55614e; margin-bottom: 12px;
}
.doc-entry strong, .doc-edge > strong {
  display: inline-block; margin-right: 8px; padding: 1px 6px; border-radius: 6px;
  font-size: 10px; letter-spacing: 1px; color: #77836b; background: #eaeedd;
}
.doc-section h4 { font-size: 12px; letter-spacing: 1.5px; color: #77836b; font-weight: 800; margin: 0 0 8px; }
.doc-section h4::before { content: ""; display: inline-block; width: 4px; height: 12px; border-radius: 3px; background: var(--green); margin-right: 7px; vertical-align: -1px; }
.doc-steps { margin: 0 0 12px; padding-left: 0; list-style: none; counter-reset: doc-step; }
.doc-steps li {
  counter-increment: doc-step; position: relative; padding: 0 0 8px 27px;
  font-size: 13px; line-height: 1.75; color: var(--text);
}
.doc-steps li::before {
  content: counter(doc-step); position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: #eff4e8; border: 1px solid #dce5cc; color: #5f7a52; font-size: 10px; font-weight: 800;
}
.doc-steps li strong { color: var(--dark); }
.doc-edge { border-top: 1px dashed var(--line); padding-top: 10px; margin-bottom: 12px; font-size: 12px; }
.doc-edge > strong { color: #8a6d3b; background: #fbf0d8; }
.doc-edge ul { margin: 6px 0 0; padding-left: 16px; color: var(--muted); line-height: 1.7; }
.doc-edge li { margin-bottom: 2px; }
.doc-demo {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  padding: 10px 16px; border-radius: 14px; background: var(--dark); color: #fff9e8;
  font-size: 12.5px; font-weight: 700; letter-spacing: .5px;
  transition: background 150ms var(--social-ease), transform 150ms var(--social-ease);
}
.doc-demo:hover { background: #2c4a33; transform: translateY(-1px); }
.doc-demo:active { transform: translateY(0); }
.doc-demo svg { width: 14px; height: 14px; }
.doc-section code, .docs-intro code {
  font-family: ui-monospace, Consolas, monospace; font-size: .92em;
  background: #f1f3e6; border: 1px solid #e2e6d2; padding: 1px 5px; border-radius: 6px;
  color: #4f6b3f; overflow-wrap: anywhere;
}
.docs-foot { margin-top: 6px; padding: 14px 4px 0; border-top: 1px solid var(--line); font-size: 11px; color: #939d85; line-height: 1.8; }
.docs-foot p + p { margin-top: 6px; font-size: 10px; letter-spacing: 1px; }

@media (min-width: 760px) {
  #docs-dialog {
    max-width: 960px; width: min(960px, calc(100vw - 48px));
    top: 0; bottom: 0; margin: auto;
    height: min(88dvh, 840px); max-height: min(88dvh, 840px); border-radius: 26px;
  }
  .docs-head { padding: 22px 26px 16px; }
  .docs-head h2 { font-size: 24px; }
  .docs-layout { display: grid; grid-template-columns: 216px minmax(0, 1fr); }
  .docs-nav {
    flex-direction: column; gap: 3px; overflow-x: hidden; overflow-y: auto;
    padding: 16px 12px; border-right: 1px solid var(--line); border-bottom: 0;
  }
  .docs-nav-title { display: block; font-size: 10px; letter-spacing: 2px; color: #96a184; font-weight: 800; margin: 0 0 8px 8px; }
  .docs-nav a { border-radius: 11px; padding: 8px 10px; min-height: 36px; font-size: 12.5px; border-color: transparent; background: transparent; }
  .docs-nav a:hover { background: #eef1e0; border-color: transparent; }
  .docs-nav a.active { background: var(--dark); }
  .docs-content { padding: 22px 26px 30px; }
  .doc-section { padding: 20px 22px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .docs-open, .docs-link, .docs-nav a, .doc-demo { transition: none; }
  .docs-open:hover, .doc-demo:hover { transform: none; }
}
