@import "/assets/design.css";

:where(
  .hb-ui-section,
  .hb-ui-row,
  .hb-ui-button,
  .hb-ui-field,
  .hb-ui-checkbox-field,
  .hb-ui-toggle,
  .hb-ui-page-heading,
  .hb-ui-card,
  .hb-ui-empty,
  .hb-ui-feedback,
  .hb-ui-source,
  .hb-ui-review,
  .hb-ui-message,
  .hb-ui-list-item,
  .hb-ui-filter-chips,
  .hb-ui-section-title,
  .hb-ui-disclosure,
  .hb-ui-navigation-label
) {
  box-sizing: border-box;
  font-family: var(--hb-font-sans);
  color: var(--hb-ink);
}
.hb-ui-details {
  display: grid;
  gap: var(--hb-space-content);
  margin: 0;
  font-family: var(--hb-font-sans);
}
.hb-ui-details > div {
  display: grid;
  gap: var(--hb-space-tight);
}
.hb-ui-details dt {
  color: var(--hb-accent);
  font-size: var(--hb-type-label-size);
  font-weight: var(--hb-type-label-weight);
  line-height: var(--hb-type-label-line);
}
.hb-ui-details dd {
  margin: 0;
  color: var(--hb-ink);
  font-size: var(--hb-type-body-size);
  line-height: var(--hb-type-body-line);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.hb-ui-details .hb-ui-detail-caution dt {
  color: var(--hb-warning);
}
:where(
  .hb-ui-button,
  .hb-ui-field input,
  .hb-ui-field select,
  .hb-ui-field textarea,
  .hb-ui-icon-button
) {
  font-family: var(--hb-font-sans);
}
:where(
  .hb-ui-button,
  .hb-ui-row-action,
  .hb-ui-field input,
  .hb-ui-field select,
  .hb-ui-field textarea,
  .hb-ui-checkbox input,
  .hb-ui-toggle input,
  .hb-ui-source,
  .hb-ui-icon-button,
  .hb-ui-filter-chips button,
  .hb-ui-disclosure-trigger
):focus-visible {
  outline: 2px solid var(--hb-focus);
  outline-offset: 3px;
}
.hb-ui-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--hb-space-regular);
  padding: var(--hb-space-content);
  border-radius: var(--hb-radius-control);
  text-align: left;
}
.hb-ui-list-item-selected {
  background: var(--hb-surface);
}
.hb-ui-list-copy {
  display: grid;
  gap: var(--hb-space-tight);
  flex: 1;
  min-width: 0;
}
.hb-ui-list-title {
  color: var(--hb-ink);
  font-size: var(--hb-type-body-size);
  line-height: var(--hb-type-body-line);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.hb-ui-list-meta {
  color: var(--hb-muted);
  font-size: var(--hb-type-caption-size);
  line-height: var(--hb-type-caption-line);
  overflow-wrap: anywhere;
}
.hb-ui-list-description {
  color: var(--hb-muted);
  font-size: var(--hb-type-label-size);
  line-height: var(--hb-type-caption-line);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.hb-ui-list-icon,
.hb-ui-list-trailing {
  display: flex;
  flex-shrink: 0;
  padding-top: 2px;
  color: var(--hb-accent);
}
.hb-ui-list-unread {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--hb-action);
}
.hb-ui-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hb-space-small);
}
.hb-ui-filter-chips button {
  min-height: var(--hb-touch-target);
  padding: var(--hb-space-small) var(--hb-space-content);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-control);
  background: var(--hb-card);
  color: var(--hb-muted);
  font: inherit;
  font-size: var(--hb-type-label-size);
  line-height: var(--hb-type-label-line);
  font-weight: 600;
  cursor: pointer;
}
.hb-ui-filter-chips button[aria-pressed="true"] {
  color: var(--hb-accent);
  border-color: var(--hb-accent);
  background: var(--hb-surface);
}
.hb-ui-filter-chips button:hover {
  background: var(--hb-surface);
}
.hb-ui-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--hb-touch-target);
  height: var(--hb-touch-target);
  border: 1px solid transparent;
  border-radius: var(--hb-radius-control);
  background: transparent;
  color: var(--hb-ink);
  cursor: pointer;
}
.hb-ui-icon-button > span {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hb-ui-icon-button-floating {
  background: var(--hb-card);
  border-color: var(--hb-line);
  box-shadow: var(--hb-shadow-floating);
}
.hb-ui-icon-button:hover:not(:disabled) {
  background: var(--hb-surface);
}
.hb-ui-icon-button:disabled {
  opacity: 0.4;
  cursor: default;
}
.hb-ui-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.hb-ui-page-heading > div {
  min-width: 0;
}
.hb-ui-page-heading h1 {
  font-family: inherit;
  margin: 0;
  font-size: var(--hb-type-title-size);
  line-height: var(--hb-type-title-line);
  font-weight: var(--hb-type-title-weight);
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.hb-ui-page-heading p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--hb-muted);
}
.hb-ui-page-heading.is-compact h1 {
  font-size: var(--hb-type-heading-size);
  line-height: var(--hb-type-heading-line);
  font-weight: var(--hb-type-heading-weight);
  letter-spacing: 0;
}
.hb-ui-eyebrow {
  display: block;
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
  color: var(--hb-muted);
}
.hb-ui-card,
.hb-ui-review {
  background: var(--hb-card);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-card);
  padding: 16px;
}
.hb-ui-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 32px 24px;
  text-align: center;
}
.hb-ui-empty h2 {
  font-family: inherit;
  margin: 0;
  font-size: 20px;
  line-height: 28px;
}
.hb-ui-empty p {
  margin: 0;
  color: var(--hb-muted);
  max-width: 40ch;
}
.hb-ui-empty-icon {
  color: var(--hb-accent);
}
.hb-ui-feedback {
  background: var(--hb-surface);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-control);
  padding: 12px;
  font-size: 14px;
  line-height: 20px;
}
.hb-ui-feedback-error {
  color: var(--hb-danger);
}
.hb-ui-feedback-success {
  color: var(--hb-success);
}
.hb-ui-field .hb-ui-field-error {
  color: var(--hb-danger);
}
.hb-ui-field input[aria-invalid="true"],
.hb-ui-field select[aria-invalid="true"],
.hb-ui-field textarea[aria-invalid="true"] {
  border-color: var(--hb-danger);
}
.hb-ui-source {
  display: flex;
  align-items: center;
  gap: 4px 12px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-control);
  background: var(--hb-card);
  text-align: left;
  cursor: pointer;
}
.hb-ui-source strong {
  font-size: 14px;
  color: var(--hb-accent);
}
.hb-ui-source-copy {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.hb-ui-source-copy > span {
  font-size: 13px;
  color: var(--hb-muted);
}
.hb-ui-source-arrow {
  margin-left: auto;
  color: var(--hb-accent);
}
.hb-ui-source[aria-pressed="true"] {
  border-color: var(--hb-accent);
  background: var(--hb-surface);
}
.hb-ui-source:hover:not(:disabled) {
  background: var(--hb-surface);
}
.hb-ui-source:disabled {
  opacity: 0.5;
  cursor: default;
}
.hb-ui-review {
  display: grid;
  gap: 12px;
}
.hb-ui-review h3 {
  font-family: inherit;
  margin: 0;
  font-size: 18px;
  line-height: 24px;
}
.hb-ui-review p {
  margin: 0;
  color: var(--hb-muted);
  font-size: 14px;
  line-height: 20px;
}
.hb-ui-audience {
  width: fit-content;
  padding: 4px 8px;
  background: var(--hb-surface);
  color: var(--hb-accent);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.hb-ui-message {
  display: grid;
  gap: 12px;
  min-width: 0;
  line-height: 1.6;
}
.hb-ui-message-user {
  margin-left: auto;
  max-width: 90%;
  padding: 16px;
  border-radius: var(--hb-radius-card);
  background: var(--hb-bubble);
}
.hb-ui-message-author {
  color: var(--hb-muted);
  font-size: 13px;
  font-weight: 600;
}
.hb-ui-message-body {
  overflow-wrap: anywhere;
}
.hb-ui-message-body p {
  margin: 0 0 12px;
}
.hb-ui-message-body p:last-child {
  margin-bottom: 0;
}
.hb-ui-message-footer {
  display: grid;
  gap: 12px;
}
.hb-ui-navigation-label {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-size: 15px;
}
.hb-ui-navigation-label > span:first-child {
  display: flex;
  align-items: center;
}
.hb-ui-navigation-label-selected {
  font-weight: 600;
  color: var(--hb-accent);
}
.hb-ui-badge {
  margin-left: auto;
  background: var(--hb-action);
  color: var(--hb-on-action);
  border-radius: 12px;
  min-width: 20px;
  padding: 2px 6px;
  font-size: 12px;
  text-align: center;
}
.hb-ui-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hb-ui-section {
  display: grid;
  gap: var(--hb-space-regular, 12px);
  min-width: 0;
}
.hb-ui-section-heading {
  display: grid;
  gap: var(--hb-space-tight, 4px);
}
.hb-ui-section-heading h2 {
  margin: 0;
  color: var(--hb-ink);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  font-family: inherit;
}
.hb-ui-section-heading p {
  margin: 0;
  color: var(--hb-muted);
  font-size: 14px;
  line-height: 20px;
}
.hb-ui-section-content {
  display: grid;
  gap: var(--hb-space-regular, 12px);
  min-width: 0;
}
.hb-ui-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 0;
  width: 100%;
  color: var(--hb-ink);
  text-align: left;
}
.hb-ui-row-action {
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.hb-ui-row-action:hover {
  background: color-mix(in srgb, var(--hb-ink) 5%, transparent);
}
.hb-ui-row-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}
.hb-ui-row-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}
.hb-ui-row-description {
  font-size: 13px;
  line-height: 20px;
  color: var(--hb-muted);
  overflow-wrap: anywhere;
}
.hb-ui-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  color: var(--hb-muted);
}
.hb-ui-row-control {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}
.hb-ui-row-chevron {
  font-size: 24px;
  color: var(--hb-muted);
}
.hb-ui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  min-height: var(--hb-control-button);
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: var(--hb-radius-button);
  font-size: var(--hb-type-control-size);
  line-height: var(--hb-type-control-line);
  font-weight: var(--hb-type-control-weight);
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.hb-ui-button-primary {
  background: var(--hb-action);
  color: var(--hb-on-action);
}
.hb-ui-button-secondary {
  background: transparent;
  color: var(--hb-ink);
  border-color: var(--hb-line);
}
.hb-ui-button-tertiary {
  background: transparent;
  color: var(--hb-ink);
}
.hb-ui-button-danger {
  background: transparent;
  color: var(--hb-danger);
  border-color: var(--hb-line);
}
.hb-ui-button-tone-danger {
  color: var(--hb-danger);
}
.hb-ui-button-primary.hb-ui-button-tone-danger {
  background: var(--hb-danger);
  color: var(--hb-on-danger);
}
.hb-ui-button-size-large {
  min-height: var(--hb-control-button-large);
  padding: 12px 16px;
  font-size: 16px;
  line-height: 24px;
}
.hb-ui-button:disabled {
  opacity: 0.4;
  cursor: default;
}
.hb-ui-button:active:not(:disabled) {
  opacity: 0.7;
}
.hb-ui-button:is(.hb-ui-button-secondary, .hb-ui-button-tertiary):hover:not(:disabled) {
  background: var(--hb-surface);
}
@media (max-width: 640px), (pointer: coarse) {
  .hb-ui-button {
    min-height: var(--hb-touch-target);
  }
  .hb-ui-button-size-large {
    min-height: var(--hb-control-button-large);
  }
}
.hb-ui-action-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--hb-line);
  padding-top: 16px;
}
.hb-ui-action-footer-leading {
  margin-right: auto;
  min-width: 0;
}
.hb-ui-action-footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 100%;
}
.hb-ui-decision-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.hb-ui-decision-group legend {
  padding: 0 0 8px;
  font-size: var(--hb-type-control-size);
  line-height: var(--hb-type-control-line);
  font-weight: 600;
}
.hb-ui-decision-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-block: 12px;
  border-bottom: 1px solid var(--hb-line);
  cursor: pointer;
}
.hb-ui-decision-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--hb-accent);
}
.hb-ui-decision-option > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.hb-ui-decision-option strong {
  font-size: var(--hb-type-control-size);
  line-height: var(--hb-type-control-line);
  font-weight: 600;
}
.hb-ui-decision-option > span > span {
  color: var(--hb-muted);
  font-size: var(--hb-type-caption-size);
  line-height: var(--hb-type-caption-line);
}
.hb-ui-decision-option:has(input:disabled) {
  opacity: 0.4;
  cursor: default;
}

.hb-ui-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.hb-ui-field > label,
.hb-ui-toggle strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.hb-ui-field > input,
.hb-ui-field > select,
.hb-ui-field > textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--hb-line);
  border-radius: 12px;
  color: var(--hb-ink);
  background: var(--hb-card);
  font: inherit;
  font-size: 16px;
}
.hb-ui-field > p,
.hb-ui-toggle > span > span {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--hb-muted);
}
.hb-ui-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 52px;
}
.hb-ui-toggle > span {
  display: grid;
  gap: 4px;
}
.hb-ui-toggle > input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  accent-color: var(--hb-action);
}
.hb-ui-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}
@media (max-width: 640px) {
  .hb-ui-form-actions > .hb-ui-button {
    flex: 1 1 auto;
  }
}

.hb-ui-bubble {
  box-sizing: border-box;
  font-family: var(--hb-font-sans);
  color: var(--hb-ink);
  width: fit-content;
  max-width: 92%;
  padding: var(--hb-space-content);
  display: grid;
  gap: var(--hb-space-small);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-card);
  background: var(--hb-card);
}
.hb-ui-bubble-own {
  margin-left: auto;
  background: var(--hb-bubble);
}
.hb-ui-bubble-meta {
  color: var(--hb-muted);
  font-size: var(--hb-type-caption-size);
  line-height: var(--hb-type-caption-line);
}
.hb-ui-bubble-body {
  min-width: 0;
  font-size: var(--hb-type-body-size);
  line-height: var(--hb-type-body-line);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.hb-ui-bubble-body p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}
.hb-ui-bubble-footer {
  min-width: 0;
  position: relative;
}

.hb-ui-section-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--hb-space-content);
}
.hb-ui-section-title > div:first-child {
  flex: 1 1 14rem;
  min-width: 0;
}
.hb-ui-section-title :is(h2, h3) {
  margin: 0;
  font-family: var(--hb-font-sans);
  font-size: var(--hb-type-heading-size);
  line-height: var(--hb-type-heading-line);
  font-weight: var(--hb-type-heading-weight);
  overflow-wrap: anywhere;
}
.hb-ui-section-title p {
  margin: var(--hb-space-tight) 0 0;
  font-size: var(--hb-type-label-size);
  line-height: var(--hb-type-label-line);
  color: var(--hb-muted);
}
.hb-ui-disclosure {
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-card);
  background: var(--hb-card);
  overflow: hidden;
}
.hb-ui-disclosure-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.hb-ui-disclosure-trigger:hover {
  background: var(--hb-surface);
}
.hb-ui-disclosure-trigger:focus-visible {
  outline-offset: -2px;
}
.hb-ui-disclosure-content {
  font-size: var(--hb-type-body-size);
  line-height: var(--hb-type-body-line);
  padding: 0 var(--hb-space-content) var(--hb-space-content);
}
.hb-ui-disclosure-content[hidden] {
  display: none;
}
.hb-ui-disclosure-arrow {
  display: inline-block;
  font-size: 24px;
  line-height: 24px;
}
.hb-ui-disclosure-arrow.is-open {
  transform: rotate(90deg);
}

.hb-ui-disclosure-content > p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.hb-ui-field textarea {
  resize: vertical;
}
.hb-ui-checkbox {
  display: flex;
  align-items: center;
  gap: var(--hb-space-regular);
  min-height: var(--hb-touch-target);
  padding: var(--hb-space-regular);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-control);
  background: var(--hb-card);
  cursor: pointer;
}
.hb-ui-checkbox:has(:checked) {
  background: var(--hb-surface);
}
.hb-ui-checkbox:has(:disabled) {
  cursor: default;
  opacity: 0.5;
}
.hb-ui-checkbox input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--hb-action);
}
.hb-ui-checkbox > span {
  display: grid;
  gap: var(--hb-space-tight);
  min-width: 0;
}
.hb-ui-checkbox strong {
  font-size: var(--hb-type-label-size);
  line-height: var(--hb-type-label-line);
  font-weight: var(--hb-type-label-weight);
}
.hb-ui-checkbox > span > span,
.hb-ui-checkbox-field > p {
  font-size: var(--hb-type-caption-size);
  line-height: var(--hb-type-caption-line);
  margin: 0;
  color: var(--hb-muted);
}
.hb-ui-checkbox-field > .hb-ui-field-error {
  color: var(--hb-danger);
}

.hb-ui-segmented {
  display: flex;
  gap: var(--hb-space-tight);
  padding: var(--hb-space-tight);
  background: var(--hb-surface);
  border-radius: var(--hb-radius-control);
}
.hb-ui-field > span {
  color: var(--hb-ink);
  font-size: var(--hb-type-label-size);
  line-height: var(--hb-type-label-line);
  font-weight: var(--hb-type-label-weight);
}
.hb-ui-segmented > button {
  flex: 1;
  min-width: 0;
  min-height: var(--hb-touch-target);
  border: 0;
  border-radius: var(--hb-radius-control);
  padding: var(--hb-space-small);
  color: var(--hb-ink);
  background: transparent;
  font: inherit;
  font-size: var(--hb-type-label-size);
  line-height: var(--hb-type-label-line);
  cursor: pointer;
}
.hb-ui-segmented > [aria-checked="true"] {
  box-shadow: inset 0 0 0 1px var(--hb-line);
  background: var(--hb-card);
  font-weight: var(--hb-type-label-weight);
}
.hb-ui-segmented > button:disabled {
  cursor: default;
  opacity: 0.5;
}
.hb-ui-segmented > button:focus-visible {
  outline: 2px solid var(--hb-accent);
  outline-offset: 2px;
}

.hb-ui-composer-container {
  width: 100%;
  font-family: var(--hb-font-sans);
  color: var(--hb-ink);
}
.hb-ui-composer {
  display: flex;
  align-items: flex-end;
  gap: var(--hb-space-small);
  padding: 6px 6px 6px var(--hb-space-content);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-composer);
  background: var(--hb-surface);
}
.hb-ui-composer:focus-within {
  border-color: var(--hb-focus);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--hb-focus) 12%, transparent);
}
.hb-ui-composer-input {
  flex: 1;
  min-width: 0;
}
.hb-ui-composer-input textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: var(--hb-touch-target);
  max-height: 140px;
  resize: none;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: var(--hb-ink);
  font-family: var(--hb-font-sans);
  font-size: var(--hb-type-body-size);
  line-height: var(--hb-type-body-line);
}
.hb-ui-composer-input textarea::placeholder {
  color: var(--hb-muted);
}
.hb-ui-composer .hb-ui-composer-action {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  width: var(--hb-touch-target);
  height: var(--hb-touch-target);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--hb-action);
  color: var(--hb-on-action);
  cursor: pointer;
}
.hb-ui-composer-action:disabled {
  opacity: 0.3;
  cursor: default;
}
.hb-ui-composer-action > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}
.hb-ui-composer-action > span > svg {
  display: block;
}
.hb-ui-composer-action:focus-visible {
  outline: 2px solid var(--hb-focus);
  outline-offset: 3px;
}
.hb-ui-composer-audience {
  margin: var(--hb-space-small) 0 0;
  color: var(--hb-muted);
  text-align: center;
  font-size: var(--hb-type-caption-size);
  line-height: var(--hb-type-caption-line);
}
@media (max-width: 760px) {
  .hb-ui-composer {
    padding: 4px 4px 4px var(--hb-space-regular);
  }
}

.hb-ui-suggestion {
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--hb-space-tight);
  min-height: var(--hb-touch-target);
  width: 100%;
  padding: var(--hb-space-regular) var(--hb-space-content);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-card);
  background: var(--hb-card);
  color: var(--hb-ink);
  font-family: var(--hb-font-sans);
  text-align: left;
  cursor: pointer;
}
.hb-ui-suggestion-heading {
  display: flex;
  align-items: center;
  gap: var(--hb-space-small);
  width: 100%;
  font-size: var(--hb-type-label-size);
  line-height: var(--hb-type-label-line);
  font-weight: var(--hb-type-label-weight);
}
.hb-ui-suggestion-heading > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.hb-ui-suggestion-trailing {
  margin-left: auto;
  flex-shrink: 0;
}
.hb-ui-suggestion-description {
  color: var(--hb-muted);
  font-size: var(--hb-type-caption-size);
  line-height: var(--hb-type-caption-line);
}
.hb-ui-suggestion:hover:not(:disabled) {
  background: var(--hb-surface);
}
.hb-ui-suggestion:focus-visible {
  outline: 2px solid var(--hb-focus);
  outline-offset: 3px;
}
.hb-ui-suggestion:disabled {
  opacity: 0.4;
  cursor: default;
}
.hb-ui-conversation-label {
  display: flex;
  align-items: center;
  gap: var(--hb-space-small);
  width: 100%;
  min-width: 0;
  color: var(--hb-ink);
  font-family: var(--hb-font-sans);
  font-size: var(--hb-type-label-size);
  line-height: var(--hb-type-label-line);
}
.hb-ui-conversation-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}
.hb-ui-conversation-label-selected {
  color: var(--hb-accent);
  font-weight: var(--hb-type-label-weight);
}
.hb-ui-conversation-unread {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hb-action);
}
/* Connection identity, resource access and household sharing stay distinct. */
.hb-ui-connection-summary {
  display: grid;
  gap: var(--hb-space-content);
  padding-block: var(--hb-space-section);
  border-bottom: 1px solid var(--hb-line);
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Service catalog: illustrated marks, quiet actions, and distinct browsing modes. */
.hb-ui-filter-tabs {
  border-bottom: 1px solid var(--hb-line);
  gap: var(--hb-space-section);
}
.hb-ui-filter-tabs > button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: var(--hb-space-regular) var(--hb-space-small);
}
.hb-ui-filter-tabs > button[aria-pressed="true"] {
  background: transparent;
  border-color: var(--hb-accent);
}
.hb-ui-connection-search {
  display: flex;
  align-items: center;
  gap: var(--hb-space-regular);
  padding: 0 var(--hb-space-content);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-control);
  color: var(--hb-muted);
  background: var(--hb-card);
  min-height: 52px;
}
.hb-ui-connection-search:focus-within {
  outline: 2px solid var(--hb-focus);
  outline-offset: 2px;
}
.hb-ui-connection-search > span {
  display: flex;
}
.hb-ui-connection-search input {
  border: 0;
  outline: none;
  box-shadow: none;
  padding: var(--hb-space-regular) 0;
  width: 100%;
  min-width: 0;
  color: var(--hb-ink);
  background: transparent;
  font: inherit;
}
.hb-ui-connection-search input::placeholder {
  color: var(--hb-muted);
}
.hb-ui-connection-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: var(--hb-space-content);
  align-items: start;
  width: 100%;
  text-align: left;
  color: var(--hb-ink);
  font-family: var(--hb-font-sans);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hb-line);
  padding: var(--hb-space-section) 0;
  cursor: pointer;
}
.hb-ui-connection-item:focus-visible {
  outline: 2px solid var(--hb-focus);
  outline-offset: 3px;
}
.hb-ui-connection-item:hover .hb-ui-connection-action {
  background: var(--hb-surface);
}
.hb-ui-service-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.hb-ui-service-mark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.hb-ui-connection-copy {
  display: grid;
  min-width: 0;
  gap: var(--hb-space-small);
  overflow-wrap: anywhere;
}
.hb-ui-connection-name {
  font-size: var(--hb-type-label-size);
  line-height: var(--hb-type-label-line);
  font-weight: var(--hb-type-label-weight);
}
.hb-ui-connection-description,
.hb-ui-connection-status {
  color: var(--hb-muted);
  font-size: var(--hb-type-caption-size);
  line-height: var(--hb-type-caption-line);
}
.hb-ui-connection-status.needs-attention {
  color: var(--hb-warning);
}
.hb-ui-connection-action {
  align-self: center;
  display: grid;
  place-items: center;
  border: 1px solid var(--hb-accent);
  color: var(--hb-accent);
  border-radius: var(--hb-radius-control);
  min-height: var(--hb-touch-target);
  padding: var(--hb-space-small) var(--hb-space-regular);
  font-size: var(--hb-type-caption-size);
  font-weight: var(--hb-type-label-weight);
}
@media (min-width: 761px) {
  .hb-ui-connection-item-card {
    grid-template-columns: 44px minmax(0, 1fr);
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius-card);
    background: var(--hb-card);
    padding: var(--hb-space-section);
    min-height: 220px;
  }
  .hb-ui-connection-item-card .hb-ui-connection-action {
    grid-column: 1 / -1;
    align-self: end;
  }
  .hb-ui-connection-item-card .hb-ui-connection-status {
    margin-top: var(--hb-space-small);
  }
}
@media (max-width: 380px) {
  .hb-ui-connection-item {
    gap: var(--hb-space-regular);
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }
  .hb-ui-service-mark,
  .hb-ui-service-mark img {
    width: 36px;
    height: 36px;
  }
  .hb-ui-connection-action {
    padding-inline: var(--hb-space-small);
  }
}
.hb-ui-filter-pills > button {
  border: 0;
  border-radius: 999px;
}

/* Compact detail surfaces share the overview's restrained type and action hierarchy. */
.hb-ui-detail-surface {
  --hb-type-body-size: var(--hb-type-detail-size);
  --hb-type-body-line: var(--hb-type-detail-line);
  --hb-type-label-size: 13px;
  --hb-type-label-line: 20px;
  --hb-type-heading-size: var(--hb-type-section-size);
  --hb-type-heading-line: var(--hb-type-section-line);
  font-size: 14px;
  line-height: 22px;
}
.hb-ui-detail-surface .hb-ui-field > :is(input, select, textarea) {
  min-height: 42px;
  border-radius: 9px;
  padding: 9px 12px;
}
.hb-ui-detail-surface .hb-ui-form-actions {
  justify-content: flex-end;
  gap: 8px;
}
.hb-ui-connection-summary {
  padding-block: 0;
  gap: 16px;
  border: 0;
}
.hb-ui-connection-summary > .hb-ui-button {
  justify-self: start;
}
.hb-ui-connection-summary .hb-ui-details {
  gap: 0;
}
.hb-ui-connection-summary .hb-ui-details > div {
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hb-line);
}
.hb-ui-connection-summary .hb-ui-details dt {
  color: var(--hb-muted);
  font-size: 13px;
  line-height: 21px;
  font-weight: 500;
}
.hb-ui-connection-summary .hb-ui-details dd {
  font-size: 14px;
  line-height: 21px;
}
@media (max-width: 640px) {
  .hb-ui-connection-summary .hb-ui-details > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding-block: 14px;
  }
  .hb-ui-detail-surface .hb-ui-form-actions > .hb-ui-button {
    flex: 0 1 auto;
  }
}

/* Selection values follow body text; text-entry fields retain mobile-safe sizing. */
.hb-ui-field > select,
.hb-ui-detail-surface .hb-ui-field > select {
  font-size: 14px;
  line-height: 22px;
}

.hb-ui-decision-group legend {
  color: var(--hb-ink);
}
.hb-ui-decision-option:last-child {
  border-bottom: 0;
}

.hb-ui-connection-summary .hb-ui-details > div:last-child {
  border-bottom: 0;
}

/* Icon-led facts retain real definition-list semantics. */
.hb-ui-details .hb-ui-detail-with-icon {
  grid-template-columns: minmax(112px, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  align-items: start;
}
.hb-ui-detail-with-icon dt {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-weight: 400;
}
.hb-ui-detail-icon {
  display: inline-flex;
  width: 22px;
  flex: 0 0 22px;
  color: var(--hb-ink);
}
.hb-ui-detail-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}
.hb-ui-detail-description {
  display: block;
  margin-top: 3px;
  color: var(--hb-muted);
  font-weight: 400;
}
.hb-ui-connection-summary .hb-ui-details > .hb-ui-detail-with-icon {
  grid-template-columns: minmax(130px, 0.9fr) minmax(0, 1.1fr);
}
@media (max-width: 380px) {
  .hb-ui-details .hb-ui-detail-with-icon {
    grid-template-columns: minmax(94px, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
  }
  .hb-ui-detail-with-icon dt {
    gap: 8px;
  }
}
