/* AECO OS shared visual and interaction foundation. Consumer styles may compose
   these classes, but must not redefine the shared patterns in another sheet. */
@font-face {
  font-display: swap;
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  src: url("/brand-assets/fonts/Archivo-Regular.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  src: url("/brand-assets/fonts/Archivo-Bold.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "DenimINKWD";
  font-style: normal;
  font-weight: 400;
  src: url("/brand-assets/fonts/DenimINKWD-Regular.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "DenimINKWD";
  font-style: normal;
  font-weight: 500;
  src: url("/brand-assets/fonts/DenimINKWD-Medium.ttf") format("truetype");
}

:root {
  --grow-300: #99ffec;
  --grow-500: #4cefd0;
  --grow-800: #29806f;
  --bg-100: #f0f5f4;
  --bg-200: #d1e8e2;
  --bg-300: #b8d9d1;
  --bg-500: #52736a;
  --bg-800: #1c2926;
  --bg-900: #121a18;
  --content-100: #f5f5f5;
  --content-500: #808080;
  --content-800: #373737;
  --content-900: #1a1a1a;
  --green-100: #f1ffec;
  --green-900: #374b40;
  --yellow-100: #fff7d1;
  --yellow-900: #ac9315;
  --red-100: #ffefec;
  --red-900: #73291a;
  --blue-100: #eaf1fb;
  --blue-900: #3e63a8;
  --purple-100: #f7f6ff;
  --purple-900: #4e42a0;
  --aeco-body-font: "Archivo", system-ui, sans-serif;
  --aeco-display-font: "DenimINKWD", "Archivo", system-ui, sans-serif;
  --aeco-focus-ring: 3px solid rgba(76, 239, 208, 0.55);
}

.aeco-type-body {
  font-family: var(--aeco-body-font);
  font-size: 15px;
  line-height: 1.45;
}

.aeco-type-display {
  font-family: var(--aeco-display-font);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.aeco-icon,
.nav-icon {
  background-color: currentColor;
  display: inline-block;
  flex: 0 0 auto;
  height: var(--aeco-icon-size, 1em);
  -webkit-mask: var(--aeco-icon) center / contain no-repeat;
  mask: var(--aeco-icon) center / contain no-repeat;
  width: var(--aeco-icon-size, 1em);
}

.nav-item .nav-icon {
  --aeco-icon-size: 18px;
  color: #b7c6c0;
}

.nav-item.active .nav-icon {
  color: #f0f5f4;
}

.aeco-action {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  font: 600 13.5px/1.25 var(--aeco-body-font);
  gap: 7px;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  text-decoration: none;
}

.aeco-action--primary {
  background: var(--bg-800);
  color: var(--content-100);
}

.aeco-action--secondary,
.aeco-action--row {
  background: var(--bg-200);
  color: var(--bg-800);
}

.aeco-action--row {
  border-radius: 8px;
  font-size: 13px;
  min-height: 34px;
  padding: 7px 13px;
}

.aeco-action--quiet {
  background: transparent;
  color: var(--grow-800);
  min-height: 34px;
  padding: 6px 0;
}

.aeco-action[disabled],
.aeco-action[aria-disabled="true"] {
  background: var(--bg-100);
  border-color: var(--bg-200);
  color: var(--content-500);
  cursor: not-allowed;
}

.aeco-disabled-reason {
  align-items: center;
  color: var(--bg-500);
  display: flex;
  flex-wrap: wrap;
  font-size: 12.5px;
  gap: 10px;
}

.aeco-overflow {
  display: inline-grid;
  font-family: var(--aeco-body-font);
  gap: 6px;
  justify-items: end;
  position: relative;
}

.aeco-overflow--align-start {
  justify-items: start;
}

.aeco-overflow-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid var(--bg-200);
  border-radius: 9px;
  color: var(--bg-500);
  cursor: pointer;
  display: inline-flex;
  font: 700 16px/1 var(--aeco-body-font);
  justify-content: center;
  min-height: 40px;
  min-width: 44px;
  padding: 9px 12px;
}

.aeco-overflow-trigger:hover:not([disabled]) {
  border-color: var(--bg-300);
  color: var(--bg-800);
}

.aeco-overflow-trigger[aria-expanded="true"] {
  border-color: var(--grow-800);
  box-shadow: 0 0 0 3px rgba(76, 239, 208, 0.18);
  color: var(--bg-800);
}

.aeco-overflow-trigger[disabled],
.aeco-overflow-trigger[aria-disabled="true"] {
  background: var(--bg-100);
  border-color: var(--bg-200);
  color: var(--content-500);
  cursor: not-allowed;
}

.aeco-overflow-trigger__reason {
  justify-content: flex-end;
  max-width: 340px;
  text-align: right;
}

.aeco-overflow-menu {
  background: #fff;
  border: 1px solid var(--bg-300);
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(18, 26, 24, 0.2);
  box-sizing: border-box;
  display: grid;
  max-height: min(430px, 70vh);
  min-width: min(340px, calc(100vw - 36px));
  overflow-y: auto;
  padding: 7px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: max-content;
  z-index: 80;
}

.aeco-overflow--align-start .aeco-overflow-menu {
  left: 0;
  right: auto;
}

.aeco-overflow-menu[hidden] {
  display: none;
}

.aeco-overflow-sheet-header {
  display: none;
}

.aeco-overflow-menu__items {
  display: grid;
}

.aeco-overflow-group {
  display: grid;
  gap: 2px;
}

.aeco-overflow-group + .aeco-overflow-group {
  border-top: 1px solid var(--bg-100);
  margin-top: 6px;
  padding-top: 6px;
}

.aeco-overflow-group__label {
  color: var(--content-500);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  padding: 6px 10px 4px;
  text-transform: uppercase;
}

.aeco-overflow-item {
  align-items: flex-start;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--content-800);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: 600 13.5px/1.3 var(--aeco-body-font);
  gap: 3px;
  min-height: 40px;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.aeco-overflow-item:hover,
.aeco-overflow-item:focus-visible {
  background: var(--bg-100);
}

.aeco-overflow-trigger:focus-visible,
.aeco-overflow-item:focus-visible,
.aeco-overflow-sheet-header button:focus-visible {
  outline: var(--aeco-focus-ring);
  outline-offset: 2px;
}

.aeco-overflow-item[aria-disabled="true"] {
  color: var(--content-500);
  cursor: not-allowed;
}

.aeco-overflow-item--destructive:not([aria-disabled="true"]) {
  color: var(--red-900);
}

.aeco-overflow-item__reason {
  color: var(--bg-500);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.35;
}

.aeco-chip {
  align-items: center;
  background: var(--bg-100);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--bg-500);
  display: inline-flex;
  font: 600 11.5px/1.25 var(--aeco-body-font);
  gap: 5px;
  min-height: 24px;
  padding: 3px 10px;
  width: fit-content;
}

.aeco-chip--verified,
.aeco-chip--signed {
  background: var(--green-100);
  color: var(--green-900);
}

.aeco-chip--pending,
.aeco-chip--review {
  background: var(--yellow-100);
  color: var(--yellow-900);
}

.aeco-chip--blocked,
.aeco-chip--declined {
  background: var(--red-100);
  color: var(--red-900);
}

.aeco-chip--info,
.aeco-chip--handoff {
  background: var(--purple-100);
  color: var(--purple-900);
}

.aeco-chip--sent,
.aeco-chip--screening {
  background: var(--blue-100);
  color: var(--blue-900);
}

.aeco-chip--neutral,
.aeco-chip--waived {
  background: var(--bg-100);
  border-color: var(--bg-200);
  color: var(--bg-500);
}

.aeco-provenance-chip {
  border-radius: 6px;
}

.aeco-filter-toolbar {
  align-items: center;
  background: #edf3f1;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
}

.aeco-filter-search {
  align-items: center;
  background: #fff;
  border: 1px solid var(--bg-200);
  border-radius: 9px;
  display: flex;
  flex: 1 1 230px;
  gap: 8px;
  max-width: 360px;
  min-height: 36px;
  padding: 7px 11px;
}

.aeco-filter-search input {
  background: transparent;
  border: 0;
  font: 13px/1.3 var(--aeco-body-font);
  min-width: 0;
  outline: 0;
  padding: 0;
  width: 100%;
}

.aeco-filter-chip {
  background: #fff;
  border: 1px solid var(--bg-200);
  border-radius: 999px;
  color: var(--content-800);
  font: 600 12.5px/1.2 var(--aeco-body-font);
  min-height: 32px;
  padding: 6px 13px;
}

.aeco-filter-chip[aria-pressed="true"],
.aeco-filter-chip.is-active {
  background: var(--bg-800);
  border-color: var(--bg-800);
  color: var(--content-100);
}

.aeco-list {
  background: #fff;
  border: 1px solid var(--bg-200);
  border-radius: 12px;
  overflow: hidden;
}

.aeco-list-row {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.35fr) minmax(120px, 0.7fr) auto;
  padding: 15px 18px;
}

.aeco-list-row + .aeco-list-row {
  border-top: 1px solid var(--bg-100);
}

.aeco-list-row__object,
.aeco-list-row__evidence,
.aeco-list-row__meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.aeco-list-row__object strong {
  color: var(--content-900);
  font-size: 14px;
}

.aeco-list-row__evidence {
  color: var(--content-800);
  font-size: 13px;
}

.aeco-list-row__meta,
.aeco-list-row__object small {
  color: var(--content-500);
  font-size: 11.5px;
}

.aeco-list-row__action {
  justify-self: end;
}

.aeco-empty {
  align-items: center;
  color: var(--content-500);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 10px;
  min-height: 42px;
  padding: 10px 2px;
}

.aeco-empty--first-run .aeco-action {
  margin-left: auto;
}

.aeco-error {
  border-radius: 10px;
  display: grid;
  font-size: 13px;
  gap: 10px;
  padding: 12px 14px;
}

.aeco-error--field {
  align-items: center;
  background: var(--red-100);
  color: var(--red-900);
  grid-template-columns: minmax(0, 1fr) auto;
}

.aeco-error--recoverable {
  align-items: center;
  background: var(--yellow-100);
  color: var(--yellow-900);
  grid-template-columns: minmax(0, 1fr) auto;
}

.aeco-error__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.aeco-dialog-backdrop {
  align-items: center;
  background: rgba(18, 26, 24, 0.55);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 100;
}

.aeco-dialog {
  background: #fff;
  border: 1px solid var(--bg-200);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(18, 26, 24, 0.28);
  display: grid;
  gap: 16px;
  max-height: min(90dvh, 820px);
  overflow: auto;
  padding: 22px;
  width: min(100%, 680px);
}

.aeco-dialog-backdrop[hidden],
.aeco-dialog[hidden] {
  display: none;
}

.aeco-dialog--confirm-destructive {
  width: min(100%, 520px);
}

.aeco-dialog--pick-entity {
  width: min(100%, 620px);
}

.aeco-dialog--form {
  width: min(100%, 680px);
}

.aeco-dialog--review-proposal {
  width: min(100%, 760px);
}

.aeco-dialog__header,
.aeco-dialog__body,
.aeco-dialog__footer {
  min-width: 0;
}

.aeco-dialog__header {
  display: grid;
  gap: 5px;
}

.aeco-dialog__header h2 {
  font: 500 22px/1.15 var(--aeco-display-font);
  margin: 0;
}

.aeco-dialog__footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.aeco-search-create {
  background: #fff;
  border: 1px solid var(--bg-200);
  border-radius: 12px;
  display: grid;
  overflow: hidden;
}

.aeco-search-create__summary {
  color: var(--bg-500);
  font-size: 12px;
  padding: 10px 12px;
}

.aeco-search-create__matches {
  display: grid;
}

.aeco-search-create__offer {
  align-items: center;
  background: #fff;
  border: 0;
  border-top: 1px solid var(--bg-100);
  color: var(--grow-800);
  display: grid;
  font: 700 13px/1.3 var(--aeco-body-font);
  gap: 3px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 11px 12px;
  text-align: left;
  width: 100%;
}

.aeco-search-create__offer small {
  color: var(--bg-500);
  font-size: 11px;
  font-weight: 400;
  grid-column: 2;
}

.aeco-search-create__offer[disabled],
.aeco-search-create__offer[aria-disabled="true"] {
  color: var(--content-500);
  cursor: not-allowed;
}

.aeco-prefilled-field {
  background: var(--green-100) !important;
  border-color: var(--bg-300) !important;
}

.aeco-prefill-note,
.aeco-inference-note {
  align-items: flex-start;
  color: var(--bg-500);
  display: flex;
  font-size: 12px;
  gap: 8px;
}

.aeco-inference-note {
  background: var(--bg-100);
  border-radius: 10px;
  padding: 10px 12px;
}

:where(
  .aeco-action,
  .aeco-filter-chip,
  .aeco-filter-search input,
  .aeco-search-create__offer,
  .aeco-dialog,
  [data-aeco-dialog] button,
  [data-aeco-dialog] a,
  [data-aeco-dialog] input,
  [data-aeco-dialog] select,
  [data-aeco-dialog] textarea
):focus-visible {
  outline: var(--aeco-focus-ring);
  outline-offset: 2px;
}

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

.nav-drawer-trigger,
.nav-drawer-scrim {
  display: none;
}

.nav-drawer-trigger:focus-visible,
.nav-drawer-scrim:focus-visible {
  outline: 3px solid rgba(76, 239, 208, 0.42);
  outline-offset: 2px;
}

.side-nav {
  gap: 12px;
}

.nav-group {
  display: grid;
  gap: 2px;
}

.nav-group-label {
  color: #718a82;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0;
  padding: 0 12px 4px;
  text-transform: uppercase;
}

.account-menu {
  flex: 0 0 auto;
  position: relative;
}

.account-menu > summary {
  cursor: pointer;
  list-style: none;
}

.account-menu > summary::-webkit-details-marker {
  display: none;
}

.account-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid #dce8e4;
  border-radius: 12px;
  color: #2e4a42;
  display: flex;
  gap: 9px;
  max-width: min(280px, 34vw);
  min-height: 44px;
  padding: 5px 9px;
}

.account-menu[open] .account-trigger,
.account-trigger:hover {
  background: #f7faf9;
  border-color: #b8d9d1;
}

.account-trigger .avatar {
  background: #e2f6f0;
  color: #1b6f60;
  height: 30px;
  width: 30px;
}

.account-trigger-copy {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.account-trigger-copy > strong {
  color: #1a1a1a;
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-trigger-copy .role-chip {
  font-size: 9.5px;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  padding: 2px 7px;
  text-overflow: ellipsis;
}

.account-chevron {
  color: #7c938c;
  flex: 0 0 auto;
  font-size: 13px;
  transform: rotate(0deg);
  transition: transform 140ms ease;
}

.account-menu[open] .account-chevron {
  transform: rotate(180deg);
}

.account-popover {
  background: #fff;
  border: 1px solid #d1e8e2;
  border-radius: 13px;
  box-shadow: 0 18px 42px rgba(18, 26, 24, 0.24);
  color: #373737;
  display: grid;
  max-width: calc(100vw - 24px);
  min-width: 260px;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: max-content;
  z-index: 70;
}

.account-identity {
  border-bottom: 1px solid #eaf1ee;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.account-identity > strong {
  color: #1a1a1a;
  font-size: 14px;
}

.account-identity > span:not(.entity-type-badge) {
  color: #52736a;
  font-size: 11.5px;
}

.account-popover > a,
.account-signout button {
  background: #fff;
  border: 0;
  color: #2e4a42;
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  padding: 11px 14px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.account-popover > a:hover,
.account-signout button:hover {
  background: #f0f5f4;
}

.account-signout {
  border-top: 1px solid #eaf1ee;
  margin: 0;
}

.global-search {
  position: relative;
}

.global-search-results {
  background: #fff;
  border: 1px solid #d1e8e2;
  border-radius: 13px;
  box-shadow: 0 18px 46px rgba(18, 26, 24, 0.2);
  display: grid;
  max-height: min(560px, 72vh);
  overflow-y: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(520px, calc(100vw - 34px));
  z-index: 75;
}

.global-search-results[hidden] {
  display: none;
}

.global-search-group {
  display: grid;
  gap: 2px;
}

.global-search-group + .global-search-group {
  border-top: 1px solid #eaf1ee;
  margin-top: 5px;
  padding-top: 5px;
}

.global-search-group > h2 {
  color: #7f938d;
  font-family: Archivo, system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
  padding: 7px 9px 4px;
  text-transform: uppercase;
}

.global-search-result {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 9px;
  color: #373737;
  display: flex;
  gap: 9px;
  padding: 9px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.global-search-result:hover,
.global-search-result:focus-visible {
  background: #f0f8f5;
}

.global-search-copy {
  display: grid;
  flex: 1;
  min-width: 0;
}

.global-search-copy strong {
  color: #1a1a1a;
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-copy small {
  color: #52736a;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-type-badge {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.25;
  padding: 3px 8px;
  width: fit-content;
}

.entity-type-badge--user-internal {
  background: #e2f6f0;
  border-color: #b8e3d8;
  color: #1b6f60;
}

.entity-type-badge--user-external {
  background: #eaf1fb;
  border-color: #cddcf1;
  color: #355989;
}

.entity-type-badge--contact,
.entity-type-badge--contact-linked {
  background: #fff7d1;
  border-color: #ead88c;
  color: #795f00;
}

.entity-type-badge--organization {
  background: #f3efff;
  border-color: #dcd2fa;
  color: #4e42a0;
}

.entity-type-badge--project {
  background: #f0f5f4;
  border-color: #d1e8e2;
  color: #2e4a42;
}

.entity-type-badge--loi {
  background: #ffefec;
  border-color: #efc8bf;
  color: #73291a;
}

.entity-picker-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  position: relative;
}

.entity-picker-label {
  color: #5c7167;
  font-size: 13px;
  font-weight: 700;
}

.entity-picker-native-select {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.entity-picker-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid #b8d9d1;
  border-radius: 10px;
  color: #373737;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.entity-picker-trigger:hover {
  border-color: #52736a;
}

.entity-picker-trigger:focus-visible,
.entity-picker-search:focus-visible,
.entity-picker-option:focus-visible,
.entity-picker-action:focus-visible,
.account-menu > summary:focus-visible {
  outline: 3px solid rgba(76, 239, 208, 0.45);
  outline-offset: 2px;
}

.entity-picker-trigger[aria-expanded="true"] {
  border-color: #29806f;
  box-shadow: 0 0 0 3px rgba(76, 239, 208, 0.18);
}

.entity-picker-value {
  display: grid;
  flex: 1;
  gap: 4px;
  min-width: 0;
}

.entity-picker-placeholder {
  color: #7f938d;
  font-weight: 400;
}

.entity-picker-selection {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.entity-picker-selection strong {
  color: #1a1a1a;
  font-size: 12.5px;
}

.entity-picker-selection small {
  color: #52736a;
  font-size: 11px;
}

.entity-picker-caret {
  color: #52736a;
  font-size: 11px;
}

.entity-picker-popover {
  background: #fff;
  border: 1px solid #b8d9d1;
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(18, 26, 24, 0.2);
  display: grid;
  left: 0;
  max-height: min(430px, 62vh);
  min-width: min(420px, calc(100vw - 36px));
  overflow: hidden;
  position: absolute;
  top: calc(100% + 6px);
  width: 100%;
  z-index: 80;
}

.entity-picker-popover[hidden] {
  display: none;
}

.entity-picker-search-wrap {
  align-items: center;
  border-bottom: 1px solid #eaf1ee;
  display: flex;
  gap: 8px;
  padding: 10px;
}

.entity-picker-search-wrap img {
  height: 15px;
  opacity: 0.5;
  width: 15px;
}

.entity-picker-search {
  border: 0;
  min-height: 34px;
  outline: 0;
  padding: 5px;
}

.entity-picker-results {
  display: grid;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px;
}

.entity-picker-group-label {
  color: #7f938d;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 9px 8px 5px;
  text-transform: uppercase;
}

.entity-picker-option {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 9px;
  color: #373737;
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.entity-picker-group[hidden],
.entity-picker-option[hidden],
.entity-picker-empty[hidden] {
  display: none;
}

.entity-picker-option:hover,
.entity-picker-option[aria-selected="true"],
.entity-picker-option.is-active {
  background: #f0f8f5;
}

.entity-picker-option[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.entity-picker-option-main {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.entity-picker-option-main strong {
  color: #1a1a1a;
  font-size: 12.5px;
}

.entity-picker-option-meta {
  color: #52736a;
  font-size: 11px;
  line-height: 1.4;
}

.entity-picker-empty {
  color: #52736a;
  display: grid;
  gap: 5px;
  padding: 18px 12px;
  text-align: center;
}

.entity-picker-actions {
  border-top: 1px solid #eaf1ee;
  display: grid;
  padding: 6px;
}

.entity-picker-action {
  background: #fff;
  border: 0;
  border-radius: 8px;
  color: #1b6f60;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 10px;
  text-align: left;
}

.entity-picker-action.aeco-search-create__offer {
  border-radius: 8px;
  border-top: 0;
  padding: 9px 10px;
}

.entity-picker-action:hover {
  background: #f0f8f5;
}

.entity-picker-help,
.entity-picker-clear {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--content-600, #6B6B6B);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  margin-top: 4px;
  padding: 0;
  text-decoration: underline;
}
.entity-picker-clear:hover {
  color: var(--content-900, #1A1A1A);
}

.entity-picker-provenance {
  color: #7f938d;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
}

.entity-picker-provenance {
  color: #795f00;
}

.entity-picker-token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.entity-picker-token {
  align-items: center;
  background: #f0f5f4;
  border-radius: 8px;
  display: inline-flex;
  gap: 5px;
  padding: 4px 7px;
}

.duplicate-review {
  background: #fffbea;
  border: 1px solid #ead88c;
  border-radius: 11px;
  color: #5f4d0d;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.duplicate-review[hidden] {
  display: none;
}

.duplicate-review-list {
  display: grid;
  gap: 6px;
}

.duplicate-review-candidate {
  align-items: center;
  background: #fff;
  border: 1px solid #eadfbb;
  border-radius: 9px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 9px 10px;
}

@media (max-width: 820px) {
  .nav-group-label {
    grid-column: 1 / -1;
  }

  .account-popover {
    left: auto;
    right: 0;
    top: calc(100% + 8px);
  }
}

@media (max-width: 640px) {
  .account-menu--topbar {
    margin-left: auto;
  }

  .account-trigger {
    max-width: min(280px, calc(100vw - 78px));
  }

  .entity-picker-popover {
    min-width: 100%;
    position: fixed;
    inset: auto 12px 12px;
    max-height: 70vh;
    width: auto;
  }

  .account-detail-section-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hidden-authority-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hidden-authority-row.header {
    display: none;
  }

  .hidden-authority-row > *::before {
    color: #718A82;
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 3px;
    text-transform: uppercase;
  }

  .hidden-authority-row > *:nth-child(1)::before { content: "Account"; }
  .hidden-authority-row > *:nth-child(2)::before { content: "Power held"; }
  .hidden-authority-row > *:nth-child(3)::before { content: "What it lets them do today"; }
  .hidden-authority-row > *:nth-child(4)::before { content: "Granted"; }
  .hidden-authority-row > *:nth-child(5)::before { content: "Remediation"; }
}

.account-section-index {
  background: #f7faf9;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 9;
}

.admin-detail-grid {
  grid-template-columns: minmax(0, 1fr);
}

.account-detail-section {
  scroll-margin-top: 72px;
}

.account-detail-section > h2 {
  font-family: DenimINKWD, serif;
  font-size: 22px;
  font-weight: 500;
  margin: 8px 0 10px;
}

.account-detail-section-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-detail-section-grid .wide-card,
.account-detail-section-grid > .notice {
  grid-column: 1 / -1;
}

.hidden-authority-row {
  align-items: start;
  grid-template-columns: minmax(150px, 1fr) minmax(130px, .8fr) minmax(210px, 1.4fr) minmax(150px, .9fr) minmax(125px, .7fr);
}

.hidden-authority-empty-powers {
  display: grid;
  gap: 5px;
  margin: 14px 0;
}


@media (max-width: 390px) {
  .aeco-overflow-menu {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: 100dvh;
    inset: 0;
    max-height: none;
    min-width: 0;
    padding: 0 12px calc(18px + env(safe-area-inset-bottom));
    position: fixed;
    width: 100vw;
    z-index: 120;
  }

  .aeco-overflow-sheet-header {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--bg-200);
    display: flex;
    justify-content: space-between;
    margin: 0 -12px 8px;
    min-height: 62px;
    padding: env(safe-area-inset-top) 16px 0;
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .aeco-overflow-sheet-header strong {
    color: var(--bg-800);
    font-family: var(--aeco-display-font);
    font-size: 19px;
    font-weight: 500;
  }

  .aeco-overflow-sheet-header button {
    align-items: center;
    background: var(--bg-100);
    border: 1px solid var(--bg-200);
    border-radius: 9px;
    color: var(--bg-800);
    cursor: pointer;
    display: inline-flex;
    font: 700 22px/1 var(--aeco-body-font);
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
  }

  .aeco-overflow-group__label {
    padding-top: 10px;
  }

  .aeco-overflow-item {
    min-height: 44px;
    padding: 11px 10px;
  }

  .aeco-overflow-trigger {
    min-height: 44px;
  }

  .aeco-overflow-trigger__reason {
    justify-content: flex-start;
    text-align: left;
  }

  .aeco-filter-toolbar {
    align-items: stretch;
    padding: 10px;
  }

  .aeco-filter-search {
    flex-basis: 100%;
    max-width: none;
  }

  .aeco-filter-chip {
    min-height: 44px;
  }

  .aeco-action--row {
    min-height: 44px;
  }

  .aeco-list-row {
    align-items: stretch;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  .aeco-list-row__evidence {
    grid-row: 2;
  }

  .aeco-list-row__meta {
    grid-row: 4;
  }

  .aeco-list-row__action {
    grid-row: 3;
    justify-self: stretch;
  }

  .aeco-list-row__action .aeco-action,
  .aeco-empty--first-run .aeco-action {
    margin-left: 0;
    min-height: 44px;
    width: 100%;
  }

  .aeco-empty {
    align-items: stretch;
    flex-direction: column;
  }

  .aeco-error--field,
  .aeco-error--recoverable {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr);
  }

  .aeco-error__actions,
  .aeco-dialog__footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .aeco-error__actions .aeco-action,
  .aeco-dialog__footer .aeco-action {
    min-height: 44px;
    width: 100%;
  }

  .aeco-dialog-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .aeco-dialog,
  .aeco-dialog--confirm-destructive,
  .aeco-dialog--pick-entity,
  .aeco-dialog--form,
  .aeco-dialog--review-proposal {
    border: 0;
    border-radius: 0;
    height: 100dvh;
    max-height: none;
    overflow: auto;
    padding: calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
    width: 100vw;
  }

  [data-edit-user-access-dialog],
  #projectVisibilityForm,
  [data-account-access-stale] {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    width: 100%;
  }

  [data-edit-user-access-dialog] .admin-list-item,
  [data-edit-user-access-dialog] .modal-actions,
  [data-account-access-stale] .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  [data-edit-user-access-dialog] .admin-list-item > *,
  [data-edit-user-access-dialog] .btn,
  [data-account-access-stale] .btn,
  #projectVisibilityForm .btn {
    min-width: 0;
    width: 100%;
  }

  [aria-label="Additional authority role effect"] .account-access-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
