:root {
  --ink: #17201c;
  --muted: #66736d;
  --line: #dce3df;
  --canvas: #e7ece9;
  --surface: #ffffff;
  --surface-soft: #f4f7f5;
  --green: #0f6b47;
  --green-dark: #084c33;
  --green-soft: #e5f4ed;
  --gold: #d7a31d;
  --gold-soft: #fff4d3;
  --red: #aa3037;
  --danger: #aa3037;
  --red-soft: #fbe9ea;
  --blue: #1769aa;
  --blue-soft: #e7f1f9;
  --purple: #68439b;
  --shadow: 0 24px 70px rgba(20, 35, 27, 0.18);
  --header-height: 62px;
  --nav-height: 68px;
  --radius: 8px;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
a,
input,
select,
textarea {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.3);
}

button {
  cursor: pointer;
}

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

h1 {
  margin-bottom: 5px;
  font-size: 24px;
  line-height: 1.2;
}

h2 {
  margin-bottom: 5px;
  font-size: 19px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.35;
}

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

p {
  margin-bottom: 0;
  line-height: 1.5;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 9px 12px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 5px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.device-stage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.app-frame {
  position: relative;
  width: min(430px, 100%);
  height: min(900px, calc(100dvh - 44px));
  min-height: 620px;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid #cbd5cf;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.boot-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
}

.boot-screen p {
  color: var(--muted);
}

.brand-symbol {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #ffffff;
  background: var(--green);
  border-radius: 8px;
  font-size: 28px;
  font-weight: 800;
}

.loading-line {
  width: 120px;
  height: 3px;
  margin-top: 24px;
  overflow: hidden;
  background: var(--line);
  border-radius: 3px;
}

.loading-line::after {
  content: "";
  display: block;
  width: 45%;
  height: 100%;
  background: var(--green);
  animation: loading 1.2s ease-in-out infinite alternate;
}

@keyframes loading {
  from { transform: translateX(0); }
  to { transform: translateX(122%); }
}

.mini-program-opening-screen {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--surface);
}

.mini-program-opening-spinner {
  width: 44px;
  height: 44px;
  display: block;
  border: 4px solid #dce9e3;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: mini-program-opening-spin 800ms linear infinite;
}

@keyframes mini-program-opening-spin {
  to { transform: rotate(360deg); }
}

.app-screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface-soft);
}

.app-header {
  z-index: 5;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 6px;
  padding: max(7px, env(safe-area-inset-top)) 12px 7px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.app-header.no-back {
  grid-template-columns: minmax(0, 1fr) auto;
}

.header-copy {
  min-width: 0;
}

.header-copy-button {
  width: 100%;
  padding: 3px 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 5px;
}

.header-copy-button:hover,
.header-copy-button:focus-visible {
  background: var(--surface-soft);
}

.header-copy strong,
.header-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-copy strong {
  font-size: 18px;
  line-height: 1.25;
}

.header-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.icon-button {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 7px;
}

.icon-button:hover {
  background: var(--surface-soft);
}

.icon-button svg,
.bottom-nav svg,
.inline-icon svg,
.action-icon svg,
.field-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.notification-badge {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: #ffffff;
  background: var(--red);
  border: 2px solid var(--surface);
  border-radius: 9px;
  font-size: 9px;
  font-weight: 800;
}

.screen-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 14px calc(var(--nav-height) + 22px);
  scrollbar-width: thin;
}

.screen-content.no-nav {
  padding-bottom: 24px;
}

.screen-content.with-composer {
  padding-bottom: 86px;
}

.screen-content.chat-wallpaper {
  background-color: #f5f0e6;
  background-image: url("./assets/adinkra-wallpaper-light.webp?v=1");
  background-repeat: repeat;
  background-size: 360px 640px;
}

.chat-wallpaper .chat-day-separator time {
  color: #47564f;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 1px 3px rgb(29 54 42 / 9%);
  backdrop-filter: blur(3px);
}

.chat-wallpaper .message-sender {
  color: #47564f;
  font-weight: 650;
  text-shadow: 0 1px 0 rgb(255 255 255 / 78%);
}

.chat-wallpaper .message-bubble {
  box-shadow: 0 1px 2px rgb(29 54 42 / 8%);
}

.bottom-nav {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: var(--nav-height);
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding: 5px 6px max(5px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
}

.bottom-nav button {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  color: #6f7b75;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}

.bottom-nav button.active {
  color: var(--green);
}

.bottom-nav button.active::after {
  content: "";
  width: 16px;
  height: 2px;
  margin-top: 1px;
  background: var(--green);
  border-radius: 2px;
}

.eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.policy-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  margin-bottom: 14px;
  color: #664b10;
  background: var(--gold-soft);
  border: 1px solid #ead28a;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 2px 10px;
}

.section-title:first-child {
  margin-top: 0;
}

.section-title span {
  color: var(--muted);
  font-size: 11px;
}

.primary-button,
.secondary-button,
.danger-button,
.text-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 7px;
  font-weight: 750;
}

.primary-button {
  color: #ffffff;
  background: var(--green);
  border: 1px solid var(--green);
}

.primary-button:hover {
  background: var(--green-dark);
}

.secondary-button {
  color: var(--green-dark);
  background: var(--surface);
  border: 1px solid #b9c8c0;
}

.danger-button {
  color: var(--red);
  background: var(--surface);
  border: 1px solid #e1b7ba;
}

.text-button {
  min-height: 36px;
  padding: 0 8px;
  color: var(--green);
  background: transparent;
  border: 0;
}

.full-width {
  width: 100%;
}

.hero-panel {
  padding: 20px;
  color: #ffffff;
  background: #183f31;
  border-radius: var(--radius);
}

.hero-panel .eyebrow {
  color: #b8e1cd;
}

.hero-panel h2 {
  font-size: 23px;
}

.hero-panel p {
  color: #d8e7df;
}

.hero-panel .primary-button {
  margin-top: 18px;
  color: var(--green-dark);
  background: #ffffff;
  border-color: #ffffff;
}

.progress-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 22px;
}

.progress-dots span {
  width: 7px;
  height: 7px;
  background: #c7d0cb;
  border-radius: 50%;
}

.progress-dots span.active {
  width: 22px;
  background: var(--green);
  border-radius: 4px;
}

.onboarding-screen {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: max(22px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
  background: var(--surface);
}

.onboarding-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
}

.onboarding-copy {
  margin: auto 0;
}

.onboarding-scroll {
  flex: 1 1 auto;
  min-height: 0;
  margin: 12px -4px 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 0 4px max(28px, env(safe-area-inset-bottom));
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.onboarding-scroll > :last-child {
  margin-bottom: 0;
}

.onboarding-copy > i,
.onboarding-copy > .large-symbol {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 8px;
}

.onboarding-copy > i svg {
  width: 28px;
  height: 28px;
}

.onboarding-copy h1 {
  max-width: 330px;
  font-size: 31px;
}

.onboarding-copy p {
  max-width: 340px;
  color: var(--muted);
  font-size: 16px;
}

.onboarding-actions {
  display: grid;
  gap: 10px;
}

.form-stack {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span:first-child {
  font-size: 12px;
  font-weight: 750;
}

.field small {
  color: var(--muted);
  font-size: 11px;
}

.field input,
.field select,
.field textarea,
.search-field {
  width: 100%;
  border: 1px solid #bdc9c2;
  border-radius: 7px;
  background: var(--surface);
}

.field input,
.field select,
.search-field {
  height: 47px;
  padding: 0 12px;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
  padding: 12px;
  line-height: 1.45;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-field:focus {
  border-color: var(--blue);
}

.password-input-shell {
  position: relative;
  display: block;
  width: 100%;
}

.field .password-input-shell input {
  padding-right: 48px;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  width: 39px;
  height: 39px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  transform: translateY(-50%);
}

.password-visibility-toggle:hover,
.password-visibility-toggle[aria-pressed="true"] {
  color: var(--green);
  background: var(--green-soft);
}

.password-visibility-toggle svg {
  width: 19px;
  height: 19px;
}

.form-error {
  padding: 10px 12px;
  color: #7e252b;
  background: var(--red-soft);
  border: 1px solid #e4b9bc;
  border-radius: 6px;
  font-size: 12px;
}

.membership-path {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.membership-row {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
}

.membership-row.interactive {
  cursor: pointer;
}

.membership-row.interactive:hover,
.membership-row.interactive:focus-visible {
  background: var(--surface-soft);
}

.membership-row.interactive > svg {
  color: var(--green);
}

.membership-row + .membership-row {
  border-top: 1px solid var(--line);
}

.membership-level {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.membership-row strong,
.membership-row small {
  display: block;
  overflow-wrap: anywhere;
}

.membership-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  text-transform: capitalize;
}

.search-wrap {
  position: relative;
  margin-bottom: 12px;
}

.search-wrap svg {
  position: absolute;
  top: 14px;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.search-wrap .search-field {
  padding-left: 40px;
}

.list-surface {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.conversation-row,
.account-row,
.notification-row,
.case-row,
.setting-row {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  text-align: left;
  background: var(--surface);
  border: 0;
}

.conversation-row + .conversation-row,
.account-row + .account-row,
.notification-row + .notification-row,
.case-row + .case-row,
.setting-row + .setting-row {
  border-top: 1px solid var(--line);
}

.conversation-row:hover,
.account-row:hover,
.notification-row:hover,
.case-row:hover,
.setting-row:hover {
  background: #f9fbfa;
}

.notification-policy-card,
.notification-card {
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.notification-policy-card > header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f4faf7;
  border-bottom: 1px solid var(--line);
}

.notification-policy-form {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.notification-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.notification-time-grid .field {
  margin: 0;
}

.notification-privacy-rule {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  margin: 0 12px 12px;
  padding: 10px;
  color: #315e4c;
  background: #edf8f3;
  border: 1px solid #cfe8dc;
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.45;
}

.notification-privacy-rule svg {
  width: 16px;
  height: 16px;
}

.notification-policy-tests {
  margin: 0 12px 10px;
  border-top: 1px solid var(--line);
}

.notification-policy-tests summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0 6px;
  color: #40534a;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.notification-policy-tests summary span,
.notification-policy-tests > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-policy-tests summary svg,
.notification-policy-tests summary i {
  width: 15px;
  height: 15px;
}

.notification-policy-tests p {
  margin: 2px 0 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.notification-policy-tests .text-button {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 10px;
}

.notification-mandatory-summary {
  display: block;
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.notification-stack {
  display: grid;
  gap: 9px;
}

.notification-card {
  margin-bottom: 0;
}

.notification-card.is-unread {
  border-left: 3px solid #1c7c59;
}

.notification-main {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}

.notification-main:hover,
.notification-main:focus-visible {
  background: #f9fbfa;
}

.notification-main .avatar {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}

.notification-main .row-copy > strong,
.notification-main .row-copy > small {
  display: block;
}

.notification-main .row-copy > strong {
  margin: 4px 0 2px;
  font-size: 12px;
}

.notification-main .row-copy > small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.notification-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.notification-labels .status-pill {
  padding: 3px 5px;
  font-size: 8px;
}

.notification-labels .status-pill.mandatory {
  color: #7e4d09;
  background: #fff2d9;
}

.notification-delivery-history {
  border-top: 1px solid var(--line);
}

.notification-delivery-history summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  color: #506159;
  cursor: pointer;
  font-size: 9px;
}

.notification-delivery-history summary span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
}

.notification-delivery-history summary svg,
.notification-delivery-history summary i {
  width: 13px;
  height: 13px;
}

.notification-delivery-history ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0 11px 11px;
  list-style: none;
}

.notification-attempt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  padding: 8px;
  background: #f6f8f7;
  border-radius: 9px;
}

.notification-attempt.status-failed {
  background: #fff1f2;
}

.notification-attempt.status-skipped {
  background: #fff8eb;
}

.notification-channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #344b40;
  font-size: 10px;
}

.notification-channel svg,
.notification-channel i {
  width: 14px;
  height: 14px;
}

.notification-attempt > small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.avatar,
.account-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--avatar, var(--green));
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.avatar.round {
  border-radius: 50%;
}

.row-copy {
  min-width: 0;
}

.row-copy strong,
.row-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.row-meta {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.unread-dot,
.unread-count {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  color: #ffffff;
  background: var(--red);
  border-radius: 9px;
  font-size: 9px;
  font-weight: 800;
}

.verified-mark {
  display: inline-flex;
  vertical-align: -3px;
  margin-left: 4px;
  color: var(--blue);
}

.verified-mark svg {
  width: 15px;
  height: 15px;
  fill: var(--blue);
  stroke: #ffffff;
}

.public-verification-mark {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  border: 1px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  background: #56645d;
  box-shadow: 0 0 0 1px rgb(49 64 56 / 18%);
  vertical-align: -4px;
  cursor: pointer;
}

.public-verification-mark svg,
.public-verification-mark i {
  width: 13px;
  height: 13px;
  stroke-width: 2.5;
}

.public-verification-mark.blue {
  background: #1674b6;
}

.public-verification-mark.candidate {
  background: #68439b;
}

.public-verification-mark.traditional {
  background: #8b641c;
}

.public-verification-mark.platform,
.public-verification-mark.affiliation {
  background: #0f6b47;
}

.public-verification-mark:focus-visible {
  outline: 3px solid rgb(22 116 182 / 32%);
  outline-offset: 2px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-action {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 13px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quick-action:hover {
  border-color: #a7bbb0;
}

.action-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--action, var(--green));
  background: var(--green-soft);
  border-radius: 7px;
}

.quick-action strong {
  font-size: 13px;
}

.civic-summary {
  padding: 16px;
  color: #ffffff;
  background: #193f32;
  border-radius: var(--radius);
}

.civic-summary .path-label {
  color: #b9dbc9;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.civic-summary h2 {
  margin-top: 7px;
}

.civic-summary p {
  color: #d6e7de;
  font-size: 12px;
}

.path-chips {
  display: flex;
  gap: 6px;
  margin-top: 13px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.path-chips span {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: #ffffff;
  background: #2b5a47;
  border: 1px solid #47725f;
  border-radius: 5px;
  font-size: 10px;
}

.civic-group-digest {
  --civic-hero-start: #8e111a;
  --civic-hero-end: #81520e;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #d7ddd9;
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(37, 49, 43, 0.08);
}

.civic-level-country {
  --civic-hero-start: #8e111a;
  --civic-hero-end: #81520e;
}

.civic-level-region {
  --civic-hero-start: #543180;
  --civic-hero-end: #176b57;
}

.civic-level-mmda {
  --civic-hero-start: #155d8b;
  --civic-hero-end: #0f6b47;
}

.civic-level-electoral_area {
  --civic-hero-start: #0b6040;
  --civic-hero-end: #83530b;
}

.civic-level-diaspora,
.civic-level-diaspora_country,
.civic-level-diaspora_city {
  --civic-hero-start: #174f78;
  --civic-hero-end: #0f6b47;
}

.civic-group-hero {
  position: relative;
  min-height: 206px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px 31px;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.17), transparent 26%),
    linear-gradient(145deg, var(--civic-hero-start, #8e111a), var(--civic-hero-end, #81520e));
}

.civic-group-hero::before {
  content: "";
  position: absolute;
  right: -35px;
  bottom: 11px;
  width: 210px;
  height: 90px;
  opacity: 0.18;
  background:
    linear-gradient(90deg, transparent 8%, #fff 8% 12%, transparent 12% 21%, #fff 21% 25%, transparent 25% 75%, #fff 75% 79%, transparent 79% 88%, #fff 88% 92%, transparent 92%),
    linear-gradient(0deg, #fff 0 9%, transparent 9% 68%, #fff 68% 76%, transparent 76%);
  clip-path: polygon(0 100%, 0 74%, 10% 74%, 16% 32%, 24% 74%, 41% 74%, 46% 45%, 54% 45%, 59% 74%, 76% 74%, 84% 24%, 91% 74%, 100% 74%, 100% 100%);
}

.civic-group-hero::after,
.civic-info-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 10px;
  background: linear-gradient(90deg, #b31924 0 33.333%, #e5b526 33.333% 66.666%, #0c6b43 66.666% 100%);
}

.civic-map-mark {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111814;
  background: rgba(245, 193, 50, 0.92);
  border: 3px solid rgba(255, 255, 255, 0.76);
  border-radius: 50% 44% 51% 39%;
  transform: rotate(-6deg);
  font-size: 28px;
}

.civic-verified {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.civic-verified svg {
  width: 15px;
  height: 15px;
}

.civic-group-hero h1,
.civic-group-hero p,
.civic-group-hero small {
  position: relative;
  z-index: 1;
}

.civic-group-hero h1 {
  max-width: 78%;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.civic-group-hero p {
  color: #fff8e6;
  font-size: 13px;
  font-weight: 750;
}

.civic-group-hero small {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
}

.civic-group-feed {
  padding: 0 14px;
}

.civic-feed-row {
  width: 100%;
  min-height: 94px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: center;
  gap: 13px;
  padding: 15px 0;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
}

.civic-feed-row + .civic-feed-row {
  border-top: 1px solid var(--line);
}

.civic-feed-copy,
.civic-feed-copy strong,
.civic-feed-copy span {
  min-width: 0;
  display: block;
}

.civic-feed-copy small {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.civic-feed-copy strong {
  font-size: 14px;
  line-height: 1.35;
}

.civic-feed-copy > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.civic-feed-mark {
  position: relative;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #111814;
  background: linear-gradient(#b31924 0 33.333%, #e5b526 33.333% 66.666%, #0c6b43 66.666% 100%);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(16, 25, 20, 0.12);
  font-size: 23px;
}

.civic-feed-mark b {
  transform: translateY(-1px);
}

.civic-group-assurance,
.civic-discussion-note,
.civic-role-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.civic-group-assurance > svg,
.civic-discussion-note > svg,
.civic-role-card > svg {
  width: 22px;
  height: 22px;
  margin: 4px auto 0;
  color: var(--green);
}

.civic-group-assurance strong,
.civic-group-assurance small,
.civic-discussion-note strong,
.civic-discussion-note small,
.civic-role-card strong,
.civic-role-card small {
  display: block;
}

.civic-group-assurance small,
.civic-discussion-note small,
.civic-role-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.civic-discussion-note {
  margin-top: 0;
  margin-bottom: 14px;
  background: var(--gold-soft);
  border-color: #ead28a;
}

.civic-group-dock-shell {
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--surface);
}

.civic-group-dock {
  min-height: 70px;
  display: grid;
  grid-template-columns: 54px repeat(3, minmax(0, 1fr));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
}

.civic-group-dock button {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-left: 1px solid #edf0ee;
  font-size: 11px;
  font-weight: 750;
}

.civic-group-dock button:first-child {
  border-left: 0;
}

.civic-group-dock button.active {
  color: var(--green);
  background: var(--green-soft);
}

.civic-group-dock button svg {
  width: 15px;
  height: 15px;
}

.civic-group-dock .civic-discussion-toggle svg {
  width: 24px;
  height: 24px;
}

.civic-group-popover {
  position: absolute;
  right: 10px;
  bottom: calc(70px + env(safe-area-inset-bottom));
  width: min(310px, calc(100% - 20px));
  padding: 7px;
  background: var(--surface);
  border: 1px solid #cdd6d1;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(20, 35, 27, 0.24);
}

.civic-group-popover::after {
  content: "";
  position: absolute;
  right: 32px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: var(--surface);
  border-right: 1px solid #cdd6d1;
  border-bottom: 1px solid #cdd6d1;
  transform: rotate(45deg);
}

.civic-group-popover button {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px 9px;
  color: inherit;
  background: var(--surface);
  border: 0;
  border-radius: 6px;
  text-align: left;
}

.civic-group-popover button + button {
  border-top: 1px solid var(--line);
}

.civic-group-popover button > span:first-child {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 6px;
}

.civic-group-popover strong,
.civic-group-popover small {
  display: block;
}

.civic-group-popover small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.civic-discussion-composer {
  gap: 7px;
}

.civic-discussion-composer .civic-hub-toggle {
  color: var(--green);
  background: var(--green-soft);
}

.civic-article-comment-composer {
  gap: 8px;
}

.civic-article-composer-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  font-size: 10px;
}

.civic-info-hero {
  position: relative;
  padding: 20px 18px 26px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(145deg, var(--civic-hero-start, #8e111a), var(--civic-hero-end, #81520e));
  border-radius: 10px;
}

.civic-info-mark {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #111814;
  background: #e5b526;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  font-size: 27px;
}

.civic-info-hero h1 {
  color: #ffffff;
}

.civic-info-hero p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
}

.civic-info-hero > div {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}

.civic-info-hero > div span {
  padding: 5px 7px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  font-size: 9px;
  font-weight: 750;
}

.civic-role-card {
  margin-top: 0;
}

.civic-role-card + .civic-role-card {
  margin-top: 8px;
}

.announcement-card {
  width: 100%;
  display: block;
  padding: 14px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.announcement-card + .announcement-card {
  margin-top: 9px;
}

.announcement-card.unread {
  border-left: 4px solid var(--green);
}

.announcement-source {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
}

.announcement-source .urgent-label {
  margin-left: auto;
  padding: 3px 6px;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 4px;
}

.announcement-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.announcement-card footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  color: var(--status-color, var(--green-dark));
  background: var(--status-bg, var(--green-soft));
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  text-transform: capitalize;
}

.case-row {
  grid-template-columns: 40px minmax(0, 1fr) auto;
}

.case-symbol {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--case-color, var(--green));
  background: var(--green-soft);
  border-radius: 7px;
}

.detail-hero {
  padding: 18px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--detail-color, var(--green));
  border-radius: var(--radius);
}

.detail-hero p {
  color: var(--muted);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.detail-meta > div {
  min-width: 0;
  padding: 10px;
  background: var(--surface-soft);
}

.detail-meta span,
.detail-meta strong {
  display: block;
  overflow-wrap: anywhere;
}

.detail-meta span {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-meta strong {
  font-size: 12px;
}

.prose-block {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prose-block p + p {
  margin-top: 12px;
}

.timeline {
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 2px;
  background: #bfd8cb;
}

.timeline-item {
  position: relative;
  padding: 0 0 18px 12px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -19px;
  width: 10px;
  height: 10px;
  background: var(--green);
  border: 2px solid var(--surface-soft);
  border-radius: 50%;
}

.timeline-item p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.timeline-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.category-option {
  position: relative;
}

.category-option input {
  position: absolute;
  opacity: 0;
}

.category-option label {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.category-option input:checked + label {
  border: 2px solid var(--green);
  background: var(--green-soft);
}

.category-option input:focus-visible + label {
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.3);
}

.category-option label i {
  color: var(--category-color, var(--green));
}

.category-option label span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.choice-group {
  display: grid;
  gap: 8px;
}

.choice-row {
  position: relative;
}

.choice-row input {
  position: absolute;
  opacity: 0;
}

.choice-row label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.choice-row label::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid #9aaba2;
  border-radius: 50%;
}

.choice-row input:checked + label {
  border-color: var(--green);
}

.choice-row input:checked + label::before {
  border: 5px solid var(--green);
}

.choice-row input:focus-visible + label {
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.3);
}

.choice-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-day-separator {
  width: 100%;
  display: flex;
  max-width: none;
  justify-content: center;
  align-items: center;
  margin: 4px 0 2px;
  grid-column: 1 / -1;
}

.chat-day-separator time {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgb(29 54 42 / 7%);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.message {
  max-width: 82%;
  align-self: flex-start;
}

.message.mine {
  align-self: flex-end;
}

.message-sender {
  display: block;
  margin: 0 4px 4px;
  color: var(--muted);
  font-size: 10px;
}

.message.mine .message-sender {
  text-align: right;
}

.message-bubble {
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.message.mine .message-bubble {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

.forwarded-marker {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-style: italic;
  font-weight: 700;
}

.forwarded-marker svg {
  width: 11px;
  height: 11px;
}

.message.mine .forwarded-marker {
  color: rgba(255, 255, 255, 0.78);
}

.forwarded-article-bubble {
  position: relative;
  padding: 6px;
}

.forwarded-article-card {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  padding: 9px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: left;
}

.forwarded-article-card .field-icon {
  width: 32px;
  height: 32px;
}

.forwarded-article-card .row-copy span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: 10px;
}

.forwarded-article-card > svg {
  width: 14px;
  height: 14px;
}

.shared-mini-program-bubble {
  position: relative;
  padding: 6px;
}

.shared-mini-program-message-card {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  background: linear-gradient(135deg, #f7fbf9, #edf7f2);
  border: 1px solid #c8dfd4;
  border-radius: 10px;
}

.shared-mini-program-message-card > span:nth-child(2),
.mini-program-share-composer-card > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.shared-mini-program-message-card small,
.mini-program-share-composer-card small {
  color: var(--green);
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.shared-mini-program-message-card strong,
.shared-mini-program-message-card em,
.mini-program-share-composer-card strong,
.mini-program-share-composer-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shared-mini-program-message-card strong,
.mini-program-share-composer-card strong {
  font-size: 12px;
}

.shared-mini-program-message-card em,
.mini-program-share-composer-card em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.shared-mini-program-message-card > svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.shared-mini-program-icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(145deg, #0f6b47, #22a06b);
  border-radius: 10px;
}

.shared-mini-program-icon svg {
  width: 21px;
  height: 21px;
}

.forwarding-page {
  display: grid;
  gap: 12px;
  padding-bottom: 8px;
}

.forwarding-source {
  display: grid;
  gap: 7px;
}

.forwarding-source > small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.forward-preview {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong, #cbd5d0);
  border-radius: 8px;
}

.forward-preview .row-copy strong,
.forward-preview .row-copy span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.forward-preview .row-copy span {
  color: var(--muted);
  font-size: 10px;
}

.forwarding-search {
  margin: 0;
}

.forward-selected {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
}

.forward-selected button {
  min-width: 62px;
  max-width: 72px;
  display: grid;
  justify-items: center;
  gap: 3px;
  position: relative;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.forward-selected button > svg {
  position: absolute;
  top: -2px;
  right: 5px;
  width: 15px;
  height: 15px;
  padding: 2px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
}

.forward-selected small {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forward-target-list {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.forward-target {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  text-align: left;
}

.forward-target + .forward-target {
  border-top: 1px solid var(--line);
}

.forward-target.selected {
  background: var(--green-soft);
}

.forward-check {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  border: 1px solid #aab7b1;
  border-radius: 50%;
}

.forward-target.selected .forward-check {
  background: var(--green);
  border-color: var(--green);
}

.forward-check svg {
  width: 13px;
  height: 13px;
}

.forward-send {
  position: sticky;
  bottom: 0;
  box-shadow: 0 -8px 18px var(--surface);
}

.message-time {
  display: block;
  margin: 4px 4px 0;
  color: var(--muted);
  font-size: 9px;
}

.message.mine .message-time {
  text-align: right;
}

.message-composer {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 70px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.message-composer > .icon-button {
  flex: 0 0 40px;
}

.composer-attachment-draft {
  flex: 0 0 100%;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
}

.message-composer:has(.composer-attachment-draft) {
  flex-wrap: wrap;
}

.composer-attachment-draft > span {
  min-width: 150px;
  max-width: 220px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.composer-attachment-draft strong,
.composer-attachment-draft small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-attachment-draft strong { font-size: 10px; }
.composer-attachment-draft small { color: var(--muted); font-size: 8px; }
.composer-attachment-draft button { padding: 3px; background: transparent; border: 0; }
.composer-attachment-draft button svg { width: 14px; }

.message-attachments {
  display: grid;
  gap: 4px;
  margin: -4px -6px 7px;
}

.message-attachments.count-2,
.message-attachments.count-3,
.message-attachments.count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.message-attachments img,
.message-attachments video {
  width: 100%;
  max-height: 330px;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  background: #111814;
}

.message-attachments audio {
  width: min(260px, 100%);
}

.document-attachment {
  min-width: 210px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 7px;
  padding: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid currentColor;
  border-radius: 6px;
  text-decoration: none;
}

.document-attachment strong,
.document-attachment small { display: block; }
.document-attachment small { opacity: 0.78; font-size: 9px; }

.channel-post-media {
  width: 100%;
  max-height: 520px;
  display: block;
  object-fit: cover;
  background: #111814;
}

.channel-post-audio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  background: var(--surface-soft);
}

.channel-post-audio audio { width: 100%; }
.channel-publish-form { margin: 0 0 14px; }

.message-composer.sharing-mini-program {
  flex-wrap: wrap;
}

.mini-program-share-composer-card {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  background: #f0f8f4;
  border: 1px solid #c8dfd4;
  border-radius: 9px;
}

.mini-program-share-composer-card > .icon-button {
  width: 34px;
  height: 34px;
}

.message-composer.sharing-mini-program input[type="hidden"] {
  display: none;
}

.message-composer input {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: 42px;
  padding: 0 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 16px;
}

.mention-suggestions {
  position: absolute;
  z-index: 12;
  left: 10px;
  right: 10px;
  bottom: calc(100% + 6px);
  max-height: min(280px, 42vh);
  overflow-y: auto;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(20, 35, 29, 0.16);
}

.mention-suggestions button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 7px;
}

.mention-suggestions button:active,
.mention-suggestions button:focus-visible {
  background: var(--surface-soft);
}

.mention-suggestions .avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  font-size: 11px;
}

.mention-suggestions button > span:last-child {
  display: grid;
  gap: 2px;
}

.mention-suggestions small {
  color: var(--muted);
  font-size: 10px;
}

.inline-token {
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
}

.message.mine .inline-token {
  color: #d7f4e8;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 2px;
}

.inline-token:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 2px;
}

.send-button {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--green);
  border: 0;
  border-radius: 7px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 12px 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-button {
  min-width: 0;
  min-height: 67px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 2px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.service-button i {
  color: var(--service-color, var(--green));
}

.service-button i svg {
  width: 22px;
  height: 22px;
}

.account-hero {
  padding: 22px 18px;
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.account-hero .account-avatar {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  font-size: 17px;
}

.account-hero p {
  color: var(--muted);
  font-size: 12px;
}

.account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.profile-hero .avatar {
  width: 60px;
  height: 60px;
  font-size: 17px;
}

.profile-hero p {
  color: var(--muted);
  font-size: 11px;
}

.setting-row {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 58px;
}

.setting-row .field-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 6px;
}

.toggle {
  width: 40px;
  height: 23px;
  padding: 3px;
  background: #aab6b0;
  border: 0;
  border-radius: 12px;
}

.toggle::after {
  content: "";
  display: block;
  width: 17px;
  height: 17px;
  background: #ffffff;
  border-radius: 50%;
}

.toggle.on {
  background: var(--green);
}

.toggle.on::after {
  transform: translateX(17px);
}

.consent-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.45;
}

.consent-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.utility-banner {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.utility-banner > svg:first-child {
  color: var(--green);
}

.utility-banner span strong,
.utility-banner span small {
  display: block;
}

.network-banner,
.live-location-banner {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  padding: 9px 11px;
  color: #174f38;
  text-align: left;
  background: #e9f5ef;
  border: 1px solid #b8d9c9;
  border-radius: var(--radius);
}

.network-banner.offline {
  color: #72530d;
  background: #fff6dc;
  border-color: #e8d398;
}

.network-banner span strong,
.network-banner span small,
.live-location-banner span strong,
.live-location-banner span small {
  display: block;
}

.network-banner span small,
.live-location-banner span small {
  margin-top: 2px;
  font-size: 9px;
}

.live-location-banner button {
  padding: 7px 9px;
  color: #ffffff;
  background: var(--green);
  border: 0;
  border-radius: 6px;
}

.utility-banner span small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.mini-icon {
  width: 12px;
  height: 12px;
  vertical-align: -2px;
}

.prose-block.compact {
  padding: 13px;
}

.contact-picker {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
}

.contact-picker legend {
  margin-bottom: 8px;
  font-weight: 700;
}

.contact-option {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-option input {
  position: absolute;
  opacity: 0;
}

.contact-option .selection-mark {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  border: 2px solid #9aa9a1;
  border-radius: 50%;
}

.contact-option input:checked ~ .selection-mark {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

.contact-option:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.3);
}

.contact-option.blocked {
  opacity: 0.55;
}

/* Chat, contact, and camera surfaces adapted from the supplied mobile references. */
.chat-inbox {
  min-height: 100%;
  margin: -16px -14px calc(-1 * (var(--nav-height) + 22px));
  padding-bottom: calc(var(--nav-height) + 22px);
  background: #eef1ef;
}

.inbox-search {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: #eef1ef;
}

.inbox-search > svg {
  position: absolute;
  z-index: 1;
  left: 28px;
  width: 18px;
  height: 18px;
  color: #7c8782;
  pointer-events: none;
}

.inbox-search .search-field {
  height: 40px;
  padding: 0 14px 0 40px;
  background: #ffffff;
  border: 0;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(35, 48, 42, 0.04);
}

.inbox-search .search-field:focus {
  border: 0;
  box-shadow: 0 0 0 2px rgba(15, 107, 71, 0.25);
}

.inbox-search.compact {
  flex: 1 1 180px;
  padding: 0;
  background: transparent;
}

.inbox-search.compact > svg {
  left: 12px;
}

.inbox-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.inbox-shortcut {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  text-align: left;
  background: #ffffff;
  border: 0;
  border-radius: 7px;
}

.inbox-shortcut > svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.inbox-shortcut span strong,
.inbox-shortcut span small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-shortcut span strong {
  font-size: 12px;
}

.inbox-shortcut span small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.network-dot {
  width: 9px;
  height: 9px;
  justify-self: center;
  background: #16a267;
  border: 2px solid #ccebdc;
  border-radius: 50%;
}

.inbox-shortcut.offline .network-dot {
  background: var(--gold);
  border-color: #f7e7b2;
}

.inbox-archive-toggle {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  color: #44524c;
  text-align: left;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.inbox-archive-toggle > svg {
  width: 17px;
  color: var(--green);
}

.inbox-section-heading {
  min-height: 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 15px;
  color: #67736d;
  background: #eef1ef;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.inbox-section-heading small {
  font-size: 9px;
  font-weight: 600;
  text-transform: none;
}

.inbox-list {
  border: 0;
  border-radius: 0;
}

.inbox-list .conversation-row {
  min-height: 72px;
  grid-template-columns: 50px minmax(0, 1fr) 52px;
  gap: 10px;
  padding: 10px 14px;
}

.inbox-list .conversation-row.pinned {
  background: #f5f8f6;
}

.inbox-list .conversation-row + .conversation-row {
  position: relative;
  border-top: 0;
}

.inbox-list .conversation-row + .conversation-row::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 74px;
  height: 1px;
  content: "";
  background: var(--line);
}

.inbox-avatar-wrap {
  position: relative;
  display: inline-flex;
}

.avatar-unread {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  color: #ffffff;
  background: var(--red);
  border: 2px solid #ffffff;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
}

.inbox-list .row-copy strong {
  font-size: 14px;
  font-weight: 720;
}

.inbox-list .row-copy small {
  margin-top: 5px;
  font-size: 11px;
}

.inbox-list .row-meta {
  justify-content: flex-start;
  padding-top: 4px;
  font-size: 9px;
}

.row-flags {
  min-height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.quick-menu-layer {
  position: absolute;
  z-index: 30;
  inset: 0;
  background: rgba(11, 17, 14, 0.03);
}

.chat-quick-menu {
  position: absolute;
  top: calc(var(--header-height) - 3px);
  right: 10px;
  width: 205px;
  overflow: visible;
  color: #ffffff;
  background: #2d3431;
  border-radius: 5px;
  box-shadow: 0 14px 36px rgba(7, 12, 9, 0.3);
}

.chat-quick-menu::before {
  position: absolute;
  top: -7px;
  right: 17px;
  width: 14px;
  height: 14px;
  content: "";
  background: #2d3431;
  transform: rotate(45deg);
}

.chat-quick-menu button {
  position: relative;
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}

.chat-quick-menu button + button {
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.chat-quick-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.chat-quick-menu svg {
  width: 21px;
  height: 21px;
}

.conversation-call-menu {
  right: 92px;
  width: 190px;
}

.done-button {
  min-height: 34px;
  padding: 0 11px;
  color: #ffffff;
  background: var(--green);
  border: 0;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 750;
}

.done-button:disabled {
  color: #8b9690;
  background: #e0e5e2;
  cursor: default;
}

.new-chat-form {
  display: grid;
  gap: 12px;
  margin: -16px -14px -24px;
  padding-bottom: 24px;
  background: #eef1ef;
}

.contact-search-shell {
  min-height: 60px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

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

.selected-contact-chips button {
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.selected-contact-chips .avatar {
  width: 34px;
  height: 34px;
  font-size: 10px;
}

.contact-flow-row {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  text-align: left;
  background: #ffffff;
  border: 0;
}

.contact-flow-row span strong,
.contact-flow-row span small {
  display: block;
}

.contact-flow-row span small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.group-name-field {
  display: none;
  padding: 0 14px 12px;
  background: #ffffff;
}

.group-name-field.visible {
  display: grid;
}

.new-chat-form .contact-picker {
  display: block;
  background: #ffffff;
}

.new-chat-form .contact-picker legend {
  width: 100%;
  margin: 0;
  padding: 9px 14px;
  color: var(--muted);
  background: #eef1ef;
  font-size: 10px;
  text-transform: uppercase;
}

.new-chat-form .contact-option {
  position: relative;
  min-height: 68px;
  grid-template-columns: 25px 44px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 14px;
  border: 0;
  border-radius: 0;
}

.new-chat-form .contact-option + .contact-option::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 49px;
  height: 1px;
  content: "";
  background: var(--line);
}

.new-chat-form .contact-option .avatar {
  width: 42px;
  height: 42px;
}

.new-chat-note {
  padding: 0 14px;
  color: var(--muted);
  font-size: 10px;
}

.add-contact-page {
  min-height: calc(100% + 40px);
  margin: -16px -14px -24px;
  padding-bottom: 24px;
  background: #eef1ef;
}

.contact-directory-search {
  padding-bottom: 16px;
}

.contact-discovery-list {
  background: #ffffff;
}

.contact-discovery-list button,
.my-code-card {
  position: relative;
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  text-align: left;
  background: #ffffff;
  border: 0;
}

.contact-discovery-list button + button::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 67px;
  height: 1px;
  content: "";
  background: var(--line);
}

.contact-discovery-list button > svg,
.my-code-card > svg:last-child {
  width: 17px;
  color: #9aa49f;
}

.contact-discovery-list button span strong,
.contact-discovery-list button span small,
.my-code-card span strong,
.my-code-card span small {
  display: block;
}

.contact-discovery-list button span small,
.my-code-card span small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.contact-discovery-list .row-copy,
.my-code-card .row-copy {
  min-width: 0;
}

.contact-discovery-list .row-copy strong,
.contact-discovery-list .row-copy small,
.my-code-card .row-copy strong,
.my-code-card .row-copy small {
  overflow-wrap: anywhere;
  white-space: normal;
}

.discovery-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 7px;
}

.discovery-icon svg {
  width: 21px;
  height: 21px;
}

.discovery-icon.blue { background: #2679bc; }
.discovery-icon.green { background: #249b68; }
.discovery-icon.purple { background: #7152a5; }
.discovery-icon.coral { background: #c86652; }

.my-code-card {
  margin-top: 12px;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
}

.my-code-card > svg:first-child {
  width: 28px;
  height: 28px;
  justify-self: center;
  color: var(--green);
}

.camera-screen {
  position: absolute;
  z-index: 40;
  inset: 0;
  overflow: hidden;
  color: #ffffff;
  background-color: #111914;
  background-image: url("./scene-sprite.webp?v=1");
  background-repeat: no-repeat;
  background-position-y: center;
  background-size: auto 100%;
}

.camera-screen.scene-0 { background-position-x: 16.667%; }
.camera-screen.scene-1 { background-position-x: 50%; }
.camera-screen.scene-2 { background-position-x: 83.333%; }

.camera-screen::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(4, 10, 7, 0.58), transparent 28%, transparent 58%, rgba(4, 10, 7, 0.78));
  pointer-events: none;
}

.camera-header,
.camera-controls,
.camera-caption,
.camera-focus {
  position: absolute;
  z-index: 2;
}

.camera-header {
  top: 0;
  right: 0;
  left: 0;
  min-height: 66px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  padding: max(8px, env(safe-area-inset-top)) 8px 8px;
  text-align: center;
  font-weight: 700;
}

.camera-header button,
.camera-controls > button:not(.camera-shutter) {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  color: #ffffff;
  background: rgba(11, 18, 14, 0.34);
  border: 0;
  border-radius: 50%;
}

.camera-focus {
  top: 43%;
  left: 50%;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  transform: translate(-50%, -50%);
}

.camera-caption {
  right: 24px;
  bottom: 145px;
  left: 24px;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.camera-caption strong,
.camera-caption small {
  display: block;
}

.camera-caption small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
}

.camera-controls {
  right: 0;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 0;
  display: grid;
  grid-template-columns: 1fr 96px 1fr;
  align-items: center;
  padding: 0 28px;
}

.camera-shutter {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  padding: 0;
  background: transparent;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
}

.camera-shutter span {
  width: 60px;
  height: 60px;
  display: block;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 120ms ease;
}

.camera-shutter:active span {
  transform: scale(0.88);
}

.message-bubble {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
}

.reply-quote {
  display: block;
  margin-bottom: 7px;
  padding: 6px 8px;
  color: var(--muted);
  background: var(--surface-soft);
  border-left: 3px solid #88a69a;
  border-radius: 4px;
  font-size: 10px;
}

.reply-quote strong,
.reply-quote span {
  display: block;
}

.message.mine .reply-quote {
  color: #e5f4ed;
  background: rgba(255, 255, 255, 0.12);
  border-left-color: #ffffff;
}

.message-type {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.message-type svg {
  width: 14px;
  height: 14px;
}

.message-translation {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.message-translation small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.message-translation small svg {
  width: 13px;
  height: 13px;
}

.message.mine .message-translation {
  border-top-color: rgba(255, 255, 255, 0.28);
}

.message.mine .message-translation small {
  color: rgba(255, 255, 255, 0.82);
}

.linkupai-navigation-actions {
  width: min(286px, calc(100vw - 78px));
  margin-top: 5px;
  display: grid;
  gap: 5px;
}

.linkupai-navigation-actions > button {
  min-height: 48px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.linkupai-navigation-actions > button:disabled { opacity: .55; }
.linkupai-navigation-actions .field-icon { width: 30px; height: 30px; }
.linkupai-navigation-actions .field-icon svg { width: 16px; height: 16px; }
.linkupai-navigation-actions .row-copy { min-width: 0; }
.linkupai-navigation-actions strong { font-size: .72rem; }
.linkupai-navigation-actions small { color: var(--muted); font-size: .61rem; line-height: 1.25; }
.linkupai-navigation-actions > button > svg { width: 15px; height: 15px; margin-left: auto; flex: 0 0 auto; }

.settings-language-field {
  margin: 0;
  padding: 12px;
}

.reaction-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.reaction-strip button {
  padding: 4px 6px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 9px;
}

.message.mine .reaction-strip {
  justify-content: flex-end;
}

.screen-content.with-composer {
  padding-bottom: 132px;
}

.message-composer.replying {
  flex-wrap: wrap;
}

.composer-reply {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  background: var(--surface-soft);
  border-left: 3px solid var(--green);
  border-radius: 5px;
}

.composer-reply span strong,
.composer-reply span small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-reply span small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.detail-hero.compact {
  text-align: center;
}

.detail-hero.compact .avatar {
  width: 58px;
  height: 58px;
  margin-bottom: 10px;
}

.compact-select {
  max-width: 84px;
  padding: 7px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.member-row,
.request-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
}

.member-row + .member-row,
.request-row + .request-row {
  border-top: 1px solid var(--line);
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 9px;
}

.inline-form select {
  min-width: 0;
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.activity-list {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}

.activity-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.danger-row {
  color: var(--danger);
}

.danger-row .field-icon {
  color: var(--danger);
  background: #fff1f1;
}

.member-row .avatar {
  width: 40px;
  height: 40px;
}

.danger-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.action-sheet {
  width: 100%;
  max-height: 80%;
  overflow-y: auto;
  padding: 12px;
  background: var(--surface);
  border-radius: var(--radius);
}

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 12px;
  background: #a9b6af;
  border-radius: 2px;
}

.sheet-preview {
  max-height: 64px;
  overflow: hidden;
  margin-bottom: 12px;
  color: var(--muted);
}

.reaction-actions,
.attachment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 12px;
}

.reaction-actions button,
.attachment-grid button,
.attachment-grid .attachment-picker {
  min-width: 0;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 10px;
}

.attachment-grid .attachment-picker {
  position: relative;
  cursor: pointer;
}

.attachment-grid .attachment-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.attachment-policy-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 9px;
}

.attachment-policy-note svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}

.reaction-actions small {
  color: var(--muted);
  font-size: 8px;
}

.profile-hero {
  width: 100%;
  color: inherit;
  text-align: left;
}

.profile-editor-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  color: var(--muted);
  font-size: 10px;
}

.profile-editor-avatar .avatar {
  width: 68px;
  height: 68px;
  font-size: 20px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.trust-grid > span {
  min-height: 98px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.trust-grid svg {
  color: var(--green);
}

.trust-grid small {
  color: var(--muted);
}

.share-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 18px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.share-card p,
.share-card small {
  color: var(--muted);
}

.share-card .avatar {
  width: 60px;
  height: 60px;
}

.qr-placeholder {
  width: 176px;
  height: 176px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
  color: var(--ink);
  background: #ffffff;
  border: 8px solid #ffffff;
  outline: 1px solid var(--line);
}

.qr-placeholder svg {
  width: 150px;
  height: 150px;
}

.qr-placeholder img,
.qr-placeholder canvas {
  width: 160px !important;
  height: 160px !important;
}

/* Bilateral, approval-gated contact discovery. */
.new-friends-page,
.scan-contact-page {
  min-height: calc(100% + 40px);
  margin: -16px -14px -24px;
  padding: 14px 0 28px;
  background: #eef1ef;
}

.friend-search-shortcut {
  width: calc(100% - 28px);
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 14px 14px;
  padding: 0 13px;
  color: #8a948f;
  text-align: left;
  background: #ffffff;
  border: 1px solid #e3e8e5;
  border-radius: 8px;
}

.friend-search-shortcut svg {
  width: 18px;
}

.friend-request-list {
  background: #ffffff;
}

.friend-request-row {
  position: relative;
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 15px;
  color: inherit;
  text-align: left;
  background: #ffffff;
  border: 0;
}

.friend-request-row + .friend-request-row::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 74px;
  height: 1px;
  content: "";
  background: var(--line);
}

.friend-request-row .avatar {
  width: 46px;
  height: 46px;
}

.friend-request-row .row-copy small,
.friend-request-row .row-copy time {
  display: block;
}

.friend-request-row .row-copy small {
  max-width: 230px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-request-row .row-copy time {
  margin-top: 3px;
  color: #9aa39f;
  font-size: 8px;
}

.friend-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 52px;
  min-height: 26px;
  padding: 4px 8px;
  color: #68736e;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
  background: #f0f2f1;
  border-radius: 6px;
}

.friend-status.approve,
.friend-status.add {
  color: #ffffff;
  background: var(--green);
}

.friend-status.added {
  color: #4d5953;
  background: transparent;
}

.friend-status.pending {
  color: #725314;
  background: #fff4d8;
}

.friend-status.declined {
  color: #7a4b4e;
  background: #f8e9ea;
}

.friend-status .friend-direction {
  width: 13px;
  height: 13px;
}

.header-text-action {
  width: auto;
  min-height: 34px;
  padding: 0 2px;
  color: var(--ink);
  white-space: nowrap;
}

.friend-request-detail {
  display: grid;
  gap: 12px;
}

.friend-profile-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 26px 18px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.friend-profile-card .avatar {
  width: 70px;
  height: 70px;
  font-size: 20px;
}

.friend-profile-card h1,
.friend-profile-card p {
  margin: 0;
}

.friend-profile-card p {
  color: var(--muted);
}

.resident-profile-section {
  display: grid;
  gap: 8px;
}

.resident-profile-section .section-title {
  margin-top: 2px;
}

.profile-moment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.profile-moment-card {
  overflow: hidden;
  display: block;
  aspect-ratio: 1;
  background: var(--surface);
  border-radius: 7px;
}

.profile-moment-card > img,
.profile-moment-card > video,
.profile-moment-card > .scene-media {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.profile-moment-card > span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 7px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 10px;
  text-align: center;
}

.profile-moments-link {
  width: 100%;
  padding: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
}

.profile-moments-link .section-title {
  grid-template-columns: minmax(0, 1fr) auto;
}

.profile-moments-link .section-title svg {
  width: 18px;
  color: var(--muted);
}

.profile-channel-list {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.profile-channel-list > button {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 42px minmax(88px, 1fr) auto 18px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
}

.profile-channel-list > button + button {
  border-top: 1px solid var(--line);
}

.profile-channel-list .row-copy {
  min-width: 0;
}

.profile-channel-list .row-copy strong,
.profile-channel-list .row-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-channel-posts {
  display: flex;
  gap: 4px;
}

.profile-channel-preview {
  overflow: hidden;
  width: 38px;
  border-radius: 5px;
}

.profile-channel-preview .scene-media {
  aspect-ratio: 1;
}

.profile-channel-preview .media-play {
  width: 20px;
  height: 20px;
}

.profile-channel-preview .media-play svg {
  width: 10px;
}

.resident-profile-actions {
  margin-top: 3px;
}

.friend-request-facts {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.friend-request-facts > div {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 14px;
}

.friend-request-facts > div + div {
  border-top: 1px solid var(--line);
}

.friend-request-facts dt {
  color: var(--muted);
}

.friend-request-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.friend-approval-actions {
  display: grid;
  gap: 4px;
}

.friend-preference-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.friend-preference-card h2 {
  margin: 0;
  font-size: 14px;
}

.friend-preference-card label:not(.friend-privacy-toggle) > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
}

.friend-preference-card input[type="text"],
.friend-preference-card input:not([type]) {
  width: 100%;
}

.friend-privacy-toggle {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
}

.friend-privacy-toggle > span {
  display: grid !important;
  justify-content: initial !important;
  gap: 3px;
  margin: 0 !important;
}

.friend-privacy-toggle strong {
  color: var(--ink);
  font-size: 12px;
}

.friend-privacy-toggle small {
  color: var(--muted);
  font-size: 9px;
}

.friend-privacy-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.friend-privacy-toggle i {
  position: relative;
  width: 38px;
  height: 22px;
  background: #c9d1cd;
  border-radius: 999px;
  transition: background 160ms ease;
}

.friend-privacy-toggle i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  content: "";
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(20, 38, 29, 0.25);
  transition: transform 160ms ease;
}

.friend-privacy-toggle input:checked + i {
  background: var(--green);
}

.friend-privacy-toggle input:checked + i::after {
  transform: translateX(16px);
}

.friend-privacy-toggle input:focus-visible + i {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.friend-communication-actions {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.friend-communication-actions button {
  position: relative;
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #36578f;
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 760;
}

.friend-communication-actions button + button::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--line);
}

.friend-communication-actions svg {
  width: 20px;
  height: 20px;
}

.friend-call-sheet > h2,
.friend-call-sheet > p {
  text-align: center;
}

.friend-call-sheet > p {
  margin: -3px 0 14px;
  color: var(--muted);
}

.friend-call-sheet .setting-row {
  width: 100%;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
}

.friend-search-form > small {
  display: block;
  margin: 0 14px 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.friend-search-form .inbox-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.friend-search-form .search-field {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  font-size: 16px;
}

.friend-search-form .inbox-search button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  color: var(--green);
  font-weight: 750;
  background: transparent;
  border: 0;
}

.friend-search-error {
  margin: 0 14px 12px;
}

.friend-discovery-result {
  margin: 0 14px 12px;
  padding: 13px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.friend-person-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.friend-person-row .avatar {
  width: 44px;
  height: 44px;
}

.friend-request-compose {
  display: grid;
  gap: 10px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.friend-request-compose label > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}

.friend-request-compose textarea,
.friend-request-compose input:not([type="hidden"]) {
  width: 100%;
  padding: 9px 10px;
  color: var(--ink);
  background: #f7f9f8;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.friend-request-compose textarea {
  min-height: 66px;
  resize: vertical;
}

.qr-scan-panel {
  display: grid;
  gap: 12px;
  margin: 0 14px 14px;
  padding: 18px;
  background: #16231d;
  border-radius: 12px;
}

.qr-scan-frame {
  aspect-ratio: 1.35;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #ffffff;
  background: radial-gradient(circle at center, #334d41, #182820 68%);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
}

.qr-scan-frame svg {
  width: 72px;
  height: 72px;
}

.qr-live-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: radial-gradient(circle at center, #334d41, #182820 68%);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 10px;
}

.qr-live-viewport video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.qr-scan-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #ffffff;
}

.qr-scan-placeholder svg {
  width: 62px;
  height: 62px;
}

.qr-scan-corners {
  position: absolute;
  z-index: 2;
  inset: 16%;
  pointer-events: none;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 12px;
  box-shadow: 0 0 0 999px rgba(5, 17, 12, 0.25);
}

.qr-scan-panel[data-scanner-status="starting"] .qr-scan-placeholder,
.qr-scan-panel[data-scanner-status="scanning"] .qr-scan-placeholder {
  display: none;
}

.qr-scan-panel[data-scanner-status="selected"] .qr-scan-corners {
  border-color: #84e0b5;
}

.qr-scanner-status {
  min-height: 28px;
  display: grid;
  place-items: center;
}

.qr-scanner-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.qr-scanner-actions .secondary-button,
.qr-scanner-actions .text-button {
  width: auto;
  min-height: 38px;
}

.qr-scan-panel p {
  margin: 0;
  color: #c4d0ca;
  font-size: 9px;
  text-align: center;
}

.qr-file-button {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.qr-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-code-form {
  margin: 0 14px 14px;
  padding: 14px;
  background: #ffffff;
  border-radius: 9px;
}

.device-list {
  display: grid;
  gap: 8px;
}

.device-card {
  min-height: 78px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.device-card.revoked {
  opacity: 0.58;
}

.device-revoke-controls {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.device-revoke-controls .field {
  min-width: 0;
  margin: 0;
}

.vpn-window-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 10px 0;
}

.vpn-window-tabs button {
  min-width: 0;
  padding: 8px 3px;
  color: var(--muted);
  font-size: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.vpn-window-tabs button.active {
  color: var(--green-dark);
  font-weight: 700;
  background: var(--green-soft);
  border-color: var(--green);
}

.vpn-bandwidth-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.vpn-bandwidth-stats span {
  display: grid;
  gap: 2px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.vpn-bandwidth-stats small {
  color: var(--muted);
}

.vpn-device-action {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.vpn-device-action .field {
  min-width: 0;
  margin: 0;
}

.vpn-device-action textarea {
  min-height: 58px;
}

.vpn-passphrase-sheet input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  letter-spacing: 0.03em;
}

@media (max-width: 430px) {
  .device-revoke-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .vpn-device-action {
    grid-template-columns: minmax(0, 1fr);
  }
}

.danger-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--danger);
  background: #fff1f1;
  border: 1px solid #f1c8c8;
  border-radius: 7px;
}

.empty-state {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
  border: 1px dashed #b9c7c0;
  border-radius: var(--radius);
}

.empty-state svg {
  width: 28px;
  height: 28px;
}

.empty-state h2 {
  margin-bottom: 0;
  color: var(--ink);
}

.empty-state.compact {
  min-height: 76px;
  padding: 13px;
  border-radius: 12px;
}

.empty-state.compact svg,
.empty-state.compact i {
  width: 22px;
  height: 22px;
}

.empty-state.compact h2,
.empty-state.compact h3,
.empty-state.compact p {
  margin: 0;
}

.empty-state.compact h2,
.empty-state.compact h3 {
  color: var(--ink);
  font-size: 12px;
}

.empty-state.compact p {
  font-size: 10px;
  line-height: 1.4;
}

.modal-backdrop {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: rgba(17, 28, 22, 0.55);
}

.confirm-sheet {
  width: 100%;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius);
}

.confirm-sheet p {
  color: var(--muted);
}

.confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.mini-release-confirmation-backdrop {
  z-index: 80;
}

.mini-release-confirmation {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(17, 28, 22, 0.24);
}

.mini-release-confirmation h2,
.mini-release-confirmation p {
  margin: 0;
}

.mini-release-confirmation dl {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.mini-release-confirmation dl div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 11px;
  background: var(--surface);
}

.mini-release-confirmation dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-release-confirmation dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 700;
}

.danger-section h2 {
  color: var(--red);
}

.destructive-account-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  color: #6f2028;
  background: #fff7f7;
  border: 1px solid #efd0d2;
  border-radius: var(--radius);
}

.destructive-account-card > svg {
  width: 21px;
  flex: 0 0 21px;
}

.delete-account-sheet {
  max-height: calc(100% - 20px);
  overflow-y: auto;
}

.schema-json-field {
  min-height: 180px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 24px;
  max-width: min(380px, calc(100% - 30px));
  padding: 11px 14px;
  color: #ffffff;
  background: #1b2821;
  border-radius: 7px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.utility-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.utility-links button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--green-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 720;
}

.utility-links svg {
  width: 17px;
  height: 17px;
}

.compact-form {
  margin: 10px 0 16px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compact-field {
  margin: 10px 0;
}

.office-list,
.consultation-list,
.operator-case-list,
.audit-list {
  display: grid;
  gap: 10px;
}

.office-card,
.consultation-card,
.operator-case-list > article {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.office-card > header,
.consultation-card > header,
.operator-case-list header {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.office-card > header > span:nth-child(2),
.operator-case-list header > span:first-child {
  min-width: 0;
  display: grid;
  flex: 1;
  gap: 3px;
}

.office-card header small,
.operator-case-list header small,
.consultation-card > small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.office-card > footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.office-card > footer svg {
  width: 15px;
  height: 15px;
}

.authority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

.authority-grid div {
  min-width: 0;
}

.authority-grid dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.authority-grid dd {
  margin: 0;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.consultation-card > header {
  justify-content: space-between;
}

.consultation-card h2 {
  margin-top: 10px;
  font-size: 17px;
}

.consultation-card > p {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
}

.consultation-options {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.consultation-options label {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.consultation-options label > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.consultation-options small {
  color: var(--muted);
  font-size: 11px;
}

.response-confirmation {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.response-confirmation svg {
  width: 17px;
  height: 17px;
}

.metric-grid,
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.metric-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.metric-grid article,
.delivery-grid article {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric-grid span,
.delivery-grid span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.metric-grid strong,
.delivery-grid strong {
  font-size: 23px;
}

.metric-grid small,
.delivery-grid small {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.bar-list {
  display: grid;
  gap: 11px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bar-list > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.bar-list strong {
  text-align: right;
}

.bar-track {
  height: 7px;
  overflow: hidden;
  background: var(--line);
  border-radius: 4px;
}

.bar-track i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
}

.operator-identity {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: #263a46;
  color: #ffffff;
  border-radius: var(--radius);
}

.operator-identity > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.operator-identity small {
  color: #d7e2e7;
  font-size: 11px;
}

.operator-identity .status-pill {
  color: #173b2c;
  background: #d8eee3;
}

.operator-selector {
  margin-top: 12px;
}

.authority-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 11px 12px;
  color: #4b3a0c;
  background: var(--gold-soft);
  border: 1px solid #ead79a;
  border-radius: 7px;
}

.authority-note > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.authority-note small {
  font-size: 11px;
  line-height: 1.4;
}

.operator-case-list p {
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}

.operator-case-list footer {
  display: flex;
  align-items: center;
  gap: 7px;
}

.operator-case-list footer button {
  min-width: 0;
  flex: 1;
}

.publication-list {
  display: grid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.publication-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

.publication-list article:last-child {
  border-bottom: 0;
}

.publication-list article > span:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.publication-list small {
  color: var(--muted);
  font-size: 11px;
}

.publication-actions {
  display: flex;
  gap: 5px;
}

.publication-actions button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.publication-actions button:last-child {
  color: var(--danger);
}

.publication-actions svg {
  width: 16px;
  height: 16px;
}

.audit-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface);
  border-left: 3px solid #516a78;
}

.audit-list article > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.audit-list svg {
  width: 17px;
  color: #516a78;
}

.audit-list small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.operator-entry {
  margin: 0;
}

.verification-record,
.receipt-card,
.delivery-card,
.order-summary {
  margin-top: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.verification-record > header,
.receipt-card > header,
.delivery-card > header,
.order-summary > header {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.verification-record > header > span:nth-child(2),
.receipt-card > header > span:nth-child(2),
.delivery-card > header > span:nth-child(2) {
  min-width: 0;
  display: grid;
  flex: 1;
  gap: 3px;
}

.verification-record header svg,
.receipt-card header svg,
.delivery-card header svg {
  width: 20px;
  color: var(--green);
}

.verification-record small,
.receipt-card small,
.delivery-card small {
  color: var(--muted);
  font-size: 11px;
}

.verification-record dl,
.receipt-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

.verification-record dt,
.receipt-card dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.verification-record dd,
.receipt-card dd {
  margin: 0;
  font-size: 11px;
  font-weight: 680;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.commerce-boundary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: #2c4654;
  background: #e9f0f3;
  border: 1px solid #c9d9e0;
  border-radius: var(--radius);
}

.commerce-boundary > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.commerce-boundary svg {
  width: 21px;
  flex: 0 0 auto;
}

.commerce-boundary small {
  font-size: 11px;
  line-height: 1.45;
}

.product-list {
  display: grid;
  gap: 10px;
}

.product-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-visual {
  width: 76px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--product-color, var(--green));
  border-radius: 7px;
  font-size: 22px;
  font-weight: 800;
}

.product-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.product-copy h2 {
  margin: 2px 0 0;
  font-size: 16px;
}

.product-copy p,
.product-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.product-order {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.product-order label {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.product-order select {
  width: 100%;
  height: 38px;
  padding: 0 7px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
}

.product-order button {
  height: 38px;
  padding: 0 10px;
  font-size: 11px;
}

.order-row {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.order-row:last-child {
  border-bottom: 0;
}

.order-summary > header {
  justify-content: space-between;
  margin-bottom: 14px;
}

.order-summary h1 {
  margin-top: 4px;
  font-size: 19px;
}

.order-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.order-line > span:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.order-line small {
  color: var(--muted);
  font-size: 11px;
}

.order-summary > footer {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  font-size: 17px;
}

.provider-gate {
  margin-top: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.provider-gate > small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.delivery-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.delivery-card button {
  margin-top: 12px;
}

.organization-identity {
  background: #3f4038;
}

.active-call-banner,
.recording-gate {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: #ffffff;
  text-align: left;
  background: #263a46;
  border: 0;
  border-radius: var(--radius);
}

.active-call-banner > span:nth-child(2),
.recording-gate > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.active-call-banner small,
.recording-gate small {
  color: #d7e2e7;
  font-size: 11px;
}

.meeting-launch-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 9px 10px;
  align-items: center;
  margin: 10px 0 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.meeting-launch-card .row-copy { min-width: 0; }
.meeting-launch-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.meeting-launch-actions button { min-height: 38px; justify-content: center; }

.public-meetings-strip,
.public-meetings-list {
  display: grid;
  gap: 8px;
}

.public-meetings-strip { margin: 12px 0 4px; }

.public-meeting-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 11px;
  position: relative;
  border: 1px solid #b9dfce;
  border-radius: var(--radius);
  background: #f3fbf7;
}

.public-meeting-card .avatar { background: var(--avatar); }
.public-meeting-card .row-copy { min-width: 0; }
.public-meeting-card .row-copy small { display: flex; align-items: center; gap: 4px; }
.public-meeting-card .row-copy svg { width: 13px; height: 13px; }
.public-meeting-card .primary-button.compact { min-height: 36px; padding: 8px 12px; }
.public-meeting-live {
  position: absolute;
  top: -8px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  color: #fff;
  background: #b3261e;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.public-meeting-live i { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }

.shared-meeting-login {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  color: #0b553b;
  background: #e7f5ed;
  border: 1px solid #b9dfce;
  border-radius: 14px;
}
.shared-meeting-login span { display: grid; gap: 2px; }
.shared-meeting-login small { color: #4e6d61; }

.shared-meeting-message-card {
  width: min(82%, 360px);
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  padding: 9px 10px;
  color: var(--ink);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}
.message.mine .shared-meeting-message-card { margin-left: auto; }
.shared-meeting-message-card span { display: grid; gap: 2px; }
.shared-meeting-message-card small { color: var(--muted); }
.shared-meeting-message-card svg { width: 18px; height: 18px; color: var(--green); }

.call-timeline-entry {
  max-width: 82%;
  align-self: flex-start;
  display: grid;
  justify-items: start;
  gap: 5px;
  margin: 10px 0;
}

.call-timeline-entry.mine { align-self: flex-end; justify-items: end; }
.call-timeline-entry.mine .message-sender { text-align: right; }

.call-timeline-card {
  text-align: left;
  font: inherit;
  cursor: pointer;
  width: min(100%, 380px);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  box-shadow: 0 4px 14px rgba(20, 48, 38, 0.05);
}

.call-timeline-card .field-icon {
  width: 38px;
  height: 38px;
  color: var(--green);
  background: var(--green-soft);
}

.call-timeline-card.status-missed .field-icon,
.call-timeline-card.status-declined .field-icon,
.call-timeline-card.status-failed .field-icon { color: var(--danger); background: #fdebed; }
.call-timeline-card .row-copy { display: grid; gap: 2px; }
.call-timeline-card .row-copy small,
.call-timeline-entry > time { color: var(--muted); }
.call-timeline-entry > time { font-size: 0.72rem; }
.call-duration { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--green); }
.call-timeline-card.status-missed .call-duration,
.call-timeline-card.status-declined .call-duration,
.call-timeline-card.status-failed .call-duration { color: var(--danger); }
.call-timeline-entry.mine .call-timeline-card {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}
.call-timeline-entry.mine .call-timeline-card .row-copy small { color: rgba(255, 255, 255, 0.78); }
.call-timeline-entry.mine .call-timeline-card .field-icon {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}
.call-timeline-entry.mine .call-duration { color: #ffffff; }

.location-picker-sheet {
  max-height: min(92vh, 780px);
  overflow-y: auto;
}
.location-picker-heading,
.selected-location,
.message-location-copy,
.privacy-warning,
.location-precision {
  display: flex;
  align-items: center;
  gap: 12px;
}
.location-picker-heading { justify-content: space-between; }
.location-picker-heading h2 { margin: 0; }
.location-picker-heading small { color: var(--muted); }
.location-mode-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.location-mode-tabs button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--ink);
}
.location-mode-tabs button.active { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.location-mode-tabs svg { width: 18px; }
.location-map,
.message-location-map {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #dfe9e3;
}
.location-map { height: 250px; border-radius: 18px; }
.message-location-map { height: 132px; border-radius: 14px 14px 0 0; }
.message-location-map.unavailable,
.location-map.map-unavailable { display: grid; place-items: center; padding: 18px; color: var(--muted); text-align: center; }
.message-location-map.unavailable svg { width: 34px; height: 34px; }
.map-attribution { display: block; width: fit-content; margin: 4px 0 8px auto; color: var(--muted); font-size: 11px; text-decoration: none; }
.location-search-form { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin: 10px 0; }
.location-search-form input { min-width: 0; height: 46px; border: 1px solid var(--border); border-radius: 13px; padding: 0 12px; }
.location-search-form button { height: 46px; border: 0; border-radius: 13px; padding: 0 14px; color: #fff; background: var(--green); font-weight: 700; }
.location-results { display: grid; gap: 6px; max-height: 190px; overflow-y: auto; }
.location-results button { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--border); border-radius: 13px; padding: 10px; background: var(--surface); text-align: left; color: var(--ink); }
.selected-location,
.privacy-warning,
.location-precision { margin: 10px 0; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); }
.privacy-warning { background: #fff6dd; border-color: #e7c968; }
.location-precision input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--green); }
.location-precision span { display: grid; gap: 2px; }
.location-precision small { color: var(--muted); }
.civic-location-confirm { border-color: #c9932d; }
.location-status { display: flex; align-items: center; gap: 8px; color: var(--muted); padding: 8px; }
.location-status svg { width: 18px; animation: spin 1s linear infinite; }
.message-location-card { width: min(72vw, 330px); overflow: hidden; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); color: var(--ink); }
.message-location-copy { padding: 10px 12px 6px; }
.message-location-card > button { margin: 5px 12px 10px; border: 0; border-radius: 10px; padding: 8px 12px; background: var(--green-soft); color: var(--green); font-weight: 700; }
.message-location-card > .location-stop { background: #ffe8e8; color: var(--danger); }
.message-location-card .map-attribution { margin: 0 10px 8px auto; }
.message-location-card.ended .message-location-copy { opacity: .78; }
.message.mine .message-location-card { background: rgba(255,255,255,.97); color: var(--ink); }
.message.mine .message-location-card .row-copy small { color: var(--muted); }

.content-location-control { display: grid; gap: 8px; }
.content-location-control .selected-location { margin: 0; }
.location-add-button { justify-content: center; width: 100%; }
.public-location-tag { align-items: center; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius); display: flex; gap: 8px; margin-top: 10px; padding: 9px 11px; }
.public-location-tag > svg { color: var(--green); flex: 0 0 auto; }
.public-location-tag > span { display: grid; flex: 1; }
.public-location-tag small { color: var(--muted); }
.public-location-tag button { background: none; border: 0; color: var(--green); font: inherit; font-weight: 750; }

.callable-row,
.call-history-row {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.callable-row:last-child,
.call-history-row:last-child {
  border-bottom: 0;
}

.callable-row.blocked {
  opacity: 0.55;
}

.call-actions {
  display: flex;
  gap: 6px;
}

.call-actions button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: var(--green-soft);
  border: 0;
  border-radius: 50%;
}

.call-actions button:disabled {
  cursor: not-allowed;
}

.call-actions svg {
  width: 17px;
}

.group-call-setup-sheet {
  max-width: 430px;
}

.meeting-mode-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.meeting-mode-option > span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 9px;
  align-items: center;
}

.meeting-mode-option svg { width: 19px; height: 19px; color: var(--green); grid-row: 1 / 3; }
.meeting-mode-option small { color: var(--muted); line-height: 1.35; }

.meeting-join-hero {
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
  padding: 28px 18px 20px;
}

.meeting-join-hero .avatar { width: 68px; height: 68px; background: var(--avatar); }
.meeting-join-hero h1, .meeting-join-hero p { margin: 0; }
.meeting-join-hero p { color: var(--muted); max-width: 34ch; }
.meeting-join-form { margin: 0 auto; max-width: 440px; }

.meeting-access-panel {
  position: absolute;
  z-index: 7;
  top: 112px;
  left: 14px;
  right: 14px;
  padding: 9px;
  border-radius: 14px;
  background: rgba(16, 24, 21, 0.9);
  color: #fff;
  backdrop-filter: blur(12px);
}

.meeting-access-panel > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  cursor: pointer;
  list-style: none;
}
.meeting-access-panel > summary::-webkit-details-marker { display: none; }
.meeting-access-panel > summary > span { display: grid; min-width: 0; margin-right: auto; }
.meeting-access-panel > summary > svg { transition: transform .18s ease; }
.meeting-access-panel[open] > summary > svg { transform: rotate(180deg); }
.meeting-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: min(34vh, 230px);
  overflow-y: auto;
  padding-top: 9px;
}
.meeting-access-panel strong { display: flex; align-items: center; gap: 6px; }
.meeting-access-panel small { color: #d8e2dd; }
.meeting-access-panel button {
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  padding: 7px 9px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.meeting-access-panel svg { width: 16px; height: 16px; }

.scheduled-meeting-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.scheduled-meeting-card h2,
.scheduled-meeting-card p { margin: 2px 0; }
.scheduled-meeting-card > .confirm-actions,
.scheduled-meeting-access { grid-column: 1 / -1; }
.scheduled-meeting-access {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.scheduled-meeting-access > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}
.scheduled-meeting-access > summary::-webkit-details-marker { display: none; }
.scheduled-meeting-access > summary svg:last-child { margin-left: auto; }
.scheduled-meeting-access > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 11px 11px;
}
.scheduled-meeting-access p { flex: 1 0 100%; }
.scheduled-meeting-wait { margin-top: 14px; }

.ongoing-group-call-banner {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 8px 0 12px;
  padding: 10px;
  color: #123b2d;
  background: #e5f5ed;
  border: 1px solid #addbc7;
  border-radius: 14px;
}
.ongoing-group-call-banner .row-copy { min-width: 0; }
.ongoing-group-call-banner .primary-button.compact { min-height: 36px; padding: 7px 12px; }

.group-call-media-grid {
  position: absolute;
  z-index: 3;
  inset: 190px 12px 118px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.group-call-tile {
  position: relative;
  overflow: hidden;
  min-height: 105px;
  border-radius: 16px;
  background: #18231f;
}
.group-call-tile video { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.group-call-tile audio { display: none; }
.group-call-tile-placeholder {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  color: rgba(255,255,255,.72);
}
.group-call-tile-placeholder svg { width: 25px; height: 25px; }
.group-call-tile-placeholder small { font-size: 10px; }
.group-call-tile .media-tap-label { display: none; }
.group-call-tile.media-playing .group-call-tile-placeholder { display: none; }
.group-call-tile.needs-playback-tap {
  cursor: pointer;
  outline: 2px solid rgba(255,255,255,.72);
  outline-offset: -2px;
}
.group-call-tile.needs-playback-tap .group-call-tile-placeholder {
  z-index: 4;
  display: grid;
  background: rgba(5,18,16,.62);
}
.group-call-tile.needs-playback-tap .media-connecting-label { display: none; }
.group-call-tile.needs-playback-tap .media-tap-label { display: block; }
.group-call-tile-name {
  position: absolute;
  z-index: 3;
  left: 8px;
  bottom: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .78rem;
}
.group-call-waiting { grid-column: 1 / -1; place-self: center; color: #fff; }

.call-stage {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 24px;
  color: #ffffff;
  text-align: center;
  background: #25333a;
  border-radius: var(--radius);
}

.call-media {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 8px;
  background: #142127;
  border-radius: 12px;
}

.call-media video {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.call-media [data-local-call-video] {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  width: 28%;
  height: 34%;
  background: #25333a;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 9px;
}

.call-media-placeholder {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
}

.call-media.has-remote-media .call-media-placeholder { display: none; }

.call-participant-state {
  position: absolute;
  z-index: 4;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100% - 20px);
  padding: 6px 8px;
  color: #ffffff;
  background: rgba(10, 18, 21, 0.78);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.call-participant-state.remote-camera-off {
  top: 10px;
  right: 10px;
  bottom: auto;
  left: auto;
}

.call-participant-state svg {
  width: 14px;
  height: 14px;
}

.call-media.audio-only video { opacity: 0; }
.call-media.audio-only [data-local-call-video] { display: none; }

.call-stage.ended {
  color: var(--ink);
  background: #e8edeb;
}

.call-avatar {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: #ffffff;
  background: var(--avatar, var(--green));
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-size: 26px;
  font-weight: 800;
}

.call-stage p,
.call-network {
  color: #d7e2e7;
  font-size: 12px;
}

.call-stage.ended p,
.call-stage.ended .call-network {
  color: var(--muted);
}

.call-status {
  font-size: 17px;
}

.call-rings {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.call-stage.ringing .call-rings::before,
.call-overlay.ringing .call-rings::before {
  position: absolute;
  width: 96px;
  height: 96px;
  content: "";
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  animation: call-ring 1.35s ease-out infinite;
}

@keyframes call-ring {
  from { opacity: 0.8; transform: scale(0.78); }
  to { opacity: 0; transform: scale(1.35); }
}

.connecting-progress {
  min-height: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.connecting-progress i {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  animation: connecting-dot 0.9s ease-in-out infinite alternate;
}

.connecting-progress i:nth-child(2) { animation-delay: 0.18s; }
.connecting-progress i:nth-child(3) { animation-delay: 0.36s; }

@keyframes connecting-dot {
  from { opacity: 0.35; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(-2px); }
}

.call-video-grid {
  width: min(100%, 280px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0;
}

.call-video-grid > span {
  min-height: 78px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.call-video-grid b {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  font-size: 13px;
}

.call-video-grid small {
  max-width: 100%;
  overflow: hidden;
  padding: 0 6px;
  color: #e8f1ed;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-voice-wave {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 6px 0;
}

.call-voice-wave i {
  width: 4px;
  height: 12px;
  background: #8ed6ba;
  border-radius: 3px;
  animation: call-wave 0.7s ease-in-out infinite alternate;
}

.call-voice-wave i:nth-child(2),
.call-voice-wave i:nth-child(4) { height: 24px; animation-delay: 0.12s; }
.call-voice-wave i:nth-child(3) { height: 32px; animation-delay: 0.24s; }

@keyframes call-wave {
  from { transform: scaleY(0.5); }
  to { transform: scaleY(1); }
}

.call-network,
.screen-share-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.call-network svg,
.screen-share-state svg {
  width: 16px;
}

.screen-share-state {
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 11px;
}

.call-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  min-height: 76px;
  margin: 12px 0;
}

.call-controls button {
  width: 62px;
  height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 9px;
}

.call-controls button.end-call {
  color: #ffffff;
  background: var(--red);
  border-color: var(--red);
}

.call-controls button.selected {
  color: #ffffff;
  background: #3b4b52;
  border-color: #3b4b52;
}

.call-controls button.answer-call,
.call-overlay-actions button.answer-call {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

.call-overlay {
  position: absolute;
  z-index: 70;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 30px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(155deg, #122b24 0%, #183d48 58%, #1c2930 100%);
}

.call-overlay .call-avatar {
  width: 104px;
  height: 104px;
  margin: 0;
  font-size: 32px;
}

.call-overlay-copy {
  display: grid;
  gap: 8px;
}

.call-overlay-copy small {
  color: #bcd0c8;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.call-overlay-copy strong {
  font-size: 26px;
}

.call-overlay-copy span {
  color: #e5efeb;
  font-size: 15px;
}

.call-overlay-actions {
  display: flex;
  gap: 26px;
}

.call-overlay-actions button {
  width: 66px;
  height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.call-overlay-actions button.end-call {
  background: var(--red);
  border-color: var(--red);
}

.call-overlay-actions button.selected {
  color: #17201c;
  background: #ffffff;
  border-color: #ffffff;
}

.call-overlay.minimized {
  position: absolute;
  inset: 10px 10px auto auto;
  width: 168px;
  max-width: calc(100% - 20px);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "drag"
    "media"
    "copy"
    "actions";
  align-items: center;
  gap: 5px;
  padding: 5px 8px 8px;
  text-align: center;
  background: rgba(18, 37, 42, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(10, 25, 19, 0.34);
}

.mini-call-drag-handle {
  grid-area: drag;
  height: 17px;
  display: grid;
  place-items: center;
  color: #bcd0c8;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.mini-call-drag-handle:active {
  cursor: grabbing;
}

.mini-call-drag-handle svg {
  width: 18px;
  height: 18px;
}

.mini-call-media {
  position: relative;
  grid-area: media;
  width: 100%;
  height: 86px;
  overflow: hidden;
  padding: 0;
  color: #ffffff;
  background: #142127;
  border: 0;
  border-radius: 10px;
}

.mini-call-media video {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-call-media [data-mini-local-call-video] {
  z-index: 3;
  top: auto;
  right: 5px;
  bottom: 5px;
  left: auto;
  width: 24px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 5px;
}

.mini-call-placeholder {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
}

.mini-call-media.has-remote-media .mini-call-placeholder { display: none; }
.mini-call-media.audio-only video { opacity: 0; }
.mini-call-media.audio-only [data-mini-local-call-video] { display: none; }

.mini-call-media .call-avatar {
  width: 46px;
  height: 46px;
  margin: 0;
  font-size: 15px;
}

.mini-media-state {
  position: absolute;
  z-index: 5;
  top: 5px;
  left: 5px;
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: #ffffff;
  background: rgba(170, 48, 55, 0.92);
  border-radius: 50%;
}

.mini-media-state.remote-camera-off {
  right: 5px;
  left: auto;
}

.mini-media-state svg {
  width: 13px;
  height: 13px;
}

.call-overlay.minimized .call-overlay-copy {
  grid-area: copy;
  min-width: 0;
  gap: 1px;
  text-align: center;
}

.call-overlay.minimized .call-overlay-copy small {
  font-size: 9px;
}

.call-overlay.minimized .call-overlay-copy strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-overlay.minimized .call-overlay-copy span {
  font-size: 11px;
}

.call-overlay.minimized .call-overlay-actions {
  grid-area: actions;
  justify-content: center;
  gap: 5px;
}

.call-overlay.minimized .call-overlay-actions button {
  width: 30px;
  height: 30px;
}

.call-overlay.minimized .call-overlay-actions svg {
  width: 16px;
  height: 16px;
}

.call-overlay-actions svg {
  width: 24px;
  height: 24px;
}

.call-controls svg {
  width: 20px;
}

.immersive-call {
  position: absolute;
  z-index: 60;
  inset: 0;
  overflow: hidden;
  color: #ffffff;
  background: #071310;
  isolation: isolate;
}

.immersive-call-main,
.immersive-call-main video,
.immersive-call-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.immersive-call-main video {
  z-index: 2;
  object-fit: cover;
  background: #071310;
}

.immersive-call-backdrop {
  z-index: 1;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(63, 139, 112, 0.68) 0, transparent 34%),
    linear-gradient(155deg, #122b24 0%, #183d48 54%, #0b171b 100%);
  transition: opacity 180ms ease;
}

.immersive-call.has-remote-media:not(.video-swapped) .immersive-call-backdrop,
.immersive-call.video-swapped .immersive-call-backdrop {
  opacity: 0;
  pointer-events: none;
}

.immersive-call.ringing .immersive-call-backdrop {
  opacity: 0.28;
}

.immersive-call-backdrop .call-avatar,
.immersive-call-rings .call-avatar {
  width: 112px;
  height: 112px;
  margin: 0;
  font-size: 34px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.immersive-call::before,
.immersive-call::after {
  position: absolute;
  z-index: 4;
  right: 0;
  left: 0;
  content: "";
  pointer-events: none;
}

.immersive-call::before {
  top: 0;
  height: 190px;
  background: linear-gradient(to bottom, rgba(2, 9, 7, 0.84), transparent);
}

.immersive-call::after {
  bottom: 0;
  height: 230px;
  background: linear-gradient(to top, rgba(2, 8, 7, 0.9), transparent);
}

.immersive-call-top {
  position: absolute;
  z-index: 8;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: max(22px, calc(env(safe-area-inset-top) + 12px)) 18px 18px;
  pointer-events: none;
}

.immersive-call-identity {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.58);
}

.immersive-call-identity small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.immersive-call-identity strong {
  overflow: hidden;
  font-size: 23px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.immersive-call-identity > span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.immersive-call-network {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(5, 16, 13, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.immersive-call-network svg,
.immersive-media-state svg {
  width: 14px;
  height: 14px;
}

.immersive-call-controls {
  position: absolute;
  z-index: 10;
  right: 12px;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 3vw, 14px);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.immersive-call-control {
  width: 58px;
  height: 58px;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  color: #ffffff;
  background: rgba(8, 20, 17, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  backdrop-filter: blur(12px);
  font-size: 9px;
  font-weight: 700;
}

.immersive-call-control svg {
  width: 21px;
  height: 21px;
}

.immersive-call-control.selected {
  color: #14221d;
  background: #ffffff;
}

.immersive-call-control.answer-call {
  background: #169b68;
  border-color: #36be8b;
}

.immersive-call-control.end-call {
  background: #bd313a;
  border-color: #d75259;
}

.call-floating-video {
  position: absolute;
  z-index: 9;
  top: 112px;
  right: 14px;
  width: 116px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  color: #ffffff;
  background: #182a2d;
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 17px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  cursor: pointer;
  touch-action: manipulation;
}

.call-floating-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #152528;
}

.call-floating-video::after {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 48px;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.66), transparent);
  pointer-events: none;
}

.call-video-drag-handle {
  position: absolute;
  z-index: 4;
  top: 5px;
  left: 50%;
  width: 38px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
  cursor: grab;
  touch-action: none;
  transform: translateX(-50%);
  user-select: none;
}

.call-video-drag-handle:active {
  cursor: grabbing;
}

.call-video-drag-handle svg {
  width: 20px;
  height: 20px;
}

.call-floating-label {
  position: absolute;
  z-index: 4;
  right: 8px;
  bottom: 7px;
  left: 8px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

.immersive-media-state {
  position: absolute;
  z-index: 8;
  left: 16px;
  bottom: 108px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 32px);
  padding: 7px 10px;
  background: rgba(133, 32, 40, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 700;
}

.immersive-media-state.remote-camera-off {
  bottom: 146px;
}

.immersive-connecting,
.immersive-voice-wave,
.immersive-call-rings,
.immersive-call-waiting {
  position: absolute;
  z-index: 7;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.immersive-call-rings .call-avatar {
  background: var(--avatar);
}

.immersive-call.ringing .immersive-call-rings::before {
  width: 142px;
  height: 142px;
}

.immersive-connecting {
  top: calc(50% + 84px);
}

.immersive-voice-wave {
  top: calc(50% + 94px);
}

.immersive-call-waiting {
  top: calc(50% + 98px);
  width: calc(100% - 40px);
  color: rgba(255, 255, 255, 0.84);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 360px) {
  .immersive-call-controls {
    gap: 6px;
  }

  .immersive-call-control {
    width: 52px;
    height: 52px;
  }

  .call-floating-video {
    width: 104px;
  }
}

@media (max-width: 600px) {
  .immersive-call-controls {
    bottom: max(32px, calc(env(safe-area-inset-bottom) + 18px));
  }

  .group-call-media-grid {
    bottom: 142px;
  }
}

.points-hero {
  margin-bottom: 10px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #56347f, #7952a8);
  color: #fff;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px 10px;
  box-shadow: var(--shadow-soft);
}
.points-hero-icon { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.points-hero-icon svg { width: 19px; height: 19px; }
.points-hero > span:nth-child(2) { display: grid; gap: 1px; }
.points-hero strong { font-size: 1.55rem; line-height: 1; }
.points-hero small { font-size: .64rem; color: rgba(255,255,255,.82); }
.points-level-track { grid-column: 1 / -1; height: 5px; border-radius: 9px; overflow: hidden; background: rgba(255,255,255,.2); }
.points-level-track i { display: block; height: 100%; border-radius: inherit; background: #fff; }
.points-hero > small { grid-column: 1 / -1; }
.points-referral-card { padding: 10px; border: 1px solid rgba(104,67,155,.18); border-radius: var(--radius); background: #f7f3fb; display: flex; align-items: center; gap: 9px; }
.points-referral-card > svg { width: 22px; color: #68439b; }
.points-referral-card code { font-size: .72rem; color: #56347f; font-weight: 800; letter-spacing: .04em; }
.points-referral-card .secondary-button { width: auto; min-height: 32px; padding: 5px 9px; }
.points-rule-list, .points-history { display: grid; gap: 6px; }
.points-rule, .points-history article { padding: 9px 10px; border: 1px solid rgba(31,50,43,.08); border-radius: var(--radius); background: var(--surface); display: flex; align-items: center; gap: 9px; }
.points-rule > svg, .points-history article > svg { width: 18px; color: #8b9290; flex: 0 0 auto; }
.points-rule.complete > svg { color: var(--green); }
.points-rule em { color: var(--muted); font-size: .61rem; font-style: normal; }
.points-rule > b, .points-history article > b { margin-left: auto; color: #68439b; font-size: .72rem; white-space: nowrap; }
.points-history article > b.credit { color: var(--green); }
.points-history article > b.debit { color: #aa3037; }

.recording-gate {
  margin-top: 12px;
  color: #4d3505;
  background: var(--gold-soft);
  border: 1px solid #ead79a;
}

.recording-gate small {
  color: #67531f;
}

.moment-composer {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.moment-composer .field,
.moment-composer textarea {
  min-width: 0;
}

.moment-composer textarea {
  min-height: 70px;
}

.composer-options {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.composer-options select {
  min-width: 0;
  height: 38px;
  padding: 0 7px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
}

.composer-options button {
  height: 38px;
  padding: 0 13px;
}

.moment-media-picker {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid #bcd9cd;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.moment-media-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.moment-media-picker svg,
.moment-privacy-note svg {
  width: 16px;
  height: 16px;
}

.moment-privacy-note {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
}

.moment-media-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.moment-media-preview-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface-soft);
  border-radius: 8px;
}

.moment-media-preview-item img,
.moment-media-preview-item video,
.moment-media-grid img,
.moment-media-grid video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.moment-media-preview-item button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(18, 28, 23, 0.78);
  border: 0;
  border-radius: 50%;
}

.moment-media-preview-item button svg {
  width: 13px;
}

.moment-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--surface-soft);
}

.moment-media-grid.count-1 {
  grid-template-columns: 1fr;
}

.moment-media-grid.count-1 img,
.moment-media-grid.count-1 video {
  max-height: 480px;
  aspect-ratio: 4 / 3;
}

.moment-media-grid:not(.count-1) img {
  aspect-ratio: 1;
}

.moment-media-grid video {
  aspect-ratio: 16 / 9;
  background: #111814;
}

.moment-feed,
.channel-feed {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.moment-card,
.channel-feed > article {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.moment-card > header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 12px;
}

.moment-card > header > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.moment-card header small,
.channel-copy small {
  color: var(--muted);
  font-size: 11px;
}

.scene-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #dfe7e2;
  background-image: url("./scene-sprite.webp?v=1");
  background-repeat: no-repeat;
  background-position-y: center;
  background-size: 300% auto;
}

.scene-media.scene-0 {
  background-position-x: left;
}

.scene-media.scene-1 {
  background-position-x: center;
}

.scene-media.scene-2 {
  background-position-x: right;
}

.media-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(18, 28, 23, 0.76);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.media-play svg {
  width: 21px;
}

.moment-card > p {
  padding: 12px;
  font-size: 13px;
}

.moment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 12px 10px;
  color: var(--muted);
  font-size: 10px;
}

.moment-actions {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.moment-actions button {
  min-width: 0;
  min-height: 38px;
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  font-size: 11px;
}

.moment-actions button:last-child {
  border-right: 0;
}

.moment-actions svg {
  width: 15px;
}

.moment-comments {
  display: grid;
  gap: 5px;
  padding: 10px 12px 0;
  font-size: 11px;
}

.moment-comment {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 6px;
  padding: 10px 12px 12px;
}

.moment-comment input {
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
}

.moment-comment > button {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--green);
  border: 0;
  border-radius: 6px;
}

.moment-comment > button svg {
  width: 15px;
}

.resident-moment-years {
  display: grid;
  gap: 20px;
}

.resident-moment-year > h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.resident-moment-year > div {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.resident-moment-row {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 48px 72px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
}

.resident-moment-row + .resident-moment-row {
  border-top: 1px solid var(--line);
}

.resident-moment-row > time {
  display: grid;
  justify-items: start;
  line-height: 1;
}

.resident-moment-row > time strong { font-size: 22px; }
.resident-moment-row > time span { font-size: 11px; font-weight: 700; }
.resident-moment-row > time small { margin-top: 7px; color: var(--muted); font-size: 8px; }

.resident-moment-mosaic,
.resident-moment-row > .scene-media {
  width: 72px;
  height: 72px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  gap: 1px;
  border-radius: 8px;
}

.resident-moment-mosaic.count-1 { grid-template-columns: 1fr; }
.resident-moment-mosaic img,
.resident-moment-mosaic video { width: 100%; height: 100%; object-fit: cover; }
.resident-moment-row > .scene-media { aspect-ratio: auto; }

.moment-detail {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.moment-detail > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.moment-detail > header > span:last-child { display: grid; gap: 2px; }
.moment-detail > header small { color: var(--muted); font-size: 10px; }

.moment-detail-carousel {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: #101412;
  touch-action: pan-x;
}

.moment-detail-carousel::-webkit-scrollbar { display: none; }

.moment-detail-slide {
  position: relative;
  min-width: 100%;
  min-height: 320px;
  display: grid;
  place-items: center;
  margin: 0;
  scroll-snap-align: start;
}

.moment-detail-slide img,
.moment-detail-slide video,
.moment-detail-slide .scene-media {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
}

.moment-detail-slide figcaption {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  color: #fff;
  background: rgba(0, 0, 0, .62);
  border-radius: 999px;
  font-size: 10px;
}

.moment-detail-body { padding: 14px 12px; font-size: 14px; line-height: 1.5; }
.moment-discussion { display: grid; gap: 10px; padding: 14px 12px; }
.moment-discussion > h2 { margin: 0; font-size: 15px; }
.comment-reply-context { display: block; margin-top: 2px; color: var(--muted); }

.moment-detail-composer {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin-top: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.moment-detail-composer .composer-reply { border-bottom: 1px solid var(--line); }

.channel-directory {
  display: grid;
  gap: 8px;
}

.channel-directory article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.channel-directory article > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.channel-directory small {
  color: var(--muted);
  font-size: 10px;
}

.channel-directory button {
  min-height: 34px;
  padding: 0 9px;
  font-size: 10px;
}

.channel-avatar {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #516a78;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.channel-copy {
  padding: 12px;
}

.channel-copy h2 {
  margin-top: 7px;
  font-size: 17px;
}

.channel-copy p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.channel-copy .moment-actions {
  margin: 12px -12px -12px;
}

.search-page-form {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.search-page-form input {
  min-width: 0;
  height: 36px;
  border: 0;
}

.search-page-form button {
  min-height: 34px;
  padding: 0 11px;
  color: #ffffff;
  background: var(--green);
  border: 0;
  border-radius: 6px;
  font-size: 11px;
}

.search-result {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.search-result:last-child {
  border-bottom: 0;
}

.platform-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  color: #ffffff;
  background: #35434a;
  border-radius: var(--radius);
}

.platform-banner > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.platform-banner svg {
  width: 24px;
  flex: 0 0 auto;
}

.platform-banner small {
  color: #d7e2e7;
  font-size: 11px;
  line-height: 1.45;
}

.language-field {
  margin-top: 10px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.country-list,
.program-list,
.moderation-list,
.client-grid,
.gate-list {
  display: grid;
  gap: 10px;
}

.country-list > article,
.program-list > article,
.moderation-list > article,
.client-grid > article {
  padding: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.country-list header,
.program-list > article > header,
.moderation-list > article > header,
.client-grid header,
.launch-review header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.country-list header > span:nth-child(2),
.program-list > article > header > span:nth-child(2),
.moderation-list > article > header > span:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.country-list small,
.program-list small,
.moderation-list small,
.client-grid small,
.launch-review p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.country-code {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #516a78;
  border-radius: 6px;
  font-weight: 800;
}

.geography-release-list > article,
.geography-release-list dl,
.geography-release-list dl > div,
.geography-release-list dd,
.geography-release-list code,
.geography-provenance-line {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.geography-release-list dl {
  display: grid;
  gap: 10px;
}

.geography-release-list dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.geography-release-list dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.geography-release-list code,
.geography-provenance-line {
  display: block;
  max-width: 100%;
  white-space: normal;
}

.geography-provenance-line + .geography-provenance-line {
  margin-top: 5px;
}

.diaspora-city-results {
  max-height: 280px;
  overflow-y: auto;
}

.diaspora-city-results .setting-row {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

@media (max-width: 420px) {
  .geography-release-list .program-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.country-list dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 13px 0;
}

.country-list dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.country-list dd {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.launch-review {
  margin-top: 10px;
  padding: 13px;
  color: #4d3505;
  background: var(--gold-soft);
  border: 1px solid #ead79a;
  border-radius: var(--radius);
}

.launch-review header {
  grid-template-columns: minmax(0, 1fr) auto;
}

.launch-review ul {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 11px;
}

.program-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0;
}

.program-metrics > span {
  display: grid;
  gap: 2px;
  padding: 9px;
  background: var(--surface-soft);
  border-radius: 6px;
  text-align: center;
}

.program-metrics strong {
  font-size: 17px;
}

.permission-list {
  display: grid;
  gap: 5px;
}

.permission-list > span {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 2px 6px;
  padding: 7px 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
}

.permission-list svg {
  grid-row: 1 / 3;
  width: 15px;
  color: var(--green);
}

.version-list {
  margin: 10px 0;
  padding: 8px 10px;
  background: #eef2f4;
  border-left: 3px solid #516a78;
}

.version-list p {
  margin-bottom: 7px;
  font-size: 11px;
}

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

.mini-version-form {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.mini-version-form label {
  min-width: 0;
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.mini-version-form input {
  min-width: 0;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
}

.mini-version-form button {
  grid-column: 1 / -1;
}

.program-list > article > .text-button {
  margin-top: 8px;
}

.moderation-list > article > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.moderation-history {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.moderation-history > span {
  display: grid;
  gap: 2px;
  padding: 8px;
  background: var(--surface-soft);
  border-left: 3px solid var(--green);
  font-size: 11px;
}

.client-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-grid header {
  grid-template-columns: minmax(0, 1fr) auto;
}

.client-grid p {
  margin: 9px 0 5px;
  font-size: 11px;
  line-height: 1.4;
}

.gate-list > div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  padding: 11px 12px;
  color: #4d3505;
  background: var(--gold-soft);
  border: 1px solid #ead79a;
  border-radius: 7px;
}

.gate-list > div > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.gate-list svg {
  width: 18px;
}

.gate-list small {
  font-size: 10px;
  line-height: 1.4;
}

body.high-contrast {
  --ink: #000000;
  --muted: #39413d;
  --line: #76817b;
  --surface-soft: #f0f2f1;
}

body.larger-controls button,
body.larger-controls select,
body.larger-controls input:not([type="radio"]):not([type="checkbox"]) {
  min-height: 44px;
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  scroll-behavior: auto !important;
  animation: none !important;
  transition: none !important;
}

body.text-first-media .scene-media::after {
  content: "Media has an accompanying text summary";
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 4px 6px;
  color: #ffffff;
  background: rgba(18, 28, 23, 0.8);
  border-radius: 4px;
  font-size: 9px;
}

.login-screen {
  height: 100%;
  overflow-y: auto;
  padding: 22px 18px 28px;
  background: var(--surface);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.login-brand .brand-symbol {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  margin: 0;
  font-size: 18px;
}

.login-brand > span:last-child,
.login-brand small {
  display: block;
}

.login-brand strong {
  font-size: 18px;
}

.login-brand small,
.login-intro p {
  color: var(--muted);
}

.login-intro {
  padding: 26px 0 18px;
}

.login-intro h1 {
  max-width: 330px;
  margin-top: 7px;
}

.login-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  background: #edf2ef;
  border-radius: 9px;
}

.auth-mode-switch button {
  min-height: 40px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 750;
}

.auth-mode-switch button.active {
  color: var(--green-dark);
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(21, 54, 41, 0.14);
}

.signup-method-switch {
  margin: 0;
}

.phone-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.phone-entry > span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  font-weight: 700;
}

.auth-assurance {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 2px 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.auth-assurance svg {
  width: 17px;
  height: 17px;
  color: var(--green);
}

.hierarchy-coverage {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  padding: 11px 12px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid #c8dfd2;
  border-radius: 8px;
}

.hierarchy-coverage > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
}

.hierarchy-coverage span,
.hierarchy-coverage small {
  display: block;
}

.hierarchy-coverage strong {
  font-size: 11px;
}

.hierarchy-coverage small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.login-accounts-title {
  margin-top: 0;
}

.quiet-note {
  margin: 0 2px 14px;
  color: var(--muted);
  font-size: 12px;
}

.account-picker {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.account-picker > button,
.session-card {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.account-picker > button:hover {
  border-color: #9bb5a7;
  background: var(--green-soft);
}

.account-picker > button > svg {
  width: 17px;
  flex: 0 0 17px;
  color: var(--muted);
}

.account-picker .row-copy,
.session-card .row-copy {
  min-width: 0;
}

.account-picker .row-copy small,
.session-card .row-copy small {
  overflow-wrap: anywhere;
}

.typing-indicator {
  min-height: 20px;
  padding: 3px 10px 0;
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
}

.typing-indicator[hidden] {
  visibility: hidden;
}

.connection-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.connection-state::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: #8b9690;
}

.connection-state.online::before {
  background: #168256;
}

.connection-state.connecting::before {
  background: var(--gold);
}

/* Data-driven directories adapted from the supplied WeChat references. */
.catalog-section-title {
  min-height: 32px;
  display: flex;
  align-items: flex-end;
  padding: 0 4px 7px;
  color: #748079;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.catalog-list {
  margin-bottom: 8px;
}

.catalog-row {
  position: relative;
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: inherit;
  text-align: left;
  background: var(--surface);
  border: 0;
}

.catalog-row + .catalog-row::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 60px;
  height: 1px;
  content: "";
  background: var(--line);
}

.catalog-row:hover,
.contact-directory-row:hover,
.saved-card:hover {
  background: #f9fbfa;
}

.catalog-row > svg,
.contact-directory-row > svg {
  width: 16px;
  color: #9aa49f;
}

.catalog-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--catalog-accent, var(--green));
  border-radius: 7px;
}

.catalog-icon[data-accent="#2478cf"] { background: #2478cf; }
.catalog-icon[data-accent="#25b66f"] { background: #25b66f; }
.catalog-icon[data-accent="#0f9f63"] { background: #0f9f63; }
.catalog-icon[data-accent="#ef5261"] { background: #ef5261; }
.catalog-icon[data-accent="#f07178"] { background: #f07178; }
.catalog-icon[data-accent="#f07570"] { background: #f07570; }
.catalog-icon[data-accent="#f2a33a"] { background: #f2a33a; }
.catalog-icon[data-accent="#7d5cc7"] { background: #7d5cc7; }
.catalog-icon[data-accent="#a54a38"] { background: #a54a38; }
.catalog-icon[data-accent="#aa3037"] { background: #aa3037; }
.catalog-icon[data-accent="#5d6670"] { background: #5d6670; }

.catalog-icon svg {
  width: 19px;
  height: 19px;
}

.catalog-badge {
  padding: 3px 6px;
  color: #955014;
  background: #fff1dc;
  border-radius: 9px;
  font-size: 8px;
  font-weight: 800;
}

.contact-directory-page {
  position: relative;
  min-height: 100%;
  margin: -16px -14px calc(-1 * (var(--nav-height) + 22px));
  padding-bottom: calc(var(--nav-height) + 22px);
  background: #eef1ef;
}

.contact-tools,
.contact-letter-group .list-surface {
  margin: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.contact-letter-group h2 {
  min-height: 29px;
  display: flex;
  align-items: flex-end;
  margin: 0;
  padding: 0 15px 5px;
  color: #6f7b75;
  font-size: 10px;
  font-weight: 800;
}

.contact-directory-row {
  position: relative;
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 11px;
  padding: 8px 18px 8px 14px;
  color: inherit;
  text-align: left;
  background: var(--surface);
  border: 0;
}

.contact-directory-row + .contact-directory-row::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 67px;
  height: 1px;
  content: "";
  background: var(--line);
}

.contact-directory-row .avatar {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}

.contact-index {
  position: absolute;
  z-index: 3;
  top: 290px;
  right: 3px;
  display: grid;
  gap: 1px;
  color: #55625c;
  font-size: 8px;
  font-weight: 800;
  pointer-events: none;
}

.contact-subdirectory {
  position: relative;
  min-height: calc(100% + 40px);
  margin: -16px -14px -24px;
  padding-bottom: 28px;
  background: #eef1ef;
}

.contact-subdirectory-list,
.account-letter-group .list-surface {
  margin: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.group-directory-avatar {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0 48%, transparent 48%),
    var(--avatar, var(--green));
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(25, 48, 38, 0.12);
  font-size: 11px;
  font-weight: 800;
}

.directory-count {
  margin: 0;
  padding: 18px 14px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

.account-contact-directory {
  padding-right: 12px;
}

.account-contact-directory > .inbox-search,
.account-contact-directory .account-directory-groups {
  margin-right: -12px;
}

.account-contact-row {
  min-height: 67px;
  grid-template-columns: 44px minmax(0, 1fr) 16px;
}

.account-contact-row .account-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 11px;
}

.account-contact-row strong {
  display: flex;
  align-items: center;
  gap: 4px;
}

.account-contact-row .verified-mark {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.account-letter-index {
  position: fixed;
  top: 148px;
  right: max(4px, calc((100vw - 460px) / 2 + 4px));
  gap: 0;
  pointer-events: auto;
}

.account-letter-index button {
  min-width: 18px;
  min-height: 18px;
  padding: 0;
  color: #55625c;
  background: transparent;
  border: 0;
  font-size: 8px;
  font-weight: 800;
}

.account-letter-index button:hover,
.account-letter-index button:focus-visible {
  color: var(--green);
}

.mobile-contact-card {
  width: calc(100% - 28px);
  min-height: 70px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 11px;
  margin: 0 14px 12px;
  padding: 10px 13px;
  color: inherit;
  text-align: left;
  background: var(--surface);
  border: 0;
  border-radius: 7px;
}

.mobile-contact-card > svg:first-child {
  width: 28px;
  height: 28px;
  justify-self: center;
  color: var(--green);
}

.mobile-contact-card > svg:last-child {
  width: 16px;
  color: #9aa49f;
}

.mobile-contact-card strong,
.mobile-contact-card small {
  display: block;
}

.mobile-contact-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.contact-discovery-list .catalog-row {
  grid-template-columns: 42px minmax(0, 1fr) auto 16px;
}

.discover-catalog,
.service-catalog,
.profile-catalog {
  display: grid;
}

.account-directory-list {
  margin-bottom: 12px;
}

.account-directory-more {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  color: var(--green);
  text-align: left;
  background: var(--surface);
  border: 0;
  border-top: 1px solid var(--line);
}

.account-directory-more span,
.account-directory-more strong,
.account-directory-more small {
  display: block;
}

.account-directory-more small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.account-directory-more > svg {
  width: 17px;
  height: 17px;
}

.verified-account-directory {
  min-height: 100%;
  margin: -16px -14px;
  background: #eef1ef;
}

.verified-account-directory .account-directory-list {
  margin: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.services-hero {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 104px;
  padding: 18px;
  color: #ffffff;
  background: #19a963;
  border-radius: var(--radius);
}

.services-hero > span {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
}

.services-hero svg {
  width: 25px;
  height: 25px;
}

.services-hero strong,
.services-hero small {
  display: block;
}

.services-hero strong {
  font-size: 21px;
}

.services-hero small {
  margin-top: 4px;
  line-height: 1.4;
  opacity: 0.88;
}

.recent-service-grid,
.mini-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.recent-service-grid button,
.mini-directory-grid button {
  min-width: 0;
  min-height: 105px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 5px;
  color: inherit;
  text-align: center;
  background: var(--surface);
  border: 0;
}

.recent-service-grid .account-avatar {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  font-size: 11px;
}

.recent-service-grid strong,
.recent-service-grid small,
.mini-directory-grid strong,
.mini-directory-grid small {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}

.recent-service-grid small,
.mini-directory-grid small {
  color: var(--muted);
  font-size: 8px;
}

.mini-directory-grid button.invited-test {
  background: #fff8e8;
  box-shadow: inset 0 3px 0 #d38b16;
}

.mini-directory-grid button.public-canary {
  background: #f0f8ff;
  box-shadow: inset 0 3px 0 #2878a8;
}

.test-invitation-section {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
}

.test-invitation-card,
.test-lane-owner-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fffaf0;
  border: 1px solid #ebcf93;
  border-radius: var(--radius);
}

.test-invitation-card > header,
.test-lane-owner-card > header,
.test-lane-tester-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.test-invitation-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.test-invitation-card.public-canary-card {
  background: #f4fbff;
  border-color: #9bc9e1;
}

.test-invitation-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
}

.mini-invited-test-notice {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  color: #6d4808;
  background: #fff3cf;
  border-bottom: 1px solid #e3bd63;
}

.mini-invited-test-notice svg {
  width: 20px;
  height: 20px;
}

.mini-invited-test-notice strong,
.mini-invited-test-notice small {
  display: block;
}

.mini-invited-test-notice small {
  margin-top: 2px;
  font-size: 9px;
}

.test-lane-tester-list {
  display: grid;
  gap: 6px;
}

.test-lane-tester-row {
  min-height: 48px;
  padding: 7px 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.test-lane-tester-row .secondary-button {
  width: auto;
  margin-left: auto;
}

.saved-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  margin: -4px 0 12px;
  padding-bottom: 2px;
}

.saved-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
}

.saved-tabs button.active {
  color: var(--green);
  background: var(--green-soft);
  border-color: #a7cfbb;
}

.saved-list {
  display: grid;
  gap: 8px;
}

.saved-card {
  min-height: 78px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px;
  color: inherit;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.saved-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d84848;
  background: #fff0ef;
  border-radius: 7px;
}

.saved-kind,
.mini-review-state {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-directory-section + .mini-directory-section {
  margin-top: 8px;
}

.mini-directory-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--surface);
}

.mini-directory-grid strong {
  min-height: 2.5em;
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mini-program-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--green);
  border-radius: 12px;
}

.mini-program-icon.game { background: #ef5261; }
.mini-program-icon.service { background: #0f9f63; }

.mini-directory-more-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 12px;
}

.mini-directory-more-icon svg {
  width: 22px;
  height: 22px;
}

.mini-directory-more-backdrop {
  z-index: 30;
  align-items: center;
  padding: 15px;
  background: rgba(10, 24, 18, 0.62);
  backdrop-filter: blur(2px);
}

.mini-directory-more-sheet {
  width: 100%;
  max-height: calc(100% - 30px);
  overflow-y: auto;
  padding: 14px;
  background: var(--surface);
  border: 1px solid rgba(21, 76, 53, 0.14);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(10, 35, 25, 0.28);
}

.mini-directory-more-sheet > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.mini-directory-more-sheet h2,
.mini-directory-more-sheet header small {
  margin: 0;
}

.mini-directory-more-sheet h2 {
  margin-top: 2px;
  font-size: 17px;
  line-height: 1.2;
}

.mini-directory-more-sheet header small {
  display: block;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.mini-directory-grid-expanded {
  overflow: visible;
}

.mini-review-state {
  color: #86621c;
}

.mini-review-state.available {
  color: var(--green);
  font-weight: 800;
}

.mini-program-launch {
  margin-top: 10px;
}

.developer-center-footer-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 12px;
  padding: 7px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  background: transparent;
  border: 0;
}

.developer-center-footer-link svg {
  width: 13px;
  height: 13px;
}

.mini-civic-hero {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #0c6846, #119865);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(15, 107, 71, 0.18);
}

.mini-civic-hero .mini-program-icon {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.mini-civic-hero strong,
.mini-civic-hero small {
  display: block;
}

.mini-civic-hero strong {
  font-size: 13px;
}

.mini-civic-hero small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 8px;
  line-height: 1.35;
}

.mini-civic-hero .status-pill {
  color: #075336;
  background: #ffffff;
}

.mini-civic-search {
  margin-top: 10px;
}

.mini-civic-search-help {
  margin: -3px 4px 0;
  color: var(--muted);
  font-size: 8px;
}

.mini-civic-search-results {
  max-height: 252px;
  margin-top: 5px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mini-civic-search-results > button,
.mini-civic-path-list > button {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 9px 10px;
  color: var(--ink);
  text-align: left;
  background: var(--surface);
  border: 0;
  border-bottom: 1px solid var(--line);
}

.mini-civic-search-results > button:last-child,
.mini-civic-path-list > button:last-child {
  border-bottom: 0;
}

.mini-civic-search-results small {
  white-space: normal;
  line-height: 1.35;
}

.mini-civic-section {
  margin-top: 14px;
}

.mini-civic-path-list {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mini-civic-path-list > button {
  grid-template-columns: 32px minmax(0, 1fr) 22px;
}

.mini-civic-level-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 9px;
}

.mini-civic-level-icon.large {
  width: 38px;
  height: 38px;
}

.mini-civic-level-icon svg,
.mini-civic-hub-mark svg {
  width: 16px;
  height: 16px;
}

.mini-civic-hub-mark {
  color: var(--green);
}

.mini-civic-selectors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.mini-civic-selectors .field {
  min-width: 0;
}

.mini-civic-selectors .field > span {
  font-size: 8px;
}

.mini-civic-selectors select {
  min-width: 0;
  min-height: 39px;
  padding: 7px 25px 7px 7px;
  font-size: 8px;
}

.mini-civic-jurisdiction-card {
  margin-top: 8px;
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mini-civic-jurisdiction-card > header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.mini-civic-breadcrumb {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 9px;
  overflow-x: auto;
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
}

.mini-civic-breadcrumb svg {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
}

@media (max-width: 350px) {
  .mini-civic-selectors {
    grid-template-columns: 1fr;
  }
}

.developer-center-link,
.developer-boundary-banner {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  padding: 11px;
  color: var(--ink);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.developer-workspace-switcher,
.institution-connector-row,
.institution-developer-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.developer-workspace-switcher {
  margin: 12px 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.developer-workspace-switcher > div,
.developer-workspace-switcher > div > div,
.institution-developer-list,
.institution-connector-list {
  display: grid;
  gap: 9px;
  min-width: 0;
  width: 100%;
}

.developer-workspace-switcher button {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-muted);
  color: inherit;
}

.institution-developer-disclosure h3 {
  margin: 16px 0 8px;
  font-size: .9rem;
}

.institution-developer-row,
.institution-connector-row {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.institution-developer-row select,
.institution-developer-row input {
  min-width: 0;
  max-width: 130px;
}

.mini-connector-binding span {
  display: grid;
  gap: 3px;
}

.workspace-highlight {
  outline: 3px solid rgba(15, 107, 71, 0.35);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .institution-developer-row,
  .institution-connector-row {
    align-items: stretch;
    flex-direction: column;
  }

  .institution-developer-row select,
  .institution-developer-row input {
    width: 100%;
    max-width: none;
  }
}

.developer-center-link > svg,
.developer-boundary-banner > svg {
  width: 20px;
  color: var(--green);
}

.developer-boundary-banner {
  grid-template-columns: 30px minmax(0, 1fr);
  color: #174b37;
  background: var(--green-soft);
  border-color: #a7cfbb;
}

.developer-boundary-banner > span {
  display: grid;
  gap: 3px;
}

.mini-program-host-capsule {
  position: absolute;
  z-index: 7;
  top: max(8px, env(safe-area-inset-top));
  right: 10px;
  width: 88px;
  height: 36px;
  display: grid;
  grid-template-columns: 43px 1px 43px;
  align-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(30, 48, 41, 0.12);
  border-radius: 999px;
  box-shadow: 0 2px 9px rgba(25, 45, 37, 0.09);
  backdrop-filter: blur(6px) saturate(1.08);
  -webkit-backdrop-filter: blur(6px) saturate(1.08);
}

.mini-program-host-capsule > span {
  width: 1px;
  height: 20px;
  background: rgba(30, 48, 41, 0.12);
}

.mini-program-host-capsule > button {
  width: 43px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.mini-program-host-capsule > button:hover,
.mini-program-host-capsule > button:focus-visible {
  background: rgba(255, 255, 255, 0.48);
}

.mini-program-host-capsule svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.5;
}

.mini-program-exit-symbol {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.mini-program-exit-symbol > i {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}

.mini-program-menu-backdrop {
  z-index: 32;
  align-items: flex-end;
  padding: 0;
  background: rgba(12, 22, 18, 0.52);
  backdrop-filter: blur(1px);
}

.mini-program-menu-sheet {
  width: 100%;
  max-height: 78%;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--ink);
  background: #f4f6f5;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 36px rgba(9, 31, 22, 0.18);
}

.mini-program-menu-grabber {
  width: 36px;
  height: 4px;
  margin: 8px auto 2px;
  background: #c8d0cc;
  border-radius: 999px;
}

.mini-program-menu-sheet > header {
  min-height: 66px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.mini-program-menu-sheet > header > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.mini-program-menu-sheet h2,
.mini-program-menu-sheet h3 {
  margin: 0;
}

.mini-program-menu-sheet h2 {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-program-menu-sheet header small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-program-menu-sheet > header > svg {
  width: 16px;
  color: var(--muted);
}

.mini-program-menu-app-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--green);
  border-radius: 12px;
}

.mini-program-menu-app-icon svg {
  width: 22px;
  height: 22px;
}

.mini-program-forward-section {
  padding: 14px 14px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.mini-program-forward-section h3 {
  margin-bottom: 10px;
  font-size: 12px;
}

.mini-program-share-targets {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.mini-program-share-targets::-webkit-scrollbar {
  display: none;
}

.mini-program-share-target {
  width: 56px;
  flex: 0 0 56px;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.mini-program-share-target .avatar {
  width: 46px;
  height: 46px;
  font-size: 12px;
}

.mini-program-share-target small {
  width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-program-share-empty {
  color: var(--muted);
  font-size: 9px;
}

.mini-program-action-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(58px, 1fr));
  gap: 14px 4px;
  overflow-x: auto;
  padding: 16px 12px 18px;
  background: #f4f6f5;
}

.mini-program-action-grid > button {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.mini-program-action-grid > button > span {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #30443b;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(18, 39, 30, 0.04);
}

.mini-program-action-grid > button:first-child > span {
  color: #ffffff;
  background: var(--green);
}

.mini-program-action-grid svg {
  width: 23px;
  height: 23px;
}

.mini-program-action-grid small {
  max-width: 62px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.2;
  text-align: center;
}

.mini-match-record-sheet .mini-program-action-grid {
  grid-template-columns: repeat(4, minmax(58px, 1fr));
  overflow-x: hidden;
}

.mini-program-share-note {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.mini-program-menu-cancel {
  width: 100%;
  min-height: 50px;
  padding: 10px;
  color: #315b8f;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface);
  border: 0;
  border-top: 1px solid var(--line);
}

.mini-program-permission-screen {
  background: var(--surface-soft);
}

.mini-permission-page-header {
  flex: 0 0 auto;
}

.mini-permission-header-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.mini-permission-header-icon svg {
  width: 21px;
  height: 21px;
}

.mini-permission-page-content {
  overflow-y: auto;
  padding: 18px 14px max(28px, env(safe-area-inset-bottom));
  scroll-padding-bottom: max(28px, env(safe-area-inset-bottom));
}

.mini-permission-page {
  width: min(100%, 680px);
  min-height: 100%;
  margin: 0 auto;
  padding: 16px;
  background: var(--surface);
  border: 1px solid rgba(21, 76, 53, 0.14);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(10, 35, 25, 0.08);
}

.mini-permission-page-hero {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.mini-permission-page-hero > span:nth-child(2) {
  min-width: 0;
}

.mini-permission-page h1,
.mini-permission-page-hero small {
  margin: 0;
}

.mini-permission-page h1 {
  margin-top: 2px;
  font-size: 17px;
  line-height: 1.2;
}

.mini-permission-page-hero small {
  display: block;
  overflow: hidden;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-permission-app-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 12px;
}

.mini-permission-app-icon svg {
  width: 20px;
  height: 20px;
}

.mini-permission-intro {
  margin: 12px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.mini-permission-toggle-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.mini-permission-toggle {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 11px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}

.mini-permission-toggle:last-child {
  border-bottom: 0;
}

.mini-permission-toggle > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.mini-permission-toggle-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.mini-permission-toggle-copy strong {
  font-size: 11px;
}

.mini-permission-toggle-copy small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.mini-permission-switch {
  position: relative;
  width: 34px;
  height: 20px;
  background: #c9d2ce;
  border-radius: 999px;
  transition: background 160ms ease;
}

.mini-permission-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  content: "";
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 160ms ease;
}

.mini-permission-toggle > input:checked ~ .mini-permission-switch {
  background: var(--green);
}

.mini-permission-toggle > input:checked ~ .mini-permission-switch::after {
  transform: translateX(14px);
}

.mini-permission-toggle:focus-within {
  outline: 2px solid rgba(15, 118, 78, 0.3);
  outline-offset: -2px;
}

.mini-permission-institution-note {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  color: #315c4b;
  background: var(--green-soft);
  border-radius: 12px;
}

.mini-permission-institution-note svg {
  width: 18px;
  height: 18px;
}

.mini-permission-institution-note span {
  display: grid;
  gap: 2px;
}

.mini-permission-institution-note strong {
  font-size: 9px;
}

.mini-permission-institution-note small {
  font-size: 8px;
  line-height: 1.35;
}

.mini-permission-page-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
  margin-top: 14px;
}

.mini-permission-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-top: 8px;
  text-align: center;
}

.mini-permission-empty > svg {
  width: 30px;
  height: 30px;
  color: var(--green);
}

.mini-permission-empty p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.developer-status-card,
.developer-account-card,
.developer-review-card,
.developer-program-card {
  margin-top: 10px;
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.developer-status-card > header,
.developer-account-card > header,
.developer-review-card > header,
.developer-program-card > header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.developer-status-card > p,
.developer-review-card > p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.developer-program-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.developer-program-card {
  margin-top: 0;
  background: var(--surface-soft);
}

.developer-program-card .mini-program-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.mini-release-policy-card {
  display: grid;
  gap: 9px;
  margin: 10px 0;
  padding: 10px;
  background: #f4faf7;
  border: 1px solid #b9ddcb;
  border-radius: 9px;
}

.mini-release-policy-card > header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-release-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mini-release-policy-grid > div {
  display: grid;
  gap: 3px;
  padding: 8px;
  background: var(--surface);
  border-radius: 7px;
  font-size: 9px;
}

.mini-fast-track-action {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

@media (max-width: 480px) {
  .mini-release-policy-grid {
    grid-template-columns: 1fr;
  }
}

.permission-request-fieldset {
  display: grid;
  gap: 1px;
  padding: 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.permission-request-fieldset legend {
  width: 100%;
  padding: 0 0 7px;
  color: var(--muted);
  background: var(--surface);
  font-size: 9px;
  font-weight: 800;
}

.permission-request-fieldset label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  background: var(--surface);
  font-size: 10px;
}

.permission-request-fieldset small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.developer-review-section {
  margin-top: 14px;
}

.developer-review-card dl {
  margin: 9px 0;
  font-size: 9px;
}

.version-list {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.mini-version-card {
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-version-card > header,
.mini-version-review-card > header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.mini-package-metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 8px 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.mini-package-metadata > div {
  min-width: 0;
  padding: 7px;
  background: var(--surface);
}

.mini-package-metadata dt {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-package-metadata dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  font-size: 9px;
  line-height: 1.35;
}

.mini-inspection-checks {
  display: grid;
  gap: 4px;
  margin: 8px 0;
}

.mini-inspection-checks > span,
.mini-human-decision {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  padding: 7px;
  color: #2d4439;
  background: var(--green-soft);
  border: 1px solid #c5e2d2;
  border-radius: 6px;
}

.mini-inspection-checks > span.failed {
  color: #813b3b;
  background: #fff1f0;
  border-color: #e8c1bd;
}

.mini-inspection-checks svg,
.mini-human-decision svg {
  width: 15px;
  height: 15px;
}

.mini-inspection-checks strong,
.mini-inspection-checks small,
.mini-human-decision strong,
.mini-human-decision small {
  display: block;
}

.mini-inspection-checks strong,
.mini-human-decision strong {
  font-size: 9px;
}

.mini-inspection-checks small,
.mini-human-decision small {
  margin-top: 1px;
  color: inherit;
  font-size: 8px;
  line-height: 1.35;
  opacity: 0.82;
}

.mini-human-decision {
  margin: 7px 0;
}

.mini-review-reason {
  margin: 7px 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.mini-package-submission {
  margin-top: 8px;
}

.mini-program-summary,
.mini-permission-card,
.mini-release-card {
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mini-program-summary > header,
.mini-permission-card > header,
.mini-release-card > header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

/* LinkUp Health first-party mini app */
.health-hero {
  display: grid;
  gap: 12px;
  padding: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #0b5f5b, #0f766e 58%, #15988d);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.2);
}

.health-hero > div,
.health-workspace-hero,
.health-facility-card > summary,
.health-service-card > header,
.health-professional-card,
.health-appointment-card > header,
.health-verification-banner,
.health-followup,
.health-safety-card > header,
.health-adapter-card > header,
.health-profile-admin > header,
.health-workspace-row,
.health-audit-list article {
  display: flex;
  align-items: center;
  gap: 12px;
}

.health-hero .mini-program-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  color: #0b5f5b;
  background: #ffffff;
}

.health-hero > div > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.health-hero strong {
  font-size: 18px;
  line-height: 1.25;
}

.health-hero small,
.health-workspace-hero small {
  color: rgba(255, 255, 255, 0.78);
}

.health-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}

.health-emergency-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  line-height: 1.45;
}

.health-emergency-notice > svg {
  flex: 0 0 20px;
  margin-top: 1px;
}

.health-emergency-notice > span {
  display: grid;
  gap: 2px;
}

.health-emergency-notice small {
  color: #9a3412;
}

.health-tabs,
.health-workspace-tabs,
.health-type-filter {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.health-tabs button,
.health-workspace-tabs button,
.health-type-filter button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 13px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
}

.health-tabs button.active,
.health-workspace-tabs button.active,
.health-type-filter button.active {
  color: #ffffff;
  background: #0f766e;
  border-color: #0f766e;
}

.health-search {
  margin-top: 2px;
}

.health-result-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.health-facility-list,
.health-service-list,
.health-professional-list,
.health-appointment-list,
.health-professional-admin-list,
.health-adapter-list,
.health-audit-list,
.health-workspace-section {
  display: grid;
  gap: 12px;
}

.health-catalog-editor {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.health-catalog-editor > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.health-catalog-editor > summary::-webkit-details-marker {
  display: none;
}

.health-catalog-editor[open] > summary {
  border-bottom: 1px solid var(--line);
}

.health-catalog-editor > form {
  padding: 14px;
}

.health-catalog-editor fieldset {
  margin: 0;
}

.health-facility-card,
.health-appointment-card,
.health-safety-card,
.health-adapter-card,
.health-profile-admin,
.health-followup-composer {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.health-facility-card > summary,
.health-feedback-panel > summary,
.health-followup-composer > summary,
.health-history > summary,
.health-adapter-card > details > summary {
  cursor: pointer;
  list-style: none;
}

.health-facility-card > summary {
  min-height: 76px;
  padding: 14px;
}

.health-facility-card > summary::-webkit-details-marker,
.health-feedback-panel > summary::-webkit-details-marker,
.health-followup-composer > summary::-webkit-details-marker,
.health-history > summary::-webkit-details-marker,
.health-adapter-card > details > summary::-webkit-details-marker,
.health-slot details > summary::-webkit-details-marker {
  display: none;
}

.health-facility-card[open] > summary {
  border-bottom: 1px solid var(--line);
}

.health-facility-icon,
.health-status-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  background: #e6f6f4;
  border-radius: 12px;
}

.health-facility-body,
.health-safety-card,
.health-adapter-card,
.health-profile-admin {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.health-facility-body > p,
.health-service-card > p,
.health-adapter-card > p,
.health-profile-admin > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.health-verification-banner {
  padding: 11px 12px;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
}

.health-verification-banner > span,
.health-followup > span,
.health-safety-card > header > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.health-verification-banner small,
.health-followup small {
  color: inherit;
  opacity: 0.82;
}

.health-contact-grid,
.health-appointment-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.health-contact-grid > div,
.health-appointment-facts > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 11px;
  background: #f8faf9;
}

.health-contact-grid dt,
.health-appointment-facts dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.health-contact-grid dd,
.health-appointment-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.4;
}

.health-professional-card,
.health-workspace-row,
.health-audit-list article {
  padding: 12px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.health-professional-card .status-pill,
.health-workspace-row .status-pill,
.health-audit-list .status-pill {
  flex: 0 0 auto;
}

.health-service-card {
  display: grid;
  gap: 11px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.health-service-card > header > strong {
  flex: 0 0 auto;
  color: #0f766e;
  font-size: 12px;
}

.health-fee-notice {
  padding: 8px 10px;
  color: #7c5b14;
  background: #fffbeb;
  border-radius: 8px;
  line-height: 1.45;
}

.health-slot-list {
  display: grid;
  gap: 8px;
}

.health-slot {
  display: grid;
  gap: 8px;
  padding: 11px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 10px;
}

.health-slot > div,
.health-slot details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.health-slot > div {
  align-items: flex-start;
}

.health-slot > div > small {
  max-width: 58%;
  color: #0f766e;
  text-align: right;
}

.health-slot details > summary {
  min-height: 34px;
  padding-top: 7px;
  color: #0f766e;
  border-top: 1px solid #99f6e4;
  cursor: pointer;
  font-weight: 800;
}

.health-slot details[open] > summary {
  margin-bottom: 12px;
}

.health-booking-review {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.health-booking-review > span,
.health-case-state,
.health-profile-admin > span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.health-booking-review small,
.health-case-state small,
.health-profile-admin > span small {
  color: var(--muted);
  line-height: 1.4;
}

.health-appointment-card {
  display: grid;
  gap: 13px;
  padding: 14px;
}

.health-appointment-card > header .status-pill {
  flex: 0 0 auto;
}

.health-followup {
  padding: 11px;
  color: #155e75;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 10px;
}

.health-inline-form,
.health-feedback-panel form,
.health-followup-composer form {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.health-feedback-panel > summary,
.health-followup-composer > summary,
.health-history > summary,
.health-adapter-card > details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 4px;
  color: #0f766e;
  font-weight: 800;
}

.health-history ol {
  display: grid;
  gap: 11px;
  margin: 4px 0 0 20px;
  padding: 10px 0 0 8px;
  border-top: 1px solid var(--line);
}

.health-history li small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.health-history li p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.health-safety-card h2 {
  margin: 4px 0 0;
}

.health-safety-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.45;
}

.health-workspace-link {
  border-color: #99f6e4;
}

.health-workspace-hero {
  padding: 18px;
  color: #ffffff;
  background: #123e3b;
  border-radius: 16px;
}

.health-workspace-hero > svg {
  flex: 0 0 34px;
}

.health-workspace-hero h1,
.health-workspace-hero p {
  margin: 2px 0;
}

.health-workspace-row {
  flex-wrap: wrap;
}

.health-workspace-row form {
  width: 100%;
  display: grid;
  grid-template-columns: 0.75fr 1.6fr auto;
  gap: 7px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.health-workspace-row form select,
.health-workspace-row form input {
  min-width: 0;
  min-height: 38px;
  padding: 7px 9px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.health-adapter-card .status-pill.high {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.health-test-event {
  display: grid;
  gap: 4px;
  padding: 10px;
  color: #14532d;
  background: #f0fdf4;
  border-radius: 8px;
}

.health-test-event small {
  color: inherit;
  opacity: 0.82;
  line-height: 1.45;
}

@media (max-width: 430px) {
  .health-contact-grid,
  .health-appointment-facts,
  .health-booking-review {
    grid-template-columns: 1fr;
  }

  .health-workspace-row form {
    grid-template-columns: 1fr;
  }

  .health-professional-card,
  .health-workspace-row {
    align-items: flex-start;
  }
}

.mini-permission-section,
.mini-release-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mini-release-list > h3 {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.mini-permission-card > p,
.mini-release-card > p,
.section-intro {
  margin: 8px 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.mini-consent-form,
.mini-release-action {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.mini-consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.mini-consent-actions button {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 9px;
}

.mini-rollout-summary,
.mini-rollout-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0;
}

.mini-rollout-summary > span {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 1px 6px;
  align-items: center;
  padding: 7px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.mini-rollout-summary svg {
  grid-row: 1 / 3;
  width: 16px;
  color: var(--green);
}

.mini-rollout-summary strong,
.mini-rollout-summary small {
  display: block;
}

.mini-rollout-summary strong { font-size: 9px; }
.mini-rollout-summary small { color: var(--muted); font-size: 7px; line-height: 1.3; }

.mini-rollout-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.mini-rollout-actions button {
  min-height: 34px;
  padding: 7px;
  font-size: 8px;
}

.mini-appeal-panel { margin: 7px 0; }

.mini-version-form input[type="file"] {
  padding: 7px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px dashed var(--line);
}

.mini-release-review-card .permission-request-fieldset label {
  grid-template-columns: minmax(0, 1fr) auto;
}

.mini-release-review-card .permission-request-fieldset select {
  width: auto;
  min-width: 104px;
  min-height: 32px;
  padding: 5px 8px;
  font-size: 9px;
}

.mini-governance-evidence dd {
  overflow-wrap: anywhere;
}

.mini-attestation-fieldset {
  display: grid;
  gap: 8px;
}

.mini-attestation-evidence {
  display: grid;
  gap: 5px;
  padding: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.mini-attestation-evidence > strong {
  color: var(--muted);
  font-size: 8px;
}

.mini-attestation-evidence label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 9px;
}

@media (max-width: 430px) {
  .mini-rollout-summary,
  .mini-rollout-metrics,
  .mini-rollout-actions {
    grid-template-columns: 1fr;
  }
}

.permission-note,
.profile-membership-summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  color: #42524a;
  background: var(--green-soft);
  border: 1px solid #c5e2d2;
  border-radius: var(--radius);
}

.permission-note > svg,
.profile-membership-summary > svg {
  color: var(--green);
}

.permission-note strong,
.permission-note small,
.profile-membership-summary strong,
.profile-membership-summary small {
  display: block;
}

.permission-note small,
.profile-membership-summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.profile-hero {
  grid-template-columns: 62px minmax(0, 1fr) auto auto;
}

.profile-code-mark {
  color: #66736d;
}

.profile-code-mark svg {
  width: 20px;
}

.profile-membership-summary {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  margin: 10px 0 4px;
  background: var(--surface);
  border-color: var(--line);
}

.setting-row .field-icon[data-accent="#2478cf"] { color: #2478cf; background: #edf5fc; }
.setting-row .field-icon[data-accent="#0f6b47"] { color: #0f6b47; background: #e8f5ee; }
.setting-row .field-icon[data-accent="#a54a38"] { color: #a54a38; background: #faefec; }
.setting-row .field-icon[data-accent="#68439b"] { color: #68439b; background: #f2edfa; }

.residence-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 13px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.civic-path-hero {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 15px;
  background: linear-gradient(145deg, #f7fbf9, #edf7f2);
  border: 1px solid #d8e8e0;
  border-radius: var(--radius);
}

.civic-path-hero h1 {
  margin: 2px 0 5px;
  font-size: 19px;
}

.civic-path-hero p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.civic-path-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.civic-path-summary-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.civic-path-summary-card > span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 50%;
}

.civic-path-summary-card > span svg {
  width: 16px;
  height: 16px;
}

.civic-path-summary-card > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.civic-path-summary-card small,
.civic-path-summary-card em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.35;
}

.civic-path-summary-card strong {
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.civic-change-window {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 10px 12px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid #c8e0d4;
  border-radius: var(--radius);
}

.civic-change-window.locked {
  color: #704e14;
  background: #fff8e8;
  border-color: #ead7a5;
}

.civic-change-window > span,
.civic-change-window > div {
  min-width: 0;
}

.civic-change-window > div {
  display: grid;
  gap: 2px;
}

.civic-change-window strong {
  font-size: 12px;
}

.civic-change-window small {
  font-size: 10px;
  line-height: 1.45;
}

.civic-path-change-disclosure {
  margin-top: 10px;
}

.civic-path-change-disclosure .form-stack {
  padding: 12px;
}

.civic-path-fieldset {
  min-width: 0;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.civic-path-fieldset[hidden] {
  display: none;
}

.civic-path-fieldset legend {
  padding: 0 5px;
  font-size: 12px;
  font-weight: 750;
}

.civic-path-fieldset legend small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.civic-path-same-check {
  align-items: flex-start;
  margin: 0;
}

.civic-path-review-box {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  background: #f5f8fb;
  border: 1px solid #dce4ea;
  border-radius: 8px;
}

.civic-path-review-box strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.civic-path-review-box strong svg {
  width: 15px;
  height: 15px;
}

.civic-path-review-box small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.civic-path-event-list {
  display: grid;
  gap: 7px;
}

.civic-path-event-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.civic-path-event-list article > span:first-child {
  color: var(--green);
}

.civic-path-event-list article > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.civic-path-event-list strong {
  font-size: 11px;
}

.civic-path-event-list small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.residence-card h1 {
  margin: 2px 0 6px;
  font-size: 20px;
}

.residence-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.residence-pin {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--green);
  border-radius: 50%;
}

.residence-review-list {
  display: grid;
  gap: 8px;
}

.residence-review-card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.residence-review-card > summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 11px;
  cursor: pointer;
  list-style: none;
}

.residence-review-card > summary::-webkit-details-marker {
  display: none;
}

.residence-review-detail {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
  border-top: 1px solid var(--line);
}

.residence-review-detail > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.residence-review-detail dl {
  display: grid;
  gap: 6px;
}

.residence-review-detail dl div {
  display: grid;
  grid-template-columns: minmax(90px, 0.45fr) minmax(0, 1fr);
  gap: 8px;
  font-size: 10px;
}

.residence-review-detail dt {
  color: var(--muted);
}

.residence-claim-disclosure .form-stack {
  padding: 12px;
}

.public-role-roster,
.participation-case-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.public-role-card {
  width: auto;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dbe5e0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(23, 54, 43, 0.05);
}

.public-role-card > header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-role-card > header .row-copy,
.public-role-card small,
.public-role-facts dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.posting-right,
.oversight-right {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 999px;
  color: #0f6b47;
  background: #e8f5ef;
  font-size: 10px;
  font-weight: 750;
}

.oversight-right {
  color: #52645d;
  background: #eef2f0;
}

.public-role-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.public-role-facts > div {
  padding: 8px;
  border-radius: 10px;
  background: #f5f8f6;
}

.public-role-facts dt,
.public-role-facts dd {
  margin: 0;
}

.public-role-facts dt {
  color: #74827d;
  font-size: 10px;
}

.public-role-facts dd {
  margin-top: 2px;
  color: #18241f;
  font-size: 12px;
  font-weight: 700;
}

.public-role-card > p {
  margin: 10px 0;
  color: #44564f;
  font-size: 13px;
  line-height: 1.45;
}

.public-role-card details,
.participation-case-status {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e4ebe7;
}

.public-role-card summary {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #0f6b47;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.participation-case-status {
  display: grid;
  gap: 3px;
}

.participation-case-status small {
  color: #607069;
  line-height: 1.4;
}

.participation-policy-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0;
}

.participation-policy-metrics span {
  display: grid;
  gap: 2px;
  padding: 9px;
  border-radius: 11px;
  background: #f0f6f3;
}

.participation-policy-metrics strong {
  color: #0f6b47;
  font-size: 16px;
}

.participation-policy-metrics small {
  color: #64766f;
  font-size: 9px;
}

.participation-review-note {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 14px;
  color: #49361a;
  background: #fff4d9;
}

.participation-review-note span {
  display: grid;
  gap: 3px;
}

.participation-review-note small {
  line-height: 1.35;
}

@media (max-width: 600px) {
  .device-stage {
    display: block;
    padding: 0;
  }

  .app-frame {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .client-grid {
    grid-template-columns: 1fr;
  }
}

.role-profile-banner,
.task-profile-banner,
.institution-profile-banner,
.role-center-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #d6e3dd;
  border-radius: 14px;
  background: #f4faf7;
}

.account-group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 2px 7px;
  color: #66746e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-group-label span {
  min-width: 23px;
  padding: 2px 6px;
  border-radius: 10px;
  background: #e9eeeb;
  text-align: center;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #a5aea9;
}

.status-dot.active {
  background: #16a064;
  box-shadow: 0 0 0 3px #def3e8;
}

.status-dot.institutional_review,
.status-dot.identity_binding_review,
.status-dot.acceptance_pending {
  background: #dc9817;
  box-shadow: 0 0 0 3px #fff0ca;
}

.role-profile-banner,
.task-profile-banner,
.institution-profile-banner {
  width: 100%;
  margin: 12px 0 4px;
  text-align: left;
  color: #14201b;
}

.role-profile-banner > span:first-child,
.task-profile-banner > span:first-child,
.institution-profile-banner > span:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 12px;
  background: #0f6b47;
  color: #fff;
}

.role-profile-banner > svg:last-child,
.role-profile-banner > i:last-child,
.task-profile-banner > svg:last-child,
.task-profile-banner > i:last-child,
.institution-profile-banner > svg:last-child,
.institution-profile-banner > i:last-child {
  width: 18px;
  color: #809087;
}

.task-profile-banner {
  position: relative;
  background: linear-gradient(135deg, #f0f7ff, #ffffff);
  border-color: #cfdeec;
}

.task-profile-banner > span:first-child {
  background: #245b86;
}

.institution-profile-banner {
  background: linear-gradient(135deg, #fff8e8, #ffffff);
  border-color: #eadbb8;
}

.institution-profile-banner > span:first-child {
  background: #8b5a18;
}

.task-count-badge {
  min-width: 24px;
  padding: 3px 7px;
  color: #ffffff;
  background: #a92832;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}

.task-summary {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 16px;
  color: #173a55;
  background: linear-gradient(135deg, #edf6fd, #ffffff);
  border: 1px solid #cbddeb;
  border-radius: 16px;
}

.task-summary-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: #ffffff;
  background: #245b86;
  border-radius: 14px;
}

.task-summary-icon svg {
  width: 24px;
  height: 24px;
}

.task-filter-row {
  display: flex;
  gap: 7px;
  margin: 13px -4px 11px;
  padding: 0 4px 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

.task-filter-row::-webkit-scrollbar {
  display: none;
}

.task-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 10px;
  color: #52605a;
  background: #ffffff;
  border: 1px solid #dce5e1;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.task-filter strong {
  min-width: 19px;
  padding: 2px 5px;
  color: inherit;
  background: #edf1ef;
  border-radius: 999px;
  font-size: 10px;
  text-align: center;
}

.task-filter.active {
  color: #ffffff;
  background: #245b86;
  border-color: #245b86;
}

.task-filter.active strong {
  background: rgba(255, 255, 255, 0.2);
}

.task-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}

.task-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 12px 10px 12px 12px;
  background: #ffffff;
  border: 1px solid #dfe7e3;
  border-left: 3px solid #87a7bf;
  border-radius: 13px;
}

.task-card.priority-high {
  border-left-color: #d08a10;
}

.task-card.priority-critical {
  border-left-color: #a92832;
  background: #fffafa;
}

.task-category-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #245b86;
  background: #eaf3fa;
  border-radius: 11px;
}

.task-card.priority-critical .task-category-icon {
  color: #8d2028;
  background: #fbecee;
}

.task-card-copy {
  min-width: 0;
}

.task-card-copy > strong,
.task-card-copy > p,
.task-card-copy > small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.task-card-copy > strong {
  margin-top: 4px;
  color: #1e2b25;
  font-size: 13px;
}

.task-card-copy > p {
  margin: 4px 0;
  color: #56645e;
  font-size: 11px;
  line-height: 1.45;
}

.task-card-copy > small {
  color: #75817b;
  font-size: 10px;
  line-height: 1.45;
}

.task-card-copy > small svg {
  width: 11px;
  height: 11px;
  vertical-align: -2px;
}

.task-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #526d81;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.task-card-meta .status-pill {
  flex: 0 0 auto;
  max-width: 54%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-open-button {
  display: grid;
  width: 30px;
  height: 38px;
  place-items: center;
  align-self: center;
  color: #65746d;
  background: transparent;
  border-radius: 9px;
}

.task-open-button:hover,
.task-open-button:focus-visible {
  color: #245b86;
  background: #edf5fa;
}

.task-policy-disclosure {
  margin-top: 14px;
}

.task-policy-copy {
  display: grid;
  gap: 8px;
  padding: 0 13px 13px 49px;
  color: #5e6b65;
  font-size: 11px;
  line-height: 1.5;
}

.role-center-identity {
  background: linear-gradient(135deg, #eef8f3, #fff);
}

.role-center-tabs {
  position: sticky;
  top: -1px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 12px -2px 18px;
  padding: 5px;
  border: 1px solid #dfe7e3;
  border-radius: 14px;
  background: rgba(247, 249, 248, 0.96);
  backdrop-filter: blur(12px);
}

.role-center-tabs button {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 9px 4px;
  border-radius: 10px;
  color: #66746e;
  font-size: 10px;
  font-weight: 800;
}

.role-center-tabs button svg,
.role-center-tabs button i {
  width: 18px;
}

.role-center-tabs button.active {
  background: #0f6b47;
  color: #fff;
  box-shadow: 0 5px 14px rgba(15, 107, 71, 0.2);
}

.role-workspace-list,
.assignment-queue,
.lifecycle-assignment-list,
.workspace-map-list {
  display: grid;
  gap: 14px;
}

.hierarchy-assignment-chain,
.assignment-policy-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.hierarchy-assignment-chain article {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid #e0e7e3;
  border-radius: 12px;
  background: #fff;
}

.hierarchy-assignment-chain article.locked {
  background: #f6f7f6;
  color: #76817c;
}

.hierarchy-assignment-chain article.active {
  border-color: #b9dbc9;
  background: #f1faf5;
}

.chain-step-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #e7f1ec;
  color: #0f6b47;
  font-size: 11px;
  font-weight: 900;
}

.hierarchy-assignment-chain small {
  display: block;
  overflow-wrap: anywhere;
  color: #69766f;
  font-size: 9px;
  line-height: 1.35;
}

.hierarchy-assignment-chain strong {
  font-size: 11px;
}

.assignment-policy-card {
  width: auto;
  min-width: 0;
  overflow: hidden;
  padding: 13px;
  border: 1px solid #dce5e0;
  border-radius: 14px;
  background: #fff;
}

.verification-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.verification-product-card {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dce5e0;
  border-radius: 12px;
  background: #fff;
}

.verification-product-card > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: #e7efeb;
  color: #345347;
}

.verification-product-card.blue > span {
  background: #e0f1ff;
  color: #1377b8;
}

.verification-product-card.institution_grey > span,
.verification-product-card.government_grey > span {
  background: #e8ecea;
  color: #4c5a54;
}

.verification-product-card strong,
.verification-product-card small,
.verification-product-card p {
  display: block;
  overflow-wrap: anywhere;
}

.verification-product-card small {
  color: #607069;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.verification-product-card strong {
  margin-top: 2px;
  font-size: 11px;
}

.verification-product-card p {
  margin: 3px 0 0;
  color: #66746d;
  font-size: 9px;
  line-height: 1.4;
}

.governance-disclosure {
  min-width: 0;
  margin: 10px 0;
  overflow: hidden;
  border: 1px solid #dce5e0;
  border-radius: 14px;
  background: #fff;
}

.governance-disclosure > summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.governance-disclosure > summary::-webkit-details-marker {
  display: none;
}

.governance-disclosure > summary > span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: #e8f3ed;
  color: #0f6b47;
}

.governance-disclosure > summary > span:first-child svg,
.governance-disclosure > summary > span:first-child i {
  width: 16px;
}

.governance-disclosure > summary .row-copy strong,
.governance-disclosure > summary .row-copy small {
  display: block;
}

.governance-disclosure > summary .row-copy strong {
  font-size: 12px;
}

.governance-disclosure > summary .row-copy small {
  margin-top: 2px;
  color: #68756e;
  font-size: 9px;
  line-height: 1.35;
}

.governance-disclosure > summary > svg:last-child,
.governance-disclosure > summary > i:last-child {
  width: 16px;
  color: #78857e;
  transition: transform 160ms ease;
}

.governance-disclosure[open] > summary > svg:last-child,
.governance-disclosure[open] > summary > i:last-child {
  transform: rotate(180deg);
}

.governance-disclosure[open] > summary {
  border-bottom: 1px solid #e4ebe7;
  background: #f8faf9;
}

.governance-disclosure-body {
  min-width: 0;
  padding: 10px;
}

.governance-disclosure-body > :first-child {
  margin-top: 0;
}

.governance-disclosure-body > :last-child {
  margin-bottom: 0;
}

.governance-operations-disclosure > summary > span:first-child {
  background: #eef0f8;
  color: #51457c;
}

.governance-operations-disclosure .director-governance-panel {
  margin-bottom: 10px;
}

.verification-products-disclosure {
  margin-top: 0;
}

.verification-products-disclosure .verification-product-grid {
  margin-bottom: 8px;
}

.verification-branch-list {
  display: grid;
  gap: 9px;
}

.verification-branch {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce5e0;
  border-radius: 14px;
  background: #f6f9f7;
}

.verification-branch > summary {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.verification-branch > summary::-webkit-details-marker {
  display: none;
}

.verification-branch > summary > span {
  display: grid;
  place-items: center;
  color: #0f6b47;
}

.verification-branch > summary > strong {
  font-size: 11px;
}

.verification-branch > summary > small {
  color: #6a7770;
  font-size: 9px;
}

.verification-branch > .assignment-policy-list {
  padding: 0 8px 8px;
}

.verification-badge-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 9px 0 4px;
}

.verification-badge,
.sensitive-role-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 900;
}

.verification-badge {
  background: #e8ecea;
  color: #44544c;
}

.verification-badge.blue {
  background: #e0f1ff;
  color: #116eaa;
}

.verification-badge.candidate {
  background: #f0e9ff;
  color: #64479a;
}

.verification-badge.traditional {
  background: #fff0d5;
  color: #7b5513;
}

.verification-badge.platform {
  background: #e2f4eb;
  color: #0f6b47;
}

.verification-badge svg,
.verification-badge i,
.sensitive-role-label svg,
.sensitive-role-label i {
  width: 12px;
  height: 12px;
}

.sensitive-role-label {
  background: #f9e7e8;
  color: #8c3038;
}

.evidence-authority-line {
  display: block;
  margin: 5px 0 9px;
  color: #65736c;
  line-height: 1.4;
}

.assignment-policy-card > header .row-copy,
.assignment-policy-card details,
.assignment-policy-card form,
.assignment-policy-card .field,
.assignment-policy-card input,
.assignment-policy-card select,
.assignment-policy-card textarea {
  min-width: 0;
  max-width: 100%;
}

.assignment-policy-card small,
.assignment-policy-card p {
  overflow-wrap: anywhere;
}

.assignment-policy-card > header,
.existing-rule-assignment {
  display: flex;
  align-items: center;
  gap: 9px;
}

.assignment-policy-card > p {
  color: #5d6b64;
  font-size: 11px;
  line-height: 1.45;
}

.seat-counter {
  display: grid;
  min-width: 34px;
  height: 28px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #edf3f0;
  color: #51625a;
  font-size: 10px;
  font-weight: 900;
}

.assignment-policy-card details {
  margin-top: 10px;
  border-top: 1px solid #e6ebe8;
  padding-top: 10px;
}

.affiliation-position-card > .secondary-button {
  margin-top: 10px;
}

.affiliation-verification-card {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e6ebe8;
}

.affiliation-verification-card > header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.affiliation-verification-card > header > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: #e2f4eb;
  color: #0f6b47;
}

.assignment-policy-card summary {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #0f6b47;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.assignment-policy-card summary svg,
.assignment-policy-card summary i {
  width: 16px;
}

.existing-rule-assignment {
  margin-top: 10px;
  padding: 9px;
  border-radius: 10px;
  background: #f4f7f5;
}

.existing-rule-assignment .avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  background: #0f6b47;
  color: #fff;
  font-size: 10px;
}

.verification-sheet-backdrop {
  z-index: 90;
  align-items: flex-end;
  padding: 12px;
}

.public-verification-sheet {
  width: min(100%, 430px);
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d8e2dd;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 22px 70px rgb(14 31 23 / 28%);
}

.public-verification-sheet > header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 11px;
  border-bottom: 1px solid var(--line);
}

.public-verification-sheet > header .row-copy {
  min-width: 0;
  flex: 1;
}

.verification-sheet-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 13px;
  color: #ffffff;
  background: #56645d;
}

.verification-sheet-icon.blue {
  background: #1674b6;
}

.verification-sheet-icon.candidate {
  background: #68439b;
}

.verification-sheet-icon.traditional {
  background: #8b641c;
}

.verification-sheet-icon.platform,
.verification-sheet-icon.affiliation {
  background: #0f6b47;
}

.verification-sheet-icon svg,
.verification-sheet-icon i {
  width: 21px;
  height: 21px;
}

.public-verification-list {
  overflow-y: auto;
  padding: 12px;
}

.public-verification-detail {
  padding: 12px;
  border: 1px solid #dce5e0;
  border-radius: 14px;
  background: #fbfdfc;
}

.public-verification-detail + .public-verification-detail {
  margin-top: 10px;
}

.public-verification-detail h2 {
  margin: 8px 0 4px;
  font-size: 15px;
  line-height: 1.3;
}

.public-verification-detail > p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.public-verification-detail dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.public-verification-detail dl > div {
  min-width: 0;
  padding: 8px;
  border-radius: 9px;
  background: #f0f5f2;
}

.public-verification-detail dt {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.public-verification-detail dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.4;
}

.verification-boundary {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 9px;
  padding: 8px;
  border-radius: 10px;
  color: #254f3d;
  background: #eaf5ef;
}

.verification-boundary.candidate-boundary {
  color: #553982;
  background: #f2edfa;
}

.verification-boundary > svg,
.verification-boundary > i {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.verification-boundary span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.verification-boundary strong {
  font-size: 9px;
}

.verification-boundary small {
  font-size: 8px;
  line-height: 1.45;
}

.public-verification-sheet > footer {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
  background: #fbfdfc;
}

.public-verification-sheet > footer > span {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.public-verification-sheet > footer > span svg,
.public-verification-sheet > footer > span i {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.public-position-holders {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 7px;
}

.public-position-holders > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 8px;
  border-left: 3px solid #0f6b47;
  border-radius: 7px;
  background: #edf6f1;
}

.public-position-vacancy {
  display: block;
  margin-top: 6px;
  color: #758179;
  font-size: 8px;
  font-weight: 700;
}

.two-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.two-field-row .field,
.two-field-row input {
  min-width: 0;
}

.role-workspace-card,
.assignment-card,
.workspace-map-list > article {
  overflow: hidden;
  padding: 15px;
  border: 1px solid #dce5e0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(27, 47, 38, 0.05);
}

.role-workspace-card > header,
.assignment-card > header,
.workspace-map-list > article > header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workspace-level-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 12px;
  background: #e8f5ef;
  color: #0f6b47;
}

.workspace-level-icon.platform,
.workspace-level-icon.country {
  background: #eee9f8;
  color: #68439b;
}

.workspace-level-icon.region,
.workspace-level-icon.mmda {
  background: #e7f0f8;
  color: #1769aa;
}

.acting-as-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px -15px 12px;
  padding: 11px 15px;
  border-block: 1px solid #dce9e2;
  background: #f2faf6;
  color: #0a5c3e;
}

.acting-as-banner > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 30px;
  border-radius: 50%;
  background: #0f6b47;
  color: #fff;
}

.acting-as-banner > span:last-child,
.acting-as-banner small {
  display: block;
}

.acting-as-banner small {
  margin-bottom: 2px;
  color: #69786f;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.role-workspace-card > p,
.workspace-map-list > article > p {
  color: #5d6b64;
  font-size: 13px;
  line-height: 1.5;
}

.bundle-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.bundle-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e6f4ed;
  color: #0b6846;
  font-size: 10px;
  font-weight: 800;
  text-transform: capitalize;
}

.bundle-chip.derived {
  background: #e9edf8;
  color: #38528b;
}

.derived-role-note,
.workspace-boundaries {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.45;
}

.derived-role-note {
  margin: 8px 0;
  background: #f0f3fa;
  color: #40547d;
}

.derived-role-note small {
  display: block;
  margin-top: 2px;
}

.workspace-boundaries {
  margin-top: 10px;
  background: #fff6df;
  color: #684f16;
}

.derived-role-note > svg,
.derived-role-note > i,
.workspace-boundaries > svg,
.workspace-boundaries > i {
  width: 17px;
  flex: 0 0 17px;
}

.capability-title {
  margin: 14px 0 7px;
  color: #435149;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.capability-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #34423b;
  font-size: 12px;
}

.capability-list li svg,
.capability-list li i {
  width: 16px;
  flex: 0 0 16px;
  color: #15915f;
}

.role-workspace-card > footer,
.assignment-card > footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.role-workspace-card > footer button,
.assignment-card > footer button {
  min-height: 40px;
  flex: 1 1 140px;
}

.governance-workflow {
  display: grid;
  gap: 0;
  padding: 4px 0 8px;
}

.governance-workflow article {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-height: 58px;
}

.governance-workflow article:not(:last-child)::after {
  position: absolute;
  top: 30px;
  bottom: 0;
  left: 16px;
  width: 2px;
  background: #d8e5de;
  content: "";
}

.governance-workflow article > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  z-index: 1;
  border-radius: 50%;
  background: #0f6b47;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.governance-workflow article small {
  display: block;
  margin-top: 3px;
  color: #65736b;
  font-size: 11px;
  line-height: 1.4;
}

.assignment-state {
  max-width: 86px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff0c8;
  color: #725210;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.assignment-state.active {
  background: #e2f4eb;
  color: #0f6b47;
}

.assignment-state.suspended {
  background: #fff0c8;
  color: #725210;
}

.assignment-state.expired,
.assignment-state.vacant {
  background: #e9edeb;
  color: #53615a;
}

.assignment-state.revoked {
  background: #f9e2e4;
  color: #982b36;
}

.lifecycle-policy-note,
.succession-notice,
.suspension-context {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px;
  border-radius: 11px;
}

.lifecycle-policy-note {
  margin-bottom: 12px;
  border: 1px solid #ecd28a;
  background: #fff8e5;
  color: #614c17;
}

.lifecycle-policy-note > svg,
.lifecycle-policy-note > i,
.succession-notice > svg,
.succession-notice > i {
  width: 18px;
  flex: 0 0 18px;
}

.lifecycle-policy-note small,
.succession-notice small,
.suspension-context small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.45;
}

.lifecycle-card {
  border-color: #ded7ec;
}

.succession-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 11px 0;
  color: #5b4381;
  font-size: 10px;
  font-weight: 800;
}

.succession-line svg,
.succession-line i {
  width: 16px;
}

.suspension-context {
  display: grid;
  gap: 2px;
  margin: 11px 0;
  border-left: 3px solid #d19b1d;
  background: #fff7df;
  color: #634b14;
}

.succession-notice {
  background: #f0ecf8;
  color: #553d7e;
}

.successor-panel {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #e3ddec;
}

.successor-panel > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #5f408d;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.successor-panel > summary svg,
.successor-panel > summary i {
  width: 17px;
}

.role-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  margin: 15px 0;
}

.role-progress > div {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #9aa39f;
  text-align: center;
}

.role-progress > div:not(:last-child)::after {
  position: absolute;
  top: 11px;
  left: calc(50% + 12px);
  width: calc(100% - 21px);
  height: 2px;
  background: #dfe6e2;
  content: "";
}

.role-progress > div > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  z-index: 1;
  border: 2px solid #d5ddd9;
  border-radius: 50%;
  background: #fff;
  font-size: 9px;
  font-weight: 900;
}

.role-progress > div.complete,
.role-progress > div.current {
  color: #0f6b47;
}

.role-progress > div.complete > span,
.role-progress > div.current > span {
  border-color: #0f6b47;
  background: #0f6b47;
  color: #fff;
}

.role-progress > div.complete:not(:last-child)::after {
  background: #0f6b47;
}

.role-progress small {
  font-size: 8px;
  line-height: 1.2;
}

.assignment-evidence {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 10px;
  border-radius: 10px;
  background: #f7f9f8;
}

.assignment-evidence div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
}

.assignment-evidence dt {
  color: #7a8780;
  font-size: 10px;
  font-weight: 800;
}

.assignment-evidence dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #36433d;
  font-size: 11px;
}

.assignment-card textarea {
  min-height: 76px;
}

.role-acceptance-checks {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 10px;
  border-radius: 10px;
  background: #eff7f3;
  color: #34453d;
  font-size: 11px;
  line-height: 1.4;
}

.role-acceptance-checks label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.role-acceptance-checks input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
  accent-color: #0f6b47;
}

.danger-text {
  color: #a92832 !important;
}

.assignment-history {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e5eae7;
}

.assignment-history summary {
  color: #52615a;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.assignment-history > div {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  padding-left: 9px;
  border-left: 2px solid #dce7e1;
}

.assignment-history small {
  color: #6e7b75;
  font-size: 10px;
  line-height: 1.4;
}

.my-role-history {
  display: grid;
  overflow: hidden;
  border: 1px solid #dfe6e2;
  border-radius: 14px;
  background: #fff;
}

.my-role-history article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.my-role-history article + article {
  border-top: 1px solid #e7ece9;
}

.authority-layer-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0;
  padding: 5px;
  border: 1px solid #dfe7e3;
  border-radius: 13px;
  background: #f5f7f6;
}

.authority-layer-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 10px 7px;
  border-radius: 9px;
  color: #637169;
  font-size: 11px;
  font-weight: 800;
}

.authority-layer-switch button.active {
  color: #fff;
  background: #0f6b47;
  box-shadow: 0 4px 12px rgba(15, 107, 71, 0.18);
}

.authority-layer-switch svg,
.authority-layer-switch i {
  width: 16px;
  flex: 0 0 16px;
}

.public-authority-institutions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.public-workspace-vacancy {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #718078;
  font-size: 10px;
  font-weight: 700;
}

.public-workspace-vacancy svg,
.public-workspace-vacancy i {
  width: 15px;
  flex: 0 0 15px;
}

.public-authority-institutions details {
  overflow: hidden;
  border: 1px solid #e1e8e4;
  border-radius: 11px;
  background: #f9fbfa;
}

.public-authority-institutions summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px;
  cursor: pointer;
  list-style: none;
}

.public-authority-institutions summary::-webkit-details-marker {
  display: none;
}

.public-authority-institutions summary > svg,
.public-authority-institutions summary > i {
  width: 16px;
  flex: 0 0 16px;
  color: #77847d;
}

.public-authority-institutions details > p {
  margin: 0;
  padding: 0 11px 10px;
  color: #637169;
  font-size: 11px;
  line-height: 1.45;
}

.public-position-list {
  display: grid;
  border-top: 1px solid #e4ebe7;
}

.public-position-list > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
}

.public-position-list > div + div {
  border-top: 1px solid #e8edea;
}

.public-position-list .verification-badge {
  white-space: nowrap;
}

.authority-path-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  margin: 13px 0;
  padding: 10px;
  overflow-x: auto;
  border-radius: 12px;
  background: #10251c;
  color: #fff;
}

.authority-path-ribbon span {
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
}

.authority-path-ribbon svg,
.authority-path-ribbon i {
  width: 13px;
  flex: 0 0 13px;
  color: #8fc6ae;
}

.map-role-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8e5;
}

.map-role-list > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.map-role-list small {
  display: block;
  margin-top: 2px;
  color: #6a7771;
  font-size: 10px;
  line-height: 1.35;
}

.workspace-create-panel {
  margin-top: 13px;
  border: 1px solid #d6e3dd;
  border-radius: 12px;
  background: #f7faf8;
}

.workspace-create-panel summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  color: #0f6b47;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.workspace-create-panel summary::-webkit-details-marker {
  display: none;
}

.workspace-create-panel summary svg,
.workspace-create-panel summary i {
  width: 18px;
}

.workspace-create-panel form {
  margin: 0;
  padding: 0 12px 12px;
}

.composer-source-preview {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-radius: 10px;
  background: #e9f5ef;
  color: #0d6444;
}

.composer-source-preview > svg,
.composer-source-preview > i {
  width: 19px;
  flex: 0 0 19px;
}

.composer-source-preview small {
  display: block;
  color: #65786f;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.approval-boundary-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border: 1px solid #ecd28a;
  border-radius: 10px;
  background: #fff8e5;
  color: #614c17;
}

.approval-boundary-note > svg,
.approval-boundary-note > i {
  width: 18px;
  flex: 0 0 18px;
}

.approval-boundary-note small {
  display: block;
  margin-top: 2px;
  color: #756943;
  font-size: 10px;
  line-height: 1.4;
}

.workspace-item-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 9px;
  margin-top: 15px;
}

.workspace-item-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 11px;
  border: 1px solid #e0e7e3;
  border-radius: 12px;
  background: #fafcfb;
}

.workspace-item-card > header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 9px;
}

.workspace-item-card > header .row-copy {
  min-width: 0;
}

.workspace-item-card strong,
.workspace-item-card small,
.workspace-item-card p,
.publication-attribution dd {
  overflow-wrap: anywhere;
}

.publication-state {
  max-width: 104px;
  padding: 5px 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e2f4eb;
  color: #0f6b47;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.publication-state.approval_pending {
  background: #fff0c8;
  color: #725210;
}

.publication-state.declined {
  background: #f9e2e4;
  color: #982b36;
}

.workspace-item-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 10px;
  background: #e6f3ec;
  color: #0f6b47;
}

.workspace-item-icon svg,
.workspace-item-icon i {
  width: 17px;
}

.workspace-item-card p {
  margin: 9px 0 0;
  color: #536159;
  font-size: 11px;
  line-height: 1.45;
}

.publication-attribution {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid #e2e8e5;
}

.publication-attribution div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
}

.publication-attribution dt,
.publication-attribution dd {
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
}

.publication-attribution dt {
  color: #738078;
  font-weight: 800;
}

.publication-attribution dd {
  color: #35443c;
}

.publication-review-panel,
.publication-revision-panel,
.publication-change-panel,
.publication-history {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #d6e3dd;
  border-radius: 10px;
  background: #fff;
}

.publication-review-panel > div,
.publication-revision-panel form > div,
.publication-change-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.publication-review-panel button,
.publication-revision-panel button,
.publication-change-actions button {
  min-height: 38px;
  flex: 1 1 130px;
}

.publication-revision-panel {
  display: grid;
  gap: 7px;
  border-color: #ecd28a;
  background: #fffaf0;
}

.publication-revision-panel p {
  margin: 0;
}

.publication-revision-panel small {
  color: #6d756f;
  font-size: 10px;
  line-height: 1.4;
}

.publication-change-panel > summary,
.publication-history > summary {
  color: #0f6b47;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.publication-change-panel > summary svg,
.publication-change-panel > summary i {
  width: 15px;
  vertical-align: middle;
}

.group-activity-editor {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #d6e3dd;
  border-radius: 12px;
  background: #f8fbf9;
}

.group-activity-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.governance-team-setup {
  min-width: 0;
}

.director-governance-panel {
  display: grid;
  min-width: 0;
  gap: 11px;
  margin-bottom: 18px;
  padding: 13px;
  overflow: hidden;
  border: 1px solid #cad9e7;
  border-radius: 16px;
  background: linear-gradient(145deg, #f4f8fc, #fff);
}

.director-root-heading,
.director-self-notice {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  gap: 10px;
}

.director-root-heading > svg,
.director-root-heading > i,
.director-self-notice > svg,
.director-self-notice > i {
  width: 22px;
  flex: 0 0 22px;
  color: #315d86;
}

.director-root-heading > span:nth-child(2),
.director-self-notice span {
  min-width: 0;
  flex: 1;
}

.director-root-heading strong,
.director-root-heading small,
.director-self-notice strong,
.director-self-notice small {
  display: block;
  overflow-wrap: anywhere;
}

.director-root-heading > span > small,
.director-self-notice small {
  margin-top: 2px;
  color: #627281;
  font-size: 10px;
  line-height: 1.4;
}

.director-roster,
.platform-role-list,
.director-action-list {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.platform-permission-role > summary {
  list-style: none;
}

.platform-permission-role > summary .row-copy {
  min-width: 0;
  flex: 1;
}

.platform-permission-role form {
  margin-top: 10px;
}

.permission-action-group {
  display: grid;
  min-width: 0;
  gap: 4px;
  margin: 0;
  padding: 8px;
  border: 1px solid #e1e8e4;
  border-radius: 10px;
}

.permission-action-group legend {
  padding: 0 4px;
  color: #51625a;
  font-size: 9px;
  font-weight: 900;
}

.permission-action-group .checkbox-field {
  padding: 6px;
  border-radius: 8px;
  background: #f7f9f8;
}

.permission-action-group .checkbox-field strong,
.permission-action-group .checkbox-field small {
  display: block;
  font-size: 10px;
  line-height: 1.3;
}

.permission-action-group .checkbox-field small {
  margin-top: 2px;
  color: #748078;
  font-size: 8px;
}

.director-roster article {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  gap: 9px;
  padding: 9px;
  border: 1px solid #dce5ed;
  border-radius: 11px;
  background: #fff;
}

.director-roster .avatar {
  width: 36px;
  height: 36px;
  font-size: 10px;
}

.director-roster .director-removal-panel {
  grid-column: 1 / -1;
  width: 100%;
}

.director-roster small,
.platform-role-list small,
.director-action-list small,
.director-provenance {
  overflow-wrap: anywhere;
}

.director-policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.director-policy-grid > span {
  min-width: 0;
  padding: 9px;
  border-radius: 10px;
  background: #eaf1f7;
}

.director-policy-grid strong,
.director-policy-grid small {
  display: block;
}

.director-policy-grid strong {
  color: #294d6e;
  font-size: 10px;
}

.director-policy-grid small {
  margin-top: 3px;
  color: #5f707e;
  font-size: 9px;
  line-height: 1.35;
}

.director-self-notice {
  padding: 10px;
  border-radius: 11px;
  background: #e9f5ef;
}

.director-appointment-panel,
.director-revocation-panel {
  min-width: 0;
  padding-top: 9px;
  border-top: 1px solid #dfe7ed;
}

.director-appointment-panel > summary,
.director-revocation-panel > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #315d86;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.director-appointment-panel form,
.director-revocation-panel form {
  min-width: 0;
  max-width: 100%;
  margin-top: 10px;
}

.director-appointment-panel input,
.director-appointment-panel select,
.director-appointment-panel textarea,
.director-revocation-panel input,
.director-revocation-panel textarea {
  min-width: 0;
  max-width: 100%;
}

.director-governance-panel .compact-title {
  margin-top: 4px;
}

.director-governance-panel .assignment-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.director-provenance {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  color: #52677a;
  font-size: 9px;
  line-height: 1.4;
}

.director-provenance svg,
.director-provenance i {
  width: 14px;
  flex: 0 0 14px;
}

.director-action-card footer,
.director-removal-card footer,
.authority-review-items footer {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.director-vote-history,
.authority-review-list,
.authority-review-items {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.director-vote-history {
  margin-top: 8px;
}

.director-vote-history > span,
.authority-review-items > article {
  min-width: 0;
  padding: 8px;
  border: 1px solid #dce5ed;
  border-radius: 9px;
  background: #f7fafc;
}

.director-vote-history strong,
.director-vote-history small,
.authority-review-items strong,
.authority-review-items small {
  display: block;
  overflow-wrap: anywhere;
}

.director-vote-history small,
.authority-review-items small {
  margin-top: 2px;
  color: #627281;
  font-size: 9px;
  line-height: 1.4;
}

.authority-review-cycle > p {
  margin: 8px 0;
  color: #52677a;
  font-size: 10px;
  line-height: 1.45;
}

.authority-review-items > article > header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.authority-review-items > article > header .row-copy {
  min-width: 0;
  flex: 1;
}

@media (max-width: 380px) {
  .director-policy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.configured-path-list,
.team-user-list {
  display: grid;
  min-width: 0;
  gap: 7px;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid #dce5e1;
  border-radius: 12px;
  background: #fff;
}

.configured-path-list small {
  overflow-wrap: anywhere;
  color: #65736c;
}

.team-user-list > div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.team-user-list .avatar {
  width: 36px;
  height: 36px;
}

.authority-paths {
  display: grid;
  gap: 7px;
}

.publication-change-panel form {
  margin-top: 10px;
}

.publication-history > div {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid #e8edea;
}

.publication-history > div:last-child {
  border-bottom: 0;
}

.publication-history small {
  color: #6b7770;
  font-size: 9px;
  line-height: 1.4;
}

.workspace-poll-options {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}

.workspace-poll-options span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  background: #fff;
  color: #35443c;
  font-size: 10px;
}

.workspace-poll-options svg,
.workspace-poll-options i {
  width: 12px;
  flex: 0 0 12px;
  color: #0f6b47;
}

.poll-boundary {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  color: #78612a;
  font-size: 9px;
  line-height: 1.35;
}

.poll-boundary svg,
.poll-boundary i {
  width: 13px;
  flex: 0 0 13px;
}

.civic-topic-strip {
  display: flex;
  gap: 7px;
  margin: 0 -14px 10px;
  padding: 0 14px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.civic-topic-strip button {
  min-height: 34px;
  padding: 0 13px;
  flex: 0 0 auto;
  border: 1px solid #d7e2dc;
  border-radius: 999px;
  background: #fff;
  color: #526259;
  font-size: 10px;
  font-weight: 800;
}

.civic-topic-strip button.active {
  border-color: #0f6b47;
  background: #0f6b47;
  color: #fff;
}

.civic-publication-list {
  display: grid;
  gap: 11px;
}

.civic-publication-card {
  padding: 13px;
  overflow: hidden;
  border: 1px solid #dce5e0;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 18px rgb(32 66 49 / 7%);
}

.civic-publication-card.delivery-priority {
  border-top: 4px solid #d89918;
}

.civic-publication-card.delivery-emergency {
  border-top: 4px solid #bd2635;
  background: #fffafa;
}

.civic-publication-card > header {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.civic-publication-card > header .row-copy {
  min-width: 0;
}

.civic-publication-card > header .row-copy strong {
  font-size: 13px;
  line-height: 1.3;
}

.civic-publication-card > header .row-copy small {
  color: #6c7a72;
  line-height: 1.35;
}

.civic-publication-card > p {
  margin: 11px 0 0;
  color: #3f4e46;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-line;
}

.resident-poll {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}

.resident-poll form {
  display: grid;
  gap: 6px;
}

.poll-choice {
  position: relative;
  display: flex;
  min-height: 42px;
  padding: 8px 10px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid #dbe4df;
  border-radius: 10px;
  background: #fff;
  color: #35443c;
  font-size: 10px;
  text-align: left;
}

.poll-choice > span,
.poll-choice > strong {
  position: relative;
  z-index: 1;
}

.poll-choice > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.poll-choice > span svg {
  width: 14px;
  color: #0f6b47;
}

.poll-choice > i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--poll-percent);
  background: #e3f3eb;
}

.poll-choice.selected {
  border-color: #0f6b47;
  font-weight: 900;
}

.resident-poll > small {
  color: #6d7972;
  font-size: 9px;
}

.civic-publication-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.civic-publication-actions button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #dbe4df;
  border-radius: 9px;
  background: #f7faf8;
  color: #45554c;
  font-size: 10px;
  font-weight: 800;
}

.civic-publication-actions button.selected {
  border-color: #0f6b47;
  background: #e4f4ec;
  color: #0f6b47;
}

.civic-publication-comments {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e0e7e3;
}

.civic-publication-comments > header strong,
.civic-publication-comments > header small {
  display: block;
}

.civic-publication-comments > header strong {
  font-size: 12px;
}

.civic-publication-comments > header small {
  margin-top: 2px;
  color: #6d7972;
  font-size: 9px;
  line-height: 1.35;
}

.civic-comment {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
}

.civic-comment-avatar {
  width: 30px;
  height: 30px;
  font-size: 9px;
}

.civic-comment-content {
  min-width: 0;
}

.civic-comment-content > strong {
  display: inline;
  font-size: 10px;
}

.civic-comment-target {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 5px;
  color: #6b7770;
  font-size: 9px;
  font-weight: 750;
}

.civic-comment-target svg {
  width: 11px;
  height: 11px;
}

.civic-comment-body {
  width: 100%;
  display: block;
  margin-top: 3px;
  padding: 0;
  color: #29362f;
  background: transparent;
  border: 0;
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
}

.civic-comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 5px;
}

.civic-comment-actions time,
.civic-comment-actions button {
  padding: 0;
  color: #7a857f;
  background: transparent;
  border: 0;
  font-size: 9px;
  font-weight: 750;
}

.civic-comment-replies {
  display: grid;
  gap: 11px;
  margin-left: 37px;
  padding-left: 10px;
  border-left: 1px solid #d9e2dd;
}

.civic-comment-empty {
  padding: 12px;
  color: #68756e;
  background: #f6f9f7;
  border-radius: 9px;
  font-size: 10px;
  text-align: center;
}

.civic-unified-timeline {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.civic-timeline-message {
  max-width: 86%;
  margin: 0;
}

.civic-timeline-message.mine {
  justify-self: end;
}

.civic-bundle-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e2dd;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(28 57 42 / 10%);
}

.civic-bundle-card.delivery-priority {
  border-top: 4px solid #d89918;
}

.civic-bundle-hero {
  position: relative;
  min-height: 148px;
  overflow: hidden;
  background: #91363a;
}

.civic-bundle-hero > img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
}

.civic-bundle-rows {
  display: grid;
}

.civic-bundle-row {
  width: 100%;
  display: grid;
  min-width: 0;
  min-height: 80px;
  padding: 9px 10px 9px 13px;
  grid-template-columns: minmax(0, 1fr) 58px 14px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid #e5ebe8;
  background: #fff;
  color: #1d2923;
  text-align: left;
}

.civic-bundle-row-copy {
  min-width: 0;
}

.civic-bundle-row-copy small,
.civic-bundle-row-copy strong,
.civic-bundle-row-copy span {
  display: block;
  overflow-wrap: anywhere;
}

.civic-bundle-row-copy small {
  color: #0f6b47;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.civic-bundle-row-copy strong {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.25;
}

.civic-bundle-row-copy span {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: #69756f;
  font-size: 9px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.civic-bundle-row > img {
  width: 58px;
  height: 58px;
  border-radius: 7px;
  object-fit: cover;
}

.civic-bundle-row > svg {
  width: 14px;
  color: #98a59e;
}

.civic-bundle-card > footer {
  display: flex;
  padding: 9px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f8faf9;
  color: #67736d;
  font-size: 8px;
  line-height: 1.3;
}

.civic-bundle-card > footer span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
}

.civic-bundle-card > footer svg {
  width: 12px;
}

.civic-publication-cover {
  width: calc(100% + 26px);
  height: 150px;
  margin: -13px -13px 12px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #eef2f0;
}

.civic-publication-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.civic-article-detail {
  display: grid;
  min-width: 0;
  gap: 15px;
  padding-bottom: 28px;
}

.civic-article-gallery {
  display: grid;
  gap: 6px;
  margin: -14px -14px 0;
}

.civic-article-gallery.count-2,
.civic-article-gallery.count-3,
.civic-article-gallery.count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.civic-article-gallery figure {
  min-width: 0;
  margin: 0;
  background: #e9efec;
}

.civic-article-gallery img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.civic-article-gallery.count-2 img,
.civic-article-gallery.count-3 img,
.civic-article-gallery.count-4 img {
  height: 132px;
}

.civic-article-gallery figcaption {
  padding: 6px 9px;
  color: #627169;
  background: #f5f8f6;
  font-size: 8px;
  line-height: 1.35;
}

.civic-article-heading > span {
  color: #0f6b47;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.civic-article-heading h1 {
  margin: 7px 0 0;
  font-size: 25px;
  line-height: 1.12;
}

.civic-article-heading p {
  margin: 9px 0;
  color: #526159;
  font-size: 12px;
  line-height: 1.5;
}

.civic-article-heading small {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: #718078;
  font-size: 9px;
  line-height: 1.4;
}

.civic-article-heading small svg {
  width: 13px;
  flex: 0 0 13px;
  color: #0f6b47;
}

.civic-article-body {
  padding: 15px;
  border: 1px solid #dce5e0;
  border-radius: 12px;
  background: #fff;
  color: #26352d;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-line;
}

.civic-article-section {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e0e7e3;
  border-radius: 12px;
  background: #fafcfb;
}

.civic-article-section h2 {
  margin: 0 0 9px;
  font-size: 13px;
}

.article-bundle-appearance {
  display: grid;
  gap: 3px;
  padding: 8px 0;
  border-bottom: 1px solid #e4eae7;
}

.article-bundle-appearance:last-child {
  border-bottom: 0;
}

.article-bundle-appearance small {
  color: #6d7a73;
  font-size: 9px;
}

.civic-article-actions .primary-button {
  width: 100%;
}

.workspace-article-media {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
}

.workspace-article-media figure {
  width: 104px;
  margin: 0;
  flex: 0 0 104px;
}

.workspace-article-media img {
  width: 104px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
}

.workspace-article-media figcaption {
  margin-top: 3px;
  color: #6d7a73;
  font-size: 8px;
  line-height: 1.25;
}

.workspace-article-summary {
  display: block;
  margin-top: 9px;
  color: #2f4037;
  font-size: 11px;
  line-height: 1.4;
}

.civic-media-field input[type="file"] {
  height: auto;
  min-height: 46px;
  padding: 8px;
  white-space: normal;
}

.bundle-library-heading {
  display: grid;
  gap: 3px;
  margin-top: 3px;
}

.bundle-library-heading small {
  color: #65736c;
  font-size: 9px;
  line-height: 1.4;
}

.bundle-candidate-list,
.workspace-bundle-section {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.bundle-candidate,
.workspace-bundle-card {
  min-width: 0;
  overflow: hidden;
  padding: 10px;
  border: 1px solid #dbe5df;
  border-radius: 11px;
  background: #fff;
}

.bundle-candidate-select {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: flex-start;
}

.bundle-candidate-select input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.bundle-candidate-select small,
.bundle-candidate-select strong,
.bundle-candidate-select em {
  display: block;
  overflow-wrap: anywhere;
}

.bundle-candidate-select small {
  color: #0f6b47;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.bundle-candidate-select strong {
  margin-top: 2px;
  font-size: 11px;
}

.bundle-candidate-select em {
  margin-top: 3px;
  color: #6a7770;
  font-size: 9px;
  font-style: normal;
  line-height: 1.35;
}

.bundle-order {
  margin-top: 8px;
}

.bundle-thumbnail-choices {
  display: flex;
  gap: 7px;
  margin-top: 8px;
  overflow-x: auto;
}

.bundle-thumbnail-choices > small {
  width: 52px;
  flex: 0 0 52px;
  color: #66746d;
  font-size: 8px;
  font-weight: 800;
}

.bundle-thumbnail-choices label {
  position: relative;
  width: 74px;
  flex: 0 0 74px;
}

.bundle-thumbnail-choices input {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 1;
}

.bundle-thumbnail-choices img {
  width: 74px;
  height: 58px;
  border: 2px solid transparent;
  border-radius: 8px;
  object-fit: cover;
}

.bundle-thumbnail-choices input:checked + img {
  border-color: #0f6b47;
}

.bundle-thumbnail-choices span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #6a7770;
  font-size: 7px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workspace-bundle-section {
  margin-top: 15px;
}

.workspace-bundle-card > header {
  display: grid;
  min-width: 0;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.workspace-bundle-card > header > img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.workspace-bundle-items {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.workspace-bundle-items li {
  display: grid;
  min-width: 0;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.workspace-bundle-items img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
}

.workspace-bundle-items small,
.workspace-bundle-items strong {
  display: block;
  overflow-wrap: anywhere;
}

.workspace-bundle-items small {
  color: #0f6b47;
  font-size: 7px;
  text-transform: uppercase;
}

.workspace-bundle-items strong {
  margin-top: 2px;
  font-size: 10px;
}

.publication-limit-note {
  display: flex;
  gap: 7px;
  margin-top: 10px;
  padding: 8px;
  border-radius: 9px;
  background: #fff2d6;
  color: #74591e;
  font-size: 9px;
  line-height: 1.4;
}

.publication-limit-note svg {
  width: 14px;
  flex: 0 0 14px;
}

.civic-report-form,
.publication-report-status {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #e4eae7;
}

@media (max-width: 359px) {
  .screen-content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .add-contact-page,
  .contact-subdirectory {
    margin-right: -10px;
    margin-left: -10px;
  }

  .contact-directory-page {
    margin-right: -10px;
    margin-left: -10px;
  }

  .category-grid,
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .authority-grid,
  .metric-grid,
  .delivery-grid,
  .utility-links {
    grid-template-columns: 1fr;
  }

  .metric-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-order {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .product-order button {
    grid-column: 1 / -1;
  }

  .composer-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .composer-options button {
    grid-column: 1 / -1;
  }

  .client-grid {
    grid-template-columns: 1fr;
  }

  .country-list dl {
    grid-template-columns: 1fr;
  }

  .civic-group-dock {
    grid-template-columns: 48px repeat(3, minmax(0, 1fr));
  }

  .civic-group-dock button {
    gap: 3px;
    padding-inline: 3px;
    font-size: 9px;
  }

  .civic-group-hero h1 {
    max-width: 74%;
    font-size: 22px;
  }

  .civic-discussion-composer {
    gap: 4px;
    padding-inline: 6px;
  }

  .civic-discussion-composer > .icon-button {
    flex-basis: 34px;
    width: 34px;
  }

  .civic-discussion-composer .send-button {
    flex-basis: 38px;
    width: 38px;
  }
}

@media (max-width: 380px) {
  .role-workspace-card > header .row-copy strong,
  .workspace-item-card > header .row-copy strong,
  .workspace-bundle-card > header .row-copy strong {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }

  .workspace-item-card > header {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .workspace-item-card > header .row-copy {
    grid-column: 2;
  }

  .workspace-item-card > header .publication-state {
    max-width: 100%;
    grid-column: 2;
    justify-self: start;
  }

  .workspace-bundle-card > header {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .workspace-bundle-card > header .publication-state {
    max-width: 100%;
    grid-column: 2;
    justify-self: start;
  }
}

.task-detail-hero,
.task-evidence-list article,
.task-control-list,
.task-history-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.task-detail-hero {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-left: 4px solid var(--green);
}

.task-evidence-list,
.task-history-list {
  display: grid;
  gap: 8px;
}

.task-evidence-list article {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.task-control-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.task-decision-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.task-decision-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-control-list > span,
.task-history-list article {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.task-history-list {
  padding: 12px;
}

.task-history-list article + article {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.institution-hero {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 16px;
  border: 1px solid #eadbb8;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff8e8, #ffffff);
}

.institution-hero > svg,
.institution-hero > i {
  width: 48px;
  height: 48px;
  padding: 12px;
  color: #ffffff;
  background: #8b5a18;
  border-radius: 14px;
}

.institution-hero h1,
.institution-hero p {
  margin: 4px 0 0;
}

.institution-hero p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.institution-policy-grid,
.institution-case-list,
.institution-account-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.institution-policy-grid {
  margin: 10px 0;
}

.institution-policy-grid article,
.institution-account-list > article {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.institution-account-card {
  flex-wrap: wrap;
}

.institution-account-card > .status-pill {
  margin-left: auto;
}

.institution-administrator-list,
.institution-administrator-disclosure {
  flex: 1 0 100%;
  min-width: 0;
}

.institution-administrator-list {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.institution-administrator-list > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.institution-administrator-list strong,
.institution-administrator-list small {
  overflow-wrap: anywhere;
}

.institution-policy-grid svg,
.institution-policy-grid i {
  width: 17px;
  flex: 0 0 17px;
  color: var(--green);
}

.institution-case-card,
.organization-create-disclosure,
.organization-verification-disclosure,
.institution-intake-disclosure {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.organization-account-card > p,
.organization-account-card > button,
.organization-account-card > details,
.organization-account-card > .policy-strip {
  flex: 1 0 100%;
  min-width: 0;
}

.organization-account-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.institution-case-card > summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.institution-case-card > summary::-webkit-details-marker {
  display: none;
}

.institution-case-detail {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.institution-case-detail dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.institution-case-detail dl div {
  display: grid;
  grid-template-columns: minmax(88px, 0.42fr) minmax(0, 1fr);
  gap: 8px;
  font-size: 10px;
}

.institution-case-detail dt {
  color: var(--muted);
}

.institution-case-detail dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Followed organization posts and private service conversations */
.official-inbox-row {
  background: linear-gradient(110deg, rgba(15, 107, 71, .08), rgba(23, 105, 170, .05));
}

.official-inbox-avatar {
  display: inline-grid;
  place-items: center;
  background: linear-gradient(145deg, #1769aa, #0f6b47);
  color: #fff;
}

.official-inbox-avatar svg {
  width: 1.45rem;
  height: 1.45rem;
}

.official-inbox-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface, #fff);
  border: 1px solid rgba(15, 107, 71, .14);
}

.official-inbox-summary > .official-inbox-avatar {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  flex: 0 0 auto;
}

.organization-account-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(92px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 0 2px 8px;
  scrollbar-width: none;
}

.organization-account-strip::-webkit-scrollbar { display: none; }

.organization-account-strip button {
  min-width: 0;
  padding: 12px 8px;
  border: 0;
  border-radius: 16px;
  background: var(--surface, #fff);
  color: inherit;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.organization-account-strip strong,
.organization-account-strip small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organization-post-list {
  display: grid;
  gap: 12px;
}

.organization-post-card {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface, #fff);
  border: 1px solid rgba(31, 50, 43, .09);
  box-shadow: 0 7px 24px rgba(31, 50, 43, .045);
}

.organization-post-account {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.organization-post-card h2 {
  margin: 14px 0 7px;
  font-size: 1.05rem;
}

.organization-post-card p {
  margin: 0;
  color: var(--muted-text, #52605a);
  line-height: 1.5;
  white-space: pre-wrap;
}

.organization-post-card footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(31, 50, 43, .08);
  display: grid;
  gap: 5px;
  color: var(--muted-text, #68756f);
  font-size: .75rem;
}

.organization-post-card footer span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.organization-post-card footer svg { width: 14px; height: 14px; }

.organization-post-class {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f6b47;
  font-size: .78rem;
  font-weight: 700;
  text-transform: capitalize;
}

.compact-account-hero { margin-bottom: 16px; }

/* Provider-bound Pay & Services */
.pay-services-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .22);
}

.pay-services-hero button {
  min-height: 108px;
  padding: 14px 10px;
  border: 0;
  background: linear-gradient(145deg, #19a96b, #0f6b47);
  color: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  text-align: center;
}

.pay-services-hero button > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius);
}

.pay-services-hero svg { width: 20px; height: 20px; }
.pay-services-hero strong { font-size: 1rem; }
.pay-services-hero small { max-width: 140px; color: rgba(255, 255, 255, .82); font-size: .68rem; line-height: 1.3; }

.payment-boundary {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 10px;
  padding: 10px 11px;
  border: 1px solid rgba(15, 107, 71, .18);
  border-radius: var(--radius);
  background: #edf8f3;
  color: #084c33;
}

.payment-boundary.compact { margin-top: 10px; padding: 9px 10px; }
.payment-boundary > svg { width: 18px; height: 18px; flex: 0 0 auto; }
.payment-boundary span { display: grid; gap: 3px; }
.payment-boundary strong { font-size: .78rem; }
.payment-boundary small { color: #426459; font-size: .68rem; line-height: 1.35; }

.payment-recent,
.payment-service-section {
  margin-bottom: 10px;
  padding: 11px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(31, 50, 43, .08);
}

.payment-recent .section-title { margin: 0 0 6px; }
.payment-recent .section-title button { border: 0; background: transparent; color: var(--blue); font-weight: 700; }
.payment-recent > button {
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.payment-service-section h2 { margin-bottom: 10px; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.payment-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px 5px; }
.payment-service-grid button {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  text-align: center;
}

.payment-service-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--service-accent);
  background: var(--green-soft);
}

.payment-service-icon svg { width: 18px; height: 18px; }
.payment-service-grid strong { min-width: 0; font-size: .68rem; line-height: 1.18; overflow-wrap: anywhere; }
.payment-service-grid small { font-size: .58rem; color: var(--muted); }

.payment-money-card,
.payment-service-detail-hero,
.payment-support-hero {
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #19a96b, #0f6b47);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 107, 71, .12);
}

.payment-money-card { display: grid; justify-items: center; gap: 8px; text-align: center; }
.payment-qr-placeholder { width: 88px; height: 88px; display: grid; place-items: center; border-radius: var(--radius); background: #fff; color: var(--green); }
.payment-qr-placeholder svg { width: 56px; height: 56px; }
.payment-money-card p,
.payment-service-detail-hero p,
.payment-support-hero p { color: rgba(255, 255, 255, .86); }

.payment-money-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.payment-money-actions button { padding: 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; justify-items: start; gap: 5px; text-align: left; }
.payment-money-actions svg { color: var(--green); }
.payment-money-actions span { display: grid; gap: 3px; }
.payment-money-actions small { color: var(--muted); line-height: 1.35; }

.wallet-action-stack { display: grid; gap: 9px; margin: 10px 0; }
.wallet-action-stack .governance-disclosure { margin: 0; }
.wallet-fee-breakdown {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  font-size: .7rem;
}
.wallet-fee-breakdown span { color: var(--muted); }
.wallet-fee-breakdown strong { text-align: right; }

.payment-account-summary {
  padding: 17px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #193c82, #1769aa);
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.payment-account-summary > span:first-child { display: grid; gap: 4px; }
.payment-account-summary > span:first-child strong { font-size: 1.45rem; }
.payment-account-summary .status-pill { background: rgba(255, 255, 255, .16); color: #fff; }
.payment-account-list > button { width: 100%; padding: 11px 13px; border: 0; border-bottom: 1px solid var(--line); background: transparent; display: flex; align-items: center; gap: 9px; text-align: left; }
.payment-account-list > button:last-child { border-bottom: 0; }
.payment-account-footer { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 20px 0 4px; }
.payment-account-footer button { border: 0; background: transparent; color: var(--blue); font-weight: 700; }
.payment-account-footer span { width: 1px; height: 20px; background: var(--line); }

.payment-transaction-tools { display: grid; gap: 10px; }
.payment-filter-tabs { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.payment-filter-tabs button { flex: 0 0 auto; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .72rem; text-transform: capitalize; }
.payment-filter-tabs button.active { border-color: var(--green); background: var(--green); color: #fff; }
.payment-statistics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.payment-statistics span { padding: 10px; border-radius: var(--radius); background: var(--surface); display: grid; gap: 3px; }
.payment-statistics small { color: var(--muted); }
.payment-record-list { overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.payment-record-list article { padding: 11px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); }
.payment-record-list article:last-child { border-bottom: 0; }
.payment-record-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-soft); display: grid; place-items: center; flex: 0 0 auto; color: var(--green); }
.payment-record-amount { margin-left: auto; white-space: nowrap; font-size: .86rem; }
.payment-record-amount.credit { color: #0f8d59; }
.payment-record-amount.debit { color: var(--ink); }

.payment-method-cards { display: grid; gap: 9px; margin-bottom: 10px; }
.payment-method-cards article { min-height: 112px; padding: 15px; border-radius: var(--radius); background: linear-gradient(135deg, #1769aa, #193c82); color: #fff; display: flex; gap: 11px; overflow: hidden; }
.payment-method-cards article > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .17); flex: 0 0 auto; }
.payment-method-cards article > div { min-width: 0; display: grid; align-content: center; gap: 6px; }
.payment-method-cards article h2 { margin: 0; }
.payment-method-cards article small { color: rgba(255, 255, 255, .75); }
.payment-method-cards article strong { font-size: 1.1rem; letter-spacing: .08em; }

.payment-service-detail-hero {
  background-color: #0f6b47;
  background-image: linear-gradient(145deg, #176247, #0f6b47);
}
.payment-service-detail-hero > span { width: 42px; height: 42px; margin-bottom: 11px; display: grid; place-items: center; border-radius: var(--radius); background: rgba(255, 255, 255, .18); }
.payment-service-detail-hero > span svg { width: 23px; height: 23px; }
.payment-service-facts { margin: 10px 0; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.payment-service-facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 11px; border-bottom: 1px solid var(--line); }
.payment-service-facts div:last-child { border-bottom: 0; }
.payment-service-facts dt { color: var(--muted); }
.payment-service-facts dd { margin: 0; }

.payment-identity-card { padding: 13px; border-radius: var(--radius); background: var(--surface); display: flex; gap: 10px; }
.payment-identity-card > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius); background: var(--green-soft); color: var(--green); flex: 0 0 auto; }
.payment-identity-card > div { display: grid; gap: 4px; }
.payment-identity-card p { color: var(--muted); font-size: .8rem; }
.payment-settings-form { margin-top: 14px; }

.payment-support-hero { margin-bottom: 10px; padding: 16px; }
.payment-support-hero > span { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 11px; border-radius: var(--radius); background: rgba(255, 255, 255, .18); }
.consumer-protection-card { width: 100%; margin-bottom: 12px; padding: 12px; border: 0; border-radius: var(--radius); background: var(--surface); display: flex; align-items: center; gap: 9px; text-align: left; box-shadow: 0 5px 16px rgba(31, 50, 43, .06); }
.consumer-protection-card > svg:first-child { color: var(--green); }
.consumer-protection-card > svg:last-child { margin-left: auto; }
.consumer-protection-card span { display: grid; gap: 3px; }
.consumer-protection-card small { color: var(--muted); }
.payment-support-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.payment-support-heading h2 { margin: 0; }
.payment-support-heading .inbox-search { width: min(220px, 72%); margin: 0; }
.payment-faq-list { overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.payment-faq-list details { border-bottom: 1px solid var(--line); }
.payment-faq-list details:last-child { border-bottom: 0; }
.payment-faq-list summary { padding: 11px; display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none; }
.payment-faq-list summary::-webkit-details-marker { display: none; }
.payment-faq-list summary > svg:first-child { color: var(--muted); flex: 0 0 auto; }
.payment-faq-list summary > svg:last-child { margin-left: auto; transition: transform .2s ease; }
.payment-faq-list details[open] summary > svg:last-child { transform: rotate(180deg); }
.payment-faq-list details > p { padding: 0 11px 12px 42px; color: var(--muted); }
.payment-case-list article { padding: 11px; display: flex; align-items: center; gap: 9px; }
.payment-support-case { margin-top: 12px; }

@media (max-width: 360px) {
  .payment-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .payment-record-list article { align-items: flex-start; }
  .payment-record-amount { white-space: normal; text-align: right; }
}

/* Sequence 12: durable offline work and constrained-network recovery. */
.sync-hero {
  margin-bottom: 12px;
  padding: 13px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0f6b47, #176247);
  color: #fff;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.sync-hero > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .16);
}

.sync-hero > span svg { width: 20px; height: 20px; }
.sync-hero div { min-width: 0; display: grid; gap: 2px; }
.sync-hero h1 { margin: 0; font-size: 1.05rem; }
.sync-hero p,
.sync-hero small { color: rgba(255, 255, 255, .78); }
.sync-hero p { margin: 0; font-size: .68rem; line-height: 1.35; }
.sync-hero > strong { min-width: 30px; text-align: center; font-size: 1.25rem; }

.network-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.network-profile-grid button {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: center;
  gap: 2px 7px;
  text-align: left;
}

.network-profile-grid button.active {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
  background: var(--green-soft);
}

.network-profile-grid svg { grid-row: 1 / 3; width: 19px; height: 19px; color: var(--green); }
.network-profile-grid strong { font-size: .74rem; }
.network-profile-grid small { min-width: 0; color: var(--muted); font-size: .62rem; line-height: 1.25; }

.authorization-boundary-note {
  margin: 9px 0 12px;
  padding: 10px;
  border: 1px solid rgba(15, 107, 71, .2);
  border-radius: var(--radius);
  background: #edf8f3;
  color: #084c33;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.authorization-boundary-note > svg { width: 18px; height: 18px; flex: 0 0 auto; }
.authorization-boundary-note span { display: grid; gap: 3px; }
.authorization-boundary-note strong { font-size: .75rem; }
.authorization-boundary-note small { color: #426459; font-size: .65rem; line-height: 1.35; }

.sync-list { display: grid; gap: 7px; margin-bottom: 10px; }
.sync-record {
  padding: 10px;
  border: 1px solid rgba(31, 50, 43, .08);
  border-left: 3px solid #9aaaa3;
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-record.status-sent,
.sync-record.status-ready,
.sync-record.status-delivered { border-left-color: var(--green); }
.sync-record.status-failed { border-left-color: #c44545; }
.sync-record.status-conflicted { border-left-color: #d38319; }
.sync-record.status-cancelled { opacity: .65; }
.sync-record-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-soft); color: var(--green); display: grid; place-items: center; flex: 0 0 auto; }
.sync-record-icon svg { width: 16px; height: 16px; }
.sync-record .row-copy small { overflow-wrap: anywhere; }
.sync-record-actions { margin-left: auto; display: grid; justify-items: end; gap: 4px; flex: 0 0 auto; }
.sync-record-actions em { color: var(--muted); font-size: .6rem; font-style: normal; text-transform: uppercase; letter-spacing: .03em; }
.sync-record-actions button { padding: 3px 5px; border: 0; background: transparent; color: var(--blue); font-size: .64rem; font-weight: 700; }

.sync-file-picker { position: relative; overflow: hidden; margin: 9px 0; }
.sync-file-picker input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }

.screen-content.mini-runtime-screen { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.mini-runtime-frame-shell { width: 100%; height: auto; min-height: 0; flex: 1 1 auto; overflow: hidden; background: #fff; }
#mini-program-runtime-frame,
#mini-program-debug-frame { width: 100%; height: 100%; min-height: 0; display: block; border: 0; background: #fff; }

@media (max-width: 360px) {
  .network-profile-grid { grid-template-columns: 1fr; }
  .sync-record { align-items: flex-start; }
  .sync-record-actions { max-width: 74px; }
}

/* The native mini-app container supplies safe areas and its own close affordance. */
.native-mini-host body, .native-mini-host .device-stage { margin: 0; padding: 0; min-height: 100dvh; background: #fff; }
.native-mini-host .app-frame { width: 100%; max-width: none; height: 100dvh; min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }

.native-mini-host .mini-program-host-capsule { visibility: hidden; pointer-events: none; }
