:root {
  --brand: #126052;
  --brand-dark: #0b4038;
  --brand-soft: #e9f4f0;
  --accent: #ee7b50;
  --accent-soft: #fff0e9;
  --ink: #172723;
  --muted: #63736e;
  --line: #dce6e2;
  --paper: #ffffff;
  --canvas: #f4f7f6;
  --shadow: 0 16px 38px rgba(12, 55, 47, .09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(238, 123, 80, .35); outline-offset: 2px; }
[hidden] { display: none !important; }

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

.topbar {
  height: 72px;
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(220, 230, 226, .9);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  width: min(1240px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  min-width: 154px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  background: var(--brand-dark);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
}

.brand-copy { min-width: 0; }
.brand strong, .brand small { display: block; white-space: nowrap; }
.brand strong { font-size: 18px; line-height: 1.15; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.desktop-nav {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.desktop-nav button {
  min-width: 64px;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 3px 14px 0;
  background: transparent;
  color: #40524d;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.desktop-nav button:hover,
.desktop-nav button.active {
  border-bottom-color: var(--brand);
  color: var(--brand-dark);
}

.topbar-actions {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-state {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.sync-state i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #9ca9a5;
}

.sync-state.ready i { background: #28a777; }
.sync-state.loading i { background: #e7a541; animation: pulse 1s infinite; }
.sync-state.error i { background: #d45b4b; }
.sync-state.warn i { background: #e7a541; }

.share-page, .publish-link, .mini-link,
.status-panel button, .empty button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.publish-link, .mini-link, .status-panel button, .empty button {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.hero {
  height: min(520px, calc(100vh - 150px));
  min-height: 440px;
  position: relative;
  overflow: hidden;
  background: var(--brand-dark);
}

.hero-media {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: var(--brand-dark);
  color: #fff;
  text-align: left;
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: .64;
  transform: scale(1.002);
  transition: transform .7s ease, opacity .3s ease;
}

.hero:hover .hero-media img { transform: scale(1.025); }

.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(5, 35, 30, .62);
}

.hero-main {
  width: min(1240px, calc(100% - 40px));
  height: 100%;
  position: relative;
  z-index: 2;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: #c8e7df;
  font-size: 13px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: 64px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 18px 0 25px;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.search-row {
  width: min(650px, 100%);
  height: 56px;
  padding: 5px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px;
  gap: 5px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
}

.search-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0 16px;
  background: transparent;
  color: var(--ink);
  outline: 0;
}

.search-row button {
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.hero-foot {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
}

.hero-media-copy {
  max-width: min(340px, 35vw);
  position: absolute;
  z-index: 2;
  right: max(20px, calc((100vw - 1240px) / 2));
  bottom: 34px;
  border-left: 3px solid var(--accent);
  padding: 10px 0 10px 14px;
  text-align: left;
}

.hero-media-copy small, .hero-media-copy strong { display: block; overflow-wrap: anywhere; }
.hero-media-copy small { color: #c8e7df; font-size: 11px; }
.hero-media-copy strong { margin-top: 5px; font-size: 17px; line-height: 1.4; }

.portal-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 70px;
}

.category-nav {
  min-height: 114px;
  margin-top: -34px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  box-shadow: var(--shadow);
}

.category-nav button {
  min-width: 0;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.category-nav button:first-child { border-left: 0; }
.category-nav button:hover { background: var(--brand-soft); }
.category-nav button > span:last-child { min-width: 0; }
.category-nav strong, .category-nav small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-nav strong { font-size: 15px; }
.category-nav small { margin-top: 6px; color: var(--muted); font-size: 10px; }

.category-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 16px;
  font-weight: 900;
}

.status-panel {
  margin-top: 18px;
  border-left: 4px solid var(--accent);
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff7f2;
}

.status-panel div { min-width: 0; }
.status-panel strong, .status-panel p { display: block; overflow-wrap: anywhere; }
.status-panel p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

.banner-strip {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.about-panel {
  margin-top: 26px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 34px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(12, 55, 47, .05);
}

.about-copy { min-width: 0; }
.about-copy h2 { max-width: 560px; margin: 0; font-size: 25px; line-height: 1.35; }
.about-copy p:last-child { max-width: 620px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

.about-points {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.about-points article {
  min-width: 0;
  min-height: 100px;
  padding: 16px 13px;
  background: var(--brand-soft);
}

.about-points strong, .about-points span { display: block; overflow-wrap: anywhere; }
.about-points strong { color: var(--brand-dark); font-size: 14px; }
.about-points span { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.banner-card {
  min-width: 0;
  height: 150px;
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: var(--brand-dark);
  color: #fff;
  text-align: left;
}

.banner-card img { width: 100%; height: 100%; display: block; object-fit: cover; opacity: .55; transition: transform .35s ease; }
.banner-card:hover img { transform: scale(1.04); }
.banner-card.no-image { background: #174f46; }
.banner-card.no-image.tone-2 { background: #8d4f37; }
.banner-card.no-image.tone-3 { background: #37433f; }
.banner-card.no-image::before { content: "深宅"; position: absolute; right: 16px; top: 13px; color: rgba(255,255,255,.13); font-size: 42px; font-weight: 900; }
.banner-card > span { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; }
.banner-card small, .banner-card b, .banner-card em { display: block; overflow: hidden; text-overflow: ellipsis; }
.banner-card small { color: #bfe2d9; font-size: 10px; }
.banner-card b { margin-top: 4px; font-size: 16px; line-height: 1.4; white-space: nowrap; }
.banner-card em { margin-top: 4px; color: rgba(255,255,255,.72); font-size: 11px; font-style: normal; white-space: nowrap; }

.portal-layout {
  margin-top: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  align-items: start;
  gap: 34px;
}

.content-column, .side-column { min-width: 0; }
.side-column { display: grid; gap: 14px; }

.content-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.content-head > div { min-width: 0; }
.section-kicker { margin: 0 0 5px; color: var(--brand); font-size: 10px; font-weight: 800; }
.content-head h2 { margin: 0; font-size: 28px; line-height: 1.25; }
.section-subtitle { margin: 7px 0 0; color: var(--muted); font-size: 12px; }

.refresh-button {
  min-height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px 12px;
  background: #fff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.tabs {
  margin-top: 20px;
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  height: 42px;
  flex: 0 0 auto;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 0 17px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.tabs button.active { border-bottom-color: var(--brand); color: var(--brand-dark); }

.feed { margin-top: 8px; }

.feed-card {
  min-width: 0;
  min-height: 206px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.feed-card:hover, .feed-card:focus-visible { background: #fff; transform: translateX(3px); outline: 0; }

.feed-photos {
  width: 250px;
  height: 166px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px;
  overflow: hidden;
  background: #e6efec;
}

.feed-photos img { width: 100%; height: 100%; min-width: 0; display: block; object-fit: cover; }
.feed-photos.count-1 img, .feed-photos.placeholder img { grid-column: 1 / -1; grid-row: 1 / -1; }
.feed-photos.count-2 img { grid-row: 1 / -1; }
.feed-photos.count-3 img:first-child { grid-row: 1 / -1; }

.feed-body { min-width: 0; display: flex; flex-direction: column; }
.feed-meta { min-width: 0; min-height: 23px; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.feed-meta time { min-width: 0; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.type-pill, .flag {
  min-height: 22px;
  flex: 0 0 auto;
  border-radius: 4px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
.flag.top { background: #fff2cf; color: #805d16; }
.flag.urgent { background: var(--accent-soft); color: #a8492c; }
.flag.freshness.fresh, .flag.freshness.recent { background: #eaf4f1; color: #176159; }
.flag.freshness.stale { background: #fff3d6; color: #805d16; }
.flag.freshness.closed { background: #edf1f4; color: #697381; }

.feed-body h3 {
  margin: 10px 0 7px;
  font-size: 19px;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.feed-body > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.feed-details { min-height: 28px; margin-top: 9px; display: flex; gap: 6px; overflow: hidden; }
.feed-details span { max-width: 45%; flex: 0 1 auto; overflow: hidden; padding: 5px 7px; background: #eaf0ee; color: #4e625d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.feed-foot { min-width: 0; margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; }
.feed-foot span { min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.feed-foot b { flex: 0 0 auto; color: var(--brand); }

.side-column > section {
  border-top: 3px solid var(--brand-dark);
  padding: 18px;
  background: #fff;
}

.side-heading { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.side-heading > span { font-size: 15px; font-weight: 900; }
.side-heading button, .side-heading small { border: 0; padding: 0; background: transparent; color: var(--brand); font-size: 10px; font-weight: 800; }

.notice-bar > strong { display: block; margin-top: 20px; font-size: 17px; overflow-wrap: anywhere; }
.notice-bar > p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }

.stats-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stats-grid button { min-width: 0; min-height: 82px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 8px; background: #fff; color: var(--ink); text-align: center; }
.stats-grid button:hover { background: var(--brand-soft); }
.stats-grid strong, .stats-grid span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-grid strong { color: var(--brand-dark); font-size: 24px; }
.stats-grid span { margin-top: 6px; color: var(--muted); font-size: 10px; }

.tool-strip { padding: 4px 18px !important; }
.tool-strip button { width: 100%; min-width: 0; border: 0; border-top: 1px solid var(--line); padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; color: var(--ink); text-align: left; }
.tool-strip button:first-child { border-top: 0; }
.tool-strip button > span { min-width: 0; }
.tool-strip strong, .tool-strip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-strip strong { font-size: 13px; }
.tool-strip small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.tool-strip b { flex: 0 0 auto; color: var(--brand); font-size: 11px; }

.merchant-grid { margin-top: 12px; display: grid; gap: 10px; }
.merchant-card { width: 100%; min-width: 0; border: 0; padding: 0; display: grid; grid-template-columns: 66px minmax(0, 1fr); align-items: center; gap: 11px; background: #fff; color: var(--ink); text-align: left; }
.merchant-card img { width: 66px; height: 66px; display: block; object-fit: cover; }
.merchant-card > span { min-width: 0; }
.merchant-card small, .merchant-card strong, .merchant-card em { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.merchant-card small { color: var(--brand); font-size: 9px; font-weight: 800; }
.merchant-card strong { margin-top: 4px; font-size: 13px; }
.merchant-card em { margin-top: 4px; color: var(--muted); font-size: 9px; font-style: normal; }

.publish-panel { border-top-color: var(--accent) !important; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
.publish-panel-mark { width: 44px; height: 44px; display: grid; place-items: center; background: var(--brand-dark); color: #fff; font-weight: 900; }
.publish-panel > div { min-width: 0; }
.publish-panel strong { font-size: 14px; }
.publish-panel p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.publish-panel button { min-height: 38px; grid-column: 1 / -1; border: 0; background: var(--accent); color: #fff; font-size: 12px; font-weight: 900; }

.empty { margin-top: 18px; border: 1px dashed #c6d5d0; padding: 48px 20px; background: #fff; text-align: center; }
.empty strong { font-size: 17px; }
.empty p { margin: 8px 0 18px; color: var(--muted); font-size: 12px; }

.skeleton { cursor: default; }
.skeleton-photo, .skeleton i { display: block; background: linear-gradient(90deg, #e8efed 25%, #f7f9f8 50%, #e8efed 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton-photo { width: 250px; height: 166px; }
.skeleton i { height: 12px; margin: 10px 0; border-radius: 2px; }
.skeleton i:nth-child(2) { width: 80%; }
.skeleton i:nth-child(3) { width: 56%; }

.footer { border-top: 1px solid var(--line); background: #e9efed; }
.footer-inner { width: min(1240px, calc(100% - 40px)); min-height: 150px; margin: 0 auto; padding: 34px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 30px; }
.footer strong { font-size: 20px; }
.footer p { max-width: 700px; margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; }
.footer-links button { border: 0; padding: 4px 0; background: transparent; color: var(--brand); font-size: 11px; }
.footer-record { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px 16px; color: #8b9995; font-size: 10px; line-height: 1.6; }
.footer-record #siteRecordText { color: #536660; font-size: 12px; overflow-wrap: anywhere; }
.footer-record a { color: #176159; text-decoration: underline; text-underline-offset: 3px; }
.footer-record a:hover, .footer-record a:focus-visible { color: #103f3b; }
.footer small { grid-column: 1 / -1; color: #8b9995; font-size: 9px; }

.detail-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: min(88vh, 900px);
  margin: auto;
  overflow: auto;
  border: 0;
  border-radius: 7px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(7, 34, 29, .32);
}
.detail-dialog::backdrop { background: rgba(7, 28, 24, .68); backdrop-filter: blur(3px); }
.dialog-close { width: 36px; height: 36px; position: sticky; z-index: 3; top: 0; float: right; border: 1px solid var(--line); border-radius: 50%; padding: 0; display: grid; place-items: center; background: rgba(255,255,255,.96); color: var(--ink); font-size: 22px; line-height: 1; }
.detail-head { min-height: 28px; padding: 0 44px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 11px; }
.detail-dialog h2 { margin: 14px 44px 8px; font-size: 29px; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }
.detail-address { margin: 0 0 18px; color: var(--muted); font-size: 12px; text-align: center; }
.detail-photos { margin: 18px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.detail-photos img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; }
.detail-photos.single { grid-template-columns: 1fr; }
.detail-copy { margin-top: 18px; color: #384844; font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.detail-list { margin: 22px 0 0; border-top: 1px solid var(--line); }
.detail-list > div { min-width: 0; border-bottom: 1px solid var(--line); padding: 13px 0; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 14px; }
.detail-list dt, .detail-list dd { margin: 0; overflow-wrap: anywhere; }
.detail-list dt { color: var(--muted); font-size: 12px; }
.detail-list dd { font-size: 13px; font-weight: 700; }
.safety-note { margin-top: 22px; border-left: 3px solid var(--accent); padding: 14px 16px; background: #fff5f0; }
.safety-note p { margin: 6px 0 0; color: #745548; font-size: 12px; line-height: 1.7; }
.detail-actions { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.detail-actions button { min-width: 0; min-height: 44px; border: 0; border-radius: 5px; padding: 10px 14px; background: var(--brand); color: #fff; font-weight: 900; text-align: center; }
.detail-actions .secondary { border: 1px solid var(--line); background: #fff; color: var(--brand-dark); }
.mini-guide { margin-top: 18px; border: 1px solid var(--line); padding: 18px; display: flex; align-items: center; gap: 14px; background: #f7faf9; }
.mini-guide-mark { width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center; background: var(--brand-dark); color: #fff; font-size: 22px; font-weight: 900; }
.mini-guide > div { min-width: 0; }
.mini-guide strong, .mini-guide p { display: block; overflow-wrap: anywhere; }
.mini-guide p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.mini-appid { margin-top: 16px; padding: 10px 12px; background: var(--brand-soft); color: var(--brand-dark); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.mobile-dock { display: none; }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1080px) {
  .desktop-nav button { padding-inline: 9px; }
  .portal-layout { grid-template-columns: minmax(0, 1fr) 286px; gap: 24px; }
  .category-nav button { padding-inline: 14px; }
  .category-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .feed-card { grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
  .feed-photos, .skeleton-photo { width: 220px; }
}

@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .hero { height: 470px; min-height: 430px; }
  .category-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-nav button:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .category-nav button:nth-child(4) { border-top: 1px solid var(--line); }
  .portal-layout { grid-template-columns: 1fr; }
  .side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-column > section { min-width: 0; }
  .merchant-section, .publish-panel { align-self: stretch; }
}

@media (max-width: 680px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .topbar { height: 62px; }
  .topbar-inner, .hero-main, .portal-shell, .footer-inner { width: calc(100% - 28px); }
  .brand { min-width: 0; }
  .brand-copy small, .sync-state > span, .mini-link { display: none !important; }
  .topbar-actions { gap: 6px; }
  .share-page, .publish-link { min-height: 34px; padding: 7px 9px; font-size: 11px; }
  .hero { height: 410px; min-height: 410px; }
  .hero-main { justify-content: center; padding-bottom: 10px; }
  .eyebrow { margin-bottom: 10px; font-size: 11px; }
  h1 { font-size: 48px; }
  .hero-copy { margin: 13px 0 20px; font-size: 14px; line-height: 1.55; }
  .search-row { height: 50px; grid-template-columns: minmax(0, 1fr) 74px; }
  .search-row input { padding-inline: 10px; font-size: 12px; }
  .search-row button { font-size: 12px; }
  .hero-foot { margin-top: 14px; gap: 8px 16px; font-size: 9px; }
  .hero-media-copy { max-width: 180px; right: 14px; bottom: 18px; padding-block: 5px; }
  .hero-media-copy strong { font-size: 11px; }
  .category-nav { min-height: 0; margin-top: -18px; }
  .category-nav button { min-height: 82px; padding: 13px 10px; gap: 9px; }
  .category-mark { width: 32px; height: 32px; flex-basis: 32px; font-size: 13px; }
  .category-nav strong { font-size: 12px; }
  .category-nav small { font-size: 8px; }
  .status-panel { align-items: flex-start; flex-direction: column; }
  .banner-strip { grid-template-columns: 1fr; gap: 8px; }
  .banner-card { height: 122px; }
  .about-panel { grid-template-columns: 1fr; gap: 20px; padding: 22px 18px; }
  .about-copy h2 { font-size: 21px; }
  .about-copy p:last-child { font-size: 12px; }
  .about-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .about-points article { min-height: 88px; padding: 12px 9px; }
  .about-points strong { font-size: 12px; }
  .about-points span { font-size: 9px; }
  .portal-layout { margin-top: 32px; gap: 30px; }
  .content-head h2 { font-size: 23px; }
  .section-subtitle { font-size: 10px; }
  .tabs button { height: 39px; padding-inline: 13px; font-size: 11px; }
  .feed-card { min-height: 0; padding: 16px 0; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; }
  .feed-photos, .skeleton-photo { width: 118px; height: 118px; }
  .feed-body h3 { margin: 8px 0 5px; font-size: 15px; line-height: 1.35; -webkit-line-clamp: 2; }
  .feed-body > p { font-size: 10px; line-height: 1.55; -webkit-line-clamp: 2; }
  .feed-details { min-height: 22px; margin-top: 6px; }
  .feed-details span { padding: 4px 5px; font-size: 8px; }
  .feed-foot { padding-top: 5px; font-size: 9px; }
  .feed-meta { gap: 4px; font-size: 8px; }
  .type-pill, .flag { min-height: 19px; padding-inline: 5px; font-size: 8px; }
  .side-column { grid-template-columns: 1fr; }
  .footer-inner { min-height: 0; padding: 28px 0; grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .footer small { grid-column: auto; }
  .detail-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); padding: 20px 16px; }
  .detail-dialog h2 { margin-inline: 28px; font-size: 23px; }
  .detail-photos { grid-template-columns: 1fr; }
  .detail-list > div { grid-template-columns: 76px minmax(0, 1fr); }
  .detail-actions { grid-template-columns: 1fr; }
  .mobile-dock { height: calc(62px + env(safe-area-inset-bottom)); padding: 0 8px env(safe-area-inset-bottom); position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -10px 30px rgba(18,72,63,.08); }
  .mobile-dock button { min-width: 0; border: 0; padding: 7px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: transparent; color: var(--muted); }
  .mobile-dock strong, .mobile-dock span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-dock strong { font-size: 11px; }
  .mobile-dock span { margin-top: 3px; font-size: 8px; }
  .mobile-dock button.active, .mobile-dock button[data-mobile-action="publish"] { color: var(--brand); }
}

@media (max-width: 360px) {
  .topbar-inner, .hero-main, .portal-shell, .footer-inner { width: calc(100% - 20px); }
  .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .share-page { display: none; }
  .category-nav button { padding-inline: 8px; }
  .category-nav small { display: none; }
  .feed-card { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; }
  .feed-photos, .skeleton-photo { width: 104px; height: 112px; }
}

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