/* 20 September: wallet, identity markers, mobile feed and OAuth artwork. */
.bnt-ledger-row.is-expense .bnt-ledger-amount {
  color: #d56b72;
}

/* Grid feed is a compact reading mode: keep reporting available, hide counters. */
.news-grid.bnt-feed-grid .reaction-bar > span,
.news-grid.bnt-feed-grid .reaction-bar > button:not(.report-trigger) {
  display: none;
}
.news-grid.bnt-feed-grid .news-feedback,
.news-grid.bnt-feed-grid .reaction-bar {
  min-height: 0;
  margin: 0;
}

.news-card {
  position: relative;
}
.news-card:has(.news-card-menu[open]) {
  z-index: 20;
  overflow: visible;
}
.news-card-menu {
  position: absolute;
  z-index: 8;
  top: 12px;
  right: 12px;
}
.news-card-menu > summary {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 10px;
  color: var(--ink);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  box-shadow: 0 4px 14px #0002;
  cursor: pointer;
  list-style: none;
  backdrop-filter: blur(12px);
}
.news-card-menu > summary::-webkit-details-marker {
  display: none;
}
.news-card-menu[open] > summary {
  color: var(--background);
  background: var(--ink);
}
.news-card-menu-popover {
  position: absolute;
  top: 39px;
  right: 0;
  display: grid;
  gap: 2px;
  width: min(184px, calc(100vw - 40px));
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 16px 42px #0003;
}
.news-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 8px 9px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}
.news-menu-item:hover,
.news-menu-item:focus-visible {
  background: var(--soft);
}
.news-menu-item:disabled {
  cursor: wait;
  opacity: 0.55;
}
.report-menu-item {
  color: #c65058;
}
.news-card .meta-top {
  padding-right: 44px;
}

.author-profile-dialog {
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100dvh !important;
  max-height: none !important;
  padding: 0 max(22px, env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)) !important;
  overflow-y: auto;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 50% -20%, color-mix(in srgb, var(--soft) 80%, transparent), transparent 42%),
    var(--background) !important;
  box-shadow: none !important;
  translate: none !important;
  transform: none !important;
  align-content: start;
}
.author-profile-dialog > [data-slot="dialog-header"],
.author-profile-dialog > .modal-stack {
  width: min(100%, 720px);
  margin-inline: auto;
}
.author-profile-dialog > [data-slot="dialog-header"] {
  position: sticky;
  z-index: 3;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  padding: max(14px, env(safe-area-inset-top)) 0 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--background) 92%, transparent);
  text-align: left;
  backdrop-filter: blur(18px);
}
.author-profile-back {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 96px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 4px 16px #0000000a;
}
.author-profile-back:hover,
.author-profile-back:focus-visible {
  background: var(--soft);
}
.author-profile-back svg {
  flex: 0 0 auto;
}
.author-profile-dialog > [data-slot="dialog-header"] h2 {
  grid-column: 2;
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}
.author-profile-dialog > [data-slot="dialog-header"] p {
  grid-column: 2;
  margin: 4px 0 0;
  color: var(--sub);
  font-size: 13px;
}
.author-profile-dialog > [data-slot="dialog-close"] {
  position: fixed;
  z-index: 2;
  top: max(14px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  opacity: 1;
}
.author-profile-dialog .modal-stack {
  gap: 22px;
}
.author-profile-content {
  padding-top: 22px;
}
.author-hero-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 14px 44px #0000000f;
}
.author-hero-main {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 24px;
}
.author-hero-main > .avatar {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  font-size: 24px;
}
.author-hero-main > .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-hero-copy {
  min-width: 0;
}
.author-hero-copy h1 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: clamp(24px, 4vw, 31px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.author-hero-copy > p {
  margin: 9px 0 13px;
  color: var(--sub);
  font-size: 15px;
  line-height: 1.45;
}
.author-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.author-meta-row > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 9px;
  color: var(--sub);
  background: var(--soft);
  font-size: 12px;
}
.author-rating-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 24px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--soft) 66%, var(--card));
}
.author-rating-strip small {
  color: var(--sub);
  font-size: 13px;
}
.author-profile-dialog .author-paw-summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.author-profile-dialog .author-paw-summary svg {
  fill: currentColor;
}
.author-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 8px;
}
.author-section-heading small {
  display: block;
  margin-bottom: 5px;
  color: var(--sub);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.author-section-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.author-section-heading > span {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding-inline: 8px;
  border-radius: 11px;
  color: var(--sub);
  background: var(--soft);
  font-size: 13px;
}
.author-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.author-post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 142px;
  padding: 17px 42px 17px 17px;
  border: 1px solid var(--line);
  border-radius: 19px;
  color: var(--ink);
  background: var(--card);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}
.author-post-card:hover {
  border-color: color-mix(in srgb, var(--ink) 35%, var(--line));
  background: color-mix(in srgb, var(--soft) 48%, var(--card));
  transform: translateY(-2px);
}
.author-post-card small {
  color: var(--sub);
  font-size: 11px;
}
.author-post-card b {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  font-size: 15px;
  line-height: 1.35;
}
.author-post-card > svg {
  position: absolute;
  top: 16px;
  right: 16px;
}
.author-profile-content .review-card {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--card);
  box-shadow: none;
}
.author-profile-content .review-card .byline {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.author-profile-content .review-card .byline > .avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}
.author-profile-content .review-card .byline small {
  display: block;
  margin-top: 3px;
  color: var(--sub);
}
.author-profile-content .review-card .paw-summary {
  padding: 7px 9px;
  border-radius: 10px;
  background: var(--soft);
}
.author-profile-content .review-card > p {
  margin: 17px 0;
  font-size: 16px;
  line-height: 1.55;
}
.author-profile-content .review-actions {
  display: flex;
  gap: 8px;
}
.author-profile-content .review-actions button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--soft);
}
.author-profile-content .review-form {
  margin-top: 2px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

@media (max-width: 640px) {
  .news-card-menu {
    top: 8px;
    right: 8px;
  }
  .news-card-menu > summary {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .news-card-menu-popover {
    top: 36px;
    width: 172px;
  }
  .bnt-feed-grid .news-card-menu-popover {
    width: 156px;
  }
  .bnt-feed-grid .news-menu-item {
    gap: 7px;
    min-height: 34px;
    padding: 7px 8px;
    font-size: 12px;
  }
  .bnt-feed-grid .news-menu-item svg {
    width: 16px;
    height: 16px;
  }
  .author-profile-dialog {
    padding: 0 14px max(32px, env(safe-area-inset-bottom)) !important;
  }
  .author-profile-dialog > [data-slot="dialog-header"] {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 10px;
    padding: max(10px, env(safe-area-inset-top)) 0 12px;
  }
  .author-profile-back {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 14px;
  }
  .author-profile-back span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .author-profile-content {
    padding-top: 16px;
  }
  .author-hero-main {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }
  .author-hero-main > .avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }
  .author-hero-copy h1 {
    font-size: 23px;
  }
  .author-hero-copy > p {
    margin-block: 7px 10px;
    font-size: 14px;
  }
  .author-rating-strip {
    padding: 13px 18px;
  }
  .author-posts-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .author-post-card {
    min-height: 0;
    padding: 15px 42px 15px 15px;
  }
  .author-post-card b {
    margin-top: 7px;
    -webkit-line-clamp: 2;
  }
  .author-section-heading h2 {
    font-size: 22px;
  }
  .author-profile-content .review-card {
    padding: 17px;
  }
  .author-profile-content .review-card .byline {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
  }
  .author-profile-content .review-card .byline > .avatar {
    width: 42px;
    height: 42px;
  }
}
.bnt-ledger-row.is-income .bnt-ledger-amount {
  color: #62aa7b;
}
.bnt-counterparty {
  color: var(--ink);
  opacity: 0.82 !important;
}
.company-badge {
  color: #35a66a;
  display: inline-flex;
  margin-left: 4px;
  vertical-align: middle;
}
.company-badge svg {
  overflow: visible;
  filter: none !important;
}
.company-badge svg path:first-child {
  fill: #35a66a;
  stroke: #176f45;
  stroke-width: 1.25px;
}
.company-badge svg path:last-child,
.staff-badge svg path:last-child {
  fill: none;
  stroke: #fff;
  stroke-width: 2.5px;
}
.subscriber-paid-badge {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-inline-start: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #4d8a67;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}
.staff-badge svg {
  overflow: visible;
  filter: none !important;
}
.staff-badge svg path:first-child {
  fill: #2384f5;
  stroke: #111;
  stroke-width: 1.25px;
}
.bnt-company-verification {
  border-block: 1px solid var(--line);
  margin: 18px 0;
  padding: 18px 0;
}
.provider-symbol {
  overflow: hidden;
  border-radius: 25% !important;
}
.provider-symbol img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25%;
}
.bnt-feed-layout {
  display: none;
}

.team-grid {
  gap: 12px;
}
.team-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  grid-template-areas:
    "avatar title arrow"
    "avatar role arrow"
    "rating rating rating"
    "bio bio bio";
  align-items: center;
  gap: 6px 12px;
  min-height: 0;
  padding: 18px;
  text-align: left;
}
.team-card .avatar {
  grid-area: avatar;
  width: 52px;
  height: 52px;
  border-radius: 14px;
}
.team-card h2 {
  grid-area: title;
  min-width: 0;
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
}
.team-card > .badge {
  grid-area: role;
  justify-self: start;
}
.team-card .paw-summary {
  grid-area: rating;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  width: 100%;
  margin-top: 8px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.team-card .paw-summary svg {
  flex: 0 0 auto;
  fill: currentColor;
  stroke: currentColor;
}
.team-card p {
  grid-area: bio;
  display: -webkit-box;
  overflow: hidden;
  margin: 2px 0 0;
  color: var(--sub);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  line-height: 1.45;
}
.team-card > svg {
  grid-area: arrow;
  align-self: center;
}

.bnt-services-coming {
  position: relative;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 58px);
  text-align: center;
  isolation: isolate;
}
.bnt-services-coming::before,
.bnt-services-coming::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  filter: blur(10px);
}
.bnt-services-coming::before {
  top: -120px;
  right: -70px;
}
.bnt-services-coming::after {
  bottom: -145px;
  left: -55px;
}
.bnt-services-symbol {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--background);
  background: var(--ink);
}
.bnt-services-coming > .badge {
  display: inline-flex;
  margin-bottom: 14px;
}
.bnt-services-coming h1 {
  margin: 0;
  font-size: clamp(30px, 7vw, 52px);
  letter-spacing: -0.045em;
}
.bnt-services-coming > p {
  max-width: 540px;
  margin: 16px auto 24px;
  color: var(--sub);
  font-size: clamp(16px, 3vw, 20px);
  line-height: 1.55;
}
.bnt-services-preview {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 24px;
}
.bnt-services-preview span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  font-size: 13px;
}
.bnt-services-coming > small {
  color: var(--sub);
}

/* R7: separate, structured geography editor. */
.bnt-geography-editor {
  display: grid;
  gap: 22px;
}
.bnt-geography-editor .section-heading h2,
.bnt-geo-card h3 {
  margin: 0;
}
.bnt-geography-editor .section-heading p {
  margin: 8px 0 0;
}
.bnt-geo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.bnt-geo-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--soft) 72%, transparent);
}
.bnt-geo-card > .badge {
  align-self: flex-start;
}
.bnt-geo-card textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.55;
}
.bnt-geo-settlements textarea {
  min-height: 190px;
}
.bnt-geo-kind {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.bnt-geo-kind button {
  min-width: 0;
  padding: 10px 8px;
  border: 0;
  border-radius: 10px;
  color: var(--sub);
  background: transparent;
  font: inherit;
}
.bnt-geo-kind button.selected {
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 1px 4px #0002;
}
.bnt-geo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bnt-geo-chips span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--sub);
  font-size: 12px;
}
.bnt-geo-edit {
  margin: 0;
}
.bnt-geography-editor .territory-list {
  display: grid;
  gap: 8px;
}

/* Plugin services platform. */
.bnt-services-heading { margin-bottom: 22px; }
.bnt-services-heading h1 {
  max-width: 620px;
  margin: 8px 0 10px;
  font-size: clamp(34px, 7vw, 54px);
  line-height: .98;
  letter-spacing: -.055em;
}
.bnt-services-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--sub);
  font-size: 16px;
  line-height: 1.45;
}
.bnt-services-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 10px 32px rgba(22, 26, 32, .045);
}
.bnt-services-search > svg { color: var(--sub); }
.bnt-services-search input {
  height: 54px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}
.bnt-services-search > span {
  display: grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: var(--sub);
  background: var(--soft);
  font-size: 12px;
  font-weight: 700;
}
.bnt-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bnt-service-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: stretch;
  min-width: 0;
  min-height: 236px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(22, 26, 32, .05);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.bnt-service-card:active { transform: scale(.985); }
.bnt-service-card-top,
.bnt-service-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
.bnt-service-card-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  object-fit: cover;
  background: var(--soft);
}
.bnt-service-status {
  padding: 7px 9px;
  border-radius: 999px;
  color: #24724b;
  background: #eaf6ef;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .02em;
}
.bnt-service-card-copy h2 {
  margin: 0 0 7px;
  font-size: 19px;
  line-height: 1.12;
  letter-spacing: -.025em;
}
.bnt-service-card-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.bnt-service-card-foot {
  justify-content: flex-start;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--sub);
  font-size: 12px;
}
.bnt-service-card-foot > span { display: inline-flex; align-items: center; gap: 4px; }
.bnt-service-card-foot .bnt-card-arrow { margin-left: auto; color: var(--ink); }
.bnt-star-score {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: color-mix(in srgb, var(--sub) 38%, transparent);
}
.bnt-star-score .active { color: #e3a42f; }
.bnt-star-score.compact { gap: 5px; color: var(--ink); font-size: 12px; font-weight: 750; }
.bnt-star-score.compact svg { color: #e3a42f; }
.bnt-services-empty { padding: 28px; text-align: center; }
.bnt-services-empty h2 { margin: 0 0 7px; }
.bnt-services-empty p { margin: 0 0 16px; color: var(--sub); }
.bnt-services-empty .secondary { width: 100%; }
.bnt-services-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.bnt-service-detail,
.bnt-service-feedback,
.bnt-plugin-shell { margin-bottom: 14px; padding: clamp(18px, 4vw, 26px); }
.bnt-service-detail-top {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
}
.bnt-service-icon {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 21px;
  object-fit: cover;
  background: var(--soft);
}
.bnt-service-icon-empty { display: grid; place-items: center; }
.bnt-service-kind { color: var(--sub); font-size: 10px; font-weight: 750; letter-spacing: .13em; }
.bnt-service-detail-top h1 {
  margin: 5px 0 6px;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.bnt-service-detail-top p { margin: 0; color: var(--sub); line-height: 1.4; }
.bnt-service-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}
.bnt-service-metrics > span {
  display: grid;
  min-width: 0;
  min-height: 64px;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 9px 6px;
  border-radius: 15px;
  background: var(--soft);
}
.bnt-service-metrics > span > small { color: var(--sub); font-size: 10px; }
.bnt-service-metrics > span > b { font-size: 12px; }
.bnt-service-actions { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 8px; margin-top: 16px; }
.bnt-service-open,
.bnt-service-like,
.bnt-review-like { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.bnt-service-open { justify-content: space-between; }
.bnt-service-like {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--soft);
  font-weight: 700;
}
.bnt-service-like.is-active { color: var(--background); border-color: var(--ink); background: var(--ink); }
.bnt-service-runtime {
  position: fixed;
  z-index: 10000;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--card);
}
.bnt-plugin-fullscreen { overflow: hidden !important; overscroll-behavior: none; }
html.bnt-plugin-fullscreen .topbar,
html.bnt-plugin-fullscreen .mobile-nav,
html.bnt-plugin-fullscreen .bottom-footer { display: none !important; }
.bnt-service-runtime-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  width: 100%;
  height: calc(58px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 10px 0;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.bnt-service-runtime-head h1 {
  overflow: hidden;
  margin: 0;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.015em;
}
.bnt-runtime-back {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  background: transparent;
  transition: background-color .16s ease, transform .16s ease;
}
.bnt-runtime-back:hover { background: var(--soft); }
.bnt-runtime-back:active { transform: scale(.94); }
.bnt-plugin-frame-native {
  display: block;
  width: 100vw;
  height: calc(100dvh - 58px - env(safe-area-inset-top));
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: var(--card);
}
.bnt-plugin-shell .section-heading {
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.bnt-plugin-shell { overflow: hidden; padding: 0; }
.bnt-plugin-frame {
  width: 100%;
  height: min(72vh, 760px);
  min-height: 520px;
  border: 0;
  border-radius: 0;
  background: var(--card);
}
.bnt-review-form {
  display: grid;
  gap: 12px;
  margin: 18px 0 20px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--soft);
}
.bnt-review-form-title,
.bnt-review-form-foot,
.bnt-feedback-head,
.bnt-review-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bnt-review-form-title span { color: var(--sub); font-size: 12px; }
.bnt-review-form textarea {
  min-height: 110px;
  resize: vertical;
}
.bnt-star-picker {
  display: flex;
  gap: 7px;
}
.bnt-star-picker button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--sub);
  background: var(--card);
}
.bnt-star-picker button.selected {
  color: #e3a42f;
  border-color: color-mix(in srgb, #e3a42f 45%, var(--line));
  background: color-mix(in srgb, #e3a42f 12%, var(--card));
}
.bnt-review-form-foot small { max-width: 58%; color: var(--sub); line-height: 1.3; }
.bnt-review-form-foot .primary { min-width: 145px; }
.bnt-feedback-head { margin-bottom: 4px; }
.bnt-feedback-head .eyebrow { font-size: 9px; }
.bnt-feedback-head h2 { margin: 4px 0 0; }
.bnt-feedback-summary {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0 6px;
  min-width: 72px;
  padding: 9px 11px;
  border-radius: 14px;
  background: var(--soft);
}
.bnt-feedback-summary svg { grid-row: 1 / 3; color: #e3a42f; }
.bnt-feedback-summary small { color: var(--sub); font-size: 9px; }
.bnt-service-review {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.bnt-review-author { justify-content: flex-start; }
.bnt-review-author .bnt-star-score { margin-left: auto; }
.bnt-review-author .row-main b,
.bnt-review-author .row-main small { display: block; }
.bnt-review-author .row-main small { margin-top: 3px; color: var(--sub); font-size: 11px; }
.bnt-review-avatar {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  object-fit: cover;
  background: var(--soft);
  font-weight: 800;
}
.bnt-review-content {
  margin: 15px 0 12px;
  white-space: pre-wrap;
  line-height: 1.5;
}
.bnt-review-like {
  min-width: 70px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--sub);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.bnt-review-like:not(:disabled):active { transform: scale(.96); }
.bnt-review-like[aria-busy="true"] svg { animation: bnt-review-like-pulse .65s ease-in-out infinite alternate; }
.bnt-review-like span {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 7px;
  background: var(--soft);
}
.bnt-review-like.is-active { color: var(--background); border-color: var(--ink); background: var(--ink); }
.bnt-review-like.is-active span { color: var(--ink); background: var(--background); }
@keyframes bnt-review-like-pulse { to { transform: scale(.78); opacity: .58; } }
.bnt-owner-reply {
  margin-top: 14px;
  padding: 14px 15px;
  border-radius: 15px;
  background: var(--soft);
}
.bnt-owner-reply span { color: var(--sub); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.bnt-owner-reply p {
  margin: 7px 0 0;
}
.bnt-review-reply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 14px;
}
.bnt-plugin-form {
  display: grid;
  gap: 14px;
  margin-block: 18px 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}
.bnt-plugin-form textarea {
  min-height: 92px;
}
.bnt-plugin-list {
  display: grid;
  gap: 8px;
}
.bnt-plugin-list-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  object-fit: cover;
}

@media (max-width: 640px) {
  .topbar {
    position: relative;
    top: auto;
  }
  .bnt-feed-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--soft);
  }
  .bnt-feed-layout button {
    min-width: 0;
    min-height: 38px;
    padding: 7px 5px;
    border: 0;
    border-radius: 9px;
    color: var(--sub);
    background: transparent;
    font: inherit;
    font-size: 12px;
  }
  .bnt-feed-layout button.selected {
    color: var(--ink);
    background: var(--card);
    box-shadow: 0 1px 4px #0002;
  }
  .news-grid.bnt-feed-cards,
  .news-grid.bnt-feed-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .bnt-feed-list .featured-holder,
  .bnt-feed-list .card-holder {
    min-width: 0;
  }
  .bnt-feed-list .news-card {
    display: block;
    min-height: 0;
  }
  .bnt-feed-list .cover-button,
  .bnt-feed-list .featured .cover-button {
    display: none !important;
  }
  .bnt-feed-list .cover-label,
  .bnt-feed-list .summary {
    display: none;
  }
  .bnt-feed-list .card-content {
    padding: 14px;
  }
  .bnt-feed-list .headline-button h2,
  .bnt-feed-list .featured h2 {
    font-size: 17px;
    line-height: 1.25;
  }
  .bnt-feed-list .card-bottom {
    margin-top: 14px;
    padding-top: 10px;
  }
  .mobile-nav.glass {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .mobile-nav.glass button span {
    font-size: 10px;
  }
  .bnt-services-page {
    padding: 0 4px;
  }
  .bnt-service-runtime {
    padding: 0;
    border-radius: 0;
  }
  .bnt-plugin-frame-native {
    width: 100vw;
    height: calc(100dvh - 58px - env(safe-area-inset-top));
    min-height: 0;
  }
  .bnt-geo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bnt-geo-card {
    padding: 16px;
    border-radius: 17px;
  }
  .bnt-geography-editor .territory-list .list-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .bnt-geography-editor .territory-list .row-main {
    flex-basis: 100%;
  }
  .bnt-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .bnt-services-heading { margin-inline: 4px; }
  .bnt-services-heading h1 { font-size: 37px; }
  .bnt-services-search { margin-inline: 4px; }
  .bnt-service-card {
    min-height: 220px;
    gap: 13px;
    padding: 14px;
    border-radius: 20px;
  }
  .bnt-service-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }
  .bnt-service-status { padding: 6px 7px; font-size: 9px; }
  .bnt-service-card-copy h2 { font-size: 17px; }
  .bnt-service-card-copy p { font-size: 12px; -webkit-line-clamp: 3; }
  .bnt-service-detail-top {
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .bnt-service-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }
  .bnt-service-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bnt-service-like { padding-inline: 8px; font-size: 12px; }
  .bnt-review-form-foot { align-items: stretch; flex-direction: column; }
  .bnt-review-form-foot small { max-width: none; }
  .bnt-review-form-foot .primary { width: 100%; }
  .bnt-review-author .bnt-star-score { gap: 1px; }
  .bnt-review-author .bnt-star-score svg { width: 14px; height: 14px; }
  .bnt-plugin-frame {
    min-height: 65vh;
  }
  .bnt-review-reply {
    grid-template-columns: minmax(0, 1fr);
  }
  .bnt-plugin-list .list-row {
    flex-wrap: wrap;
  }
  .bnt-plugin-list .row-main {
    flex-basis: calc(100% - 62px);
  }
  .news-grid.bnt-feed-grid {
    display: block;
    column-count: 2;
    column-gap: 10px;
  }
  .bnt-feed-grid .featured-holder,
  .bnt-feed-grid .card-holder,
  .bnt-feed-grid .news-card.featured {
    grid-column: auto;
    min-width: 0;
  }
  .bnt-feed-grid .featured-holder,
  .bnt-feed-grid .card-holder {
    display: inline-block;
    width: 100%;
    height: auto;
    margin: 0 0 10px;
    break-inside: avoid;
    vertical-align: top;
  }
  .bnt-feed-grid .news-card,
  .bnt-feed-grid .news-card.featured {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 0;
    position: relative;
  }
  .bnt-feed-grid .cover-button,
  .bnt-feed-grid .featured .cover-button {
    flex: 0 0 92px;
    height: 92px;
  }
  .bnt-feed-grid .cover-label,
  .bnt-feed-grid .summary,
  .bnt-feed-grid .card-bottom,
  .bnt-feed-grid .meta-top > span + span {
    display: none;
  }
  .bnt-feed-grid .card-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 12px;
  }
  .bnt-feed-grid .headline-button h2,
  .bnt-feed-grid .featured h2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: -0.2px;
  }
  .bnt-feed-grid .meta-top {
    padding-right: 34px;
    margin-bottom: 8px;
    font-size: 10px;
  }
  .bnt-feed-grid .news-feedback {
    min-width: 0;
  }
  .bnt-feed-grid .reaction-bar {
    display: grid;
    grid-template-columns: minmax(34px, 0.75fr) repeat(2, minmax(42px, 1fr));
    gap: 4px;
    width: 100%;
    min-width: 0;
    margin-top: 10px;
  }
  .bnt-feed-grid .reaction-bar > span,
  .bnt-feed-grid .reaction-bar > button {
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 40px;
    padding: 6px 3px;
    border-radius: 10px;
    white-space: nowrap;
    font-size: 12px;
  }
  .bnt-feed-grid .reaction-bar svg {
    flex: none;
    width: 16px;
    height: 16px;
  }
  .bnt-feed-grid .reaction-bar .report-trigger {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border-radius: 9px;
    background: color-mix(in srgb, var(--card) 88%, transparent);
    box-shadow: 0 2px 8px #0002;
  }
}
