.main,
.contacts-content,
.contacts-rail,
.panel,
.grid2 > div {
  min-width: 0;
}
.wf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.wf-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.wf-muted {
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.5;
}
.wf-heading {
  margin-bottom: 16px;
}
.wf-heading h2 {
  margin: 0 0 3px;
}
.wf-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.wf-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.wf-item:last-child {
  border-bottom: 0;
}
.wf-copy {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.wf-copy p {
  margin: 0 0 4px;
}
.wf-copy strong {
  font-size: 13px;
}
.wf-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  text-align: left;
  white-space: normal;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.wf-link:hover {
  color: var(--accent);
}
.wf-status {
  display: inline-block;
  font-size: 11px;
  line-height: 1.6;
  padding: 2px 7px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-2);
}
.wf-done {
  color: #a4d9b9;
  background: #244034;
}
.wf-late {
  color: #f3c394;
  background: #453124;
}
.wf-pager {
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-2);
}
.wf-page-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}
.wf-page-position {
  padding: 0 6px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.wf-pager button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent-text);
}
.wf-pager button:hover:not(:disabled) {
  background: var(--accent-bg);
}
.wf-pager button:disabled {
  color: var(--text-muted);
  opacity: 0.4;
}
.wf-empty {
  padding: 22px 8px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.wf-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}
.wf-filters label {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 5px;
}
.wf-filters input,
.wf-filters select {
  width: 100%;
  min-width: 0;
}
.wf-filter-actions {
  margin-top: 12px;
}
.wf-saved {
  margin: 14px 0;
}
.wf-saved select {
  max-width: 260px;
  min-width: 180px;
}
.wf-table {
  overflow: auto;
}
.wf-table table {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
}
.wf-table th:first-child {
  width: 28%;
}
.wf-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}
.wf-table .tag {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.wf-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.wf-stat {
  padding: 12px;
  background: var(--surface-2);
  border-radius: 8px;
}
.wf-stat strong {
  display: block;
  font-size: 22px;
  margin-bottom: 3px;
}
.wf-notice {
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.wf-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.wf-map select {
  width: 100%;
  min-width: 0;
}
.wf-map label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}
.wf-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.wf-summary > span {
  padding: 12px;
  background: var(--surface-2);
  border-radius: 8px;
}
.wf-loading {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 18px;
  background: var(--surface);
  font-size: 13px;
  box-shadow: 0 3px 16px #0003;
}
.wf-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.wf-history-note {
  font-size: 12px;
  color: var(--text-2);
}
.modal input[type="date"] {
  width: 100%;
}
.modal .field select {
  width: 100%;
}
@media (max-width: 1050px) {
  .wf-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .wf-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .wf-item {
    flex-wrap: wrap;
  }
  .wf-item > .wf-actions {
    width: 100%;
    padding-left: 0;
  }
  .wf-filters,
  .wf-map {
    grid-template-columns: 1fr;
  }
  .wf-table table {
    min-width: 650px;
  }
  .wf-actions button {
    white-space: normal;
  }
  .wf-saved select {
    max-width: 100%;
  }
}
.wf-actions input[type="checkbox"] {
  width: auto;
  margin: 0 5px 0 0;
  accent-color: var(--accent);
}
.wf-actions select,
.wf-row > select {
  width: auto;
  max-width: 100%;
}
.account-switch {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-width: 0;
  margin: 0 0 14px;
  padding: 10px;
  text-align: left;
  background: var(--accent-bg);
  border-color: transparent;
  color: var(--accent-text);
  flex-shrink: 0;
}
.account-switch span:last-child {
  font-size: 11px;
}
.account-switch-name {
  font-weight: 600;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .sidebar .account-switch {
    order: 4;
    width: 100%;
    margin: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .sidebar .account-switch-name {
    width: auto;
    min-width: 0;
    flex: 1;
  }
  .sidebar .account-switch span:last-child {
    flex-shrink: 0;
  }
  .app {
    flex-direction: column;
    padding-left: 0;
  }
  .sidebar {
    position: sticky;
    inset: 0 auto auto;
    top: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .sidebar .brand {
    padding: 0 10px 0 0;
  }
  .sidebar #nav-items {
    order: 3;
    width: 100%;
    flex-direction: row;
    gap: 6px;
  }
  .sidebar .nav-item {
    flex: 1;
    justify-content: center;
    margin: 0;
    padding: 9px;
    min-height: 38px;
  }
  .sidebar .user-menu-wrap {
    margin: 0 0 0 auto;
    padding-top: 0;
    max-width: calc(100% - 70px);
  }
  .sidebar .user-trigger {
    max-width: 180px;
  }
  .sidebar .user-popover {
    top: calc(100% + 8px);
    bottom: auto;
    left: auto;
    right: 0;
  }
  .main {
    padding: 20px 14px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .row {
    flex-wrap: wrap;
  }
  .date-selects > * {
    min-width: 0;
  }
  .toast-stack {
    top: auto;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

[hidden] {
  display: none !important;
}
.auth-password-hint {
  font-size: 12px;
  line-height: 1.5;
  margin: 6px 0 16px;
  color: var(--text-2);
}
.auth-field-error {
  color: var(--danger-text, #f1aaa3);
  font-size: 12px;
  line-height: 1.5;
}
.email-gate {
  width: min(440px, 100%);
  box-sizing: border-box;
  margin: 24px 16px;
  overflow-wrap: anywhere;
}
.email-gate h1 {
  font-size: 24px;
  margin: 12px 0;
}
.email-gate-brand {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 26px;
}
.email-gate-brand span,
.email-gate-icon {
  color: var(--accent);
}
.email-gate label {
  display: block;
  font-size: 13px;
  margin: 18px 0 8px;
}
.email-gate input,
.email-gate button {
  width: 100%;
  box-sizing: border-box;
}
.email-gate .ghost {
  margin-top: 8px;
}
.email-gate .settings-note {
  line-height: 1.6;
  margin-top: 20px;
}
.login-card {
  box-sizing: border-box;
  max-width: calc(100vw - 24px);
  width: 420px;
}
.login-wrap {
  padding: 16px 0;
}
input[aria-invalid="true"] {
  border-color: var(--danger-text, #f1aaa3);
}
.wf-import-panel {
  max-width: 940px;
  margin: 0 auto;
}
.wf-import-view {
  max-width: 1250px;
  margin: 0 auto;
}
.wf-import-heading {
  margin: 20px 0 24px;
}
.wf-import-heading h1 {
  margin-bottom: 6px;
}
.wf-import-heading .sub {
  margin: 0;
}
.wf-source {
  margin-bottom: 18px;
}
.wf-source .wf-copy > strong {
  font-size: 14px;
}
.wf-source .wf-copy p {
  margin: 6px 0 0;
}
.wf-source > .wf-import-help {
  margin-top: 18px;
  padding-bottom: 0;
}
.wf-detected {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.wf-detected > span {
  font-size: 11px;
  color: var(--text-2);
  border-left: 2px solid var(--accent);
  padding: 3px 12px;
  overflow-wrap: anywhere;
}
.wf-detected strong {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-top: 4px;
}
.wf-detected > .wf-needs-match {
  border-color: #dba170;
}
.wf-ignored {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 18px;
  line-height: 1.6;
}
.wf-ignored summary {
  cursor: pointer;
}
.wf-review-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.wf-review-counts > div {
  background: var(--surface-2);
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.wf-review-counts strong {
  display: block;
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 4px;
}
.wf-review-counts span {
  font-size: 12px;
  color: var(--text-2);
}
.wf-review-filter {
  justify-content: flex-start;
  margin-bottom: 14px;
  font-size: 12px;
}
.wf-block {
  display: block;
  margin-top: 5px;
}
.wf-table .wf-import-table th:first-child {
  width: 25%;
}
.wf-table .wf-import-table th:last-child {
  width: 24%;
}
.wf-confirm-import {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 18px;
}
.wf-confirm-import > p {
  flex: 1;
  max-width: 640px;
}
.wf-confirm-import > button {
  min-width: 180px;
}
@media (max-width: 650px) {
  .wf-detected,
  .wf-review-counts {
    grid-template-columns: 1fr;
  }
  .wf-review-counts > div {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
  }
  .wf-review-counts strong {
    margin: 0;
    min-width: 36px;
  }
  .wf-confirm-import {
    align-items: stretch;
  }
  .wf-confirm-import > button {
    width: 100%;
  }
  .wf-source .wf-row > button {
    width: 100%;
  }
}
.wf-upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 32px 20px;
  border: 1px dashed #628972;
  border-radius: 12px;
  background: #6cae8510;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.wf-upload-zone.is-dragging {
  background: #6cae852a;
  border-color: var(--accent);
}
.wf-upload-icon {
  color: var(--accent);
  margin-bottom: 2px;
}
.wf-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
}
.wf-file-button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #0d140f;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  margin: 4px 0;
}
.wf-file-input:focus-visible + .wf-file-button {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}
.wf-file-input:disabled + .wf-file-button {
  opacity: 0.5;
  cursor: wait;
}
.wf-selected-file {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}
.wf-selected-file strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.wf-import-actions {
  margin: 20px 0;
}
.wf-import-actions a {
  font-size: 13px;
}
.wf-import-help {
  border-top: 1px solid var(--border);
  padding: 14px 0;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.6;
}
.wf-import-help summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}
.wf-base-overview .panel {
  margin-top: 0;
}
.wf-dashboard-grid .wf-item {
  align-items: flex-start;
}
@media (max-width: 650px) {
  .wf-upload-zone {
    padding: 24px 14px;
  }
  .wf-selected-file {
    flex-wrap: wrap;
  }
  .wf-import-actions {
    align-items: stretch;
  }
  .wf-import-actions button {
    margin-left: auto;
  }
}

.nexo-date {
  position: relative;
}
.nexo-date-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
}
.nexo-date-control:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #77aa881c;
}
.nexo-date-control input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none !important;
}
.nexo-date-trigger {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 9px 12px;
  display: flex;
  align-items: center;
}
.nexo-date-error {
  color: #f1aaa3;
  font-size: 12px;
  margin: 7px 0 0;
}
.nexo-calendar {
  color-scheme: dark;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 14px;
  margin-top: 10px;
  box-shadow: 0 8px 24px #0002;
}
.nexo-calendar-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.nexo-calendar-nav > button {
  font-size: 23px;
  line-height: 26px;
  width: 34px;
  padding: 2px;
  background: transparent;
}
.nexo-calendar-period {
  display: flex;
  gap: 6px;
  min-width: 0;
  align-items: center;
}
.nexo-calendar-period select {
  padding: 8px;
  max-width: 146px !important;
  font-weight: 600;
}
.nexo-calendar-period input {
  width: 80px !important;
  padding: 8px;
}
.nexo-calendar-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.nexo-calendar-week,
.nexo-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.nexo-calendar-week {
  margin: 16px 0 7px;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
}
.nexo-calendar-day {
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  text-align: center;
}
.nexo-calendar-day.outside-month {
  opacity: 0.4;
}
.nexo-calendar-day.is-today {
  border-color: var(--accent);
}
.nexo-calendar-day.selected {
  background: var(--accent);
  color: #102318;
  font-weight: 700;
  opacity: 1;
}
.nexo-calendar-day:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 1px;
}
.nexo-calendar-footer {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.nexo-calendar-footer button {
  background: transparent;
  border: 0;
  padding: 6px 10px;
  font-size: 12px;
}
.nexo-calendar-footer [data-today] {
  color: var(--accent);
  font-weight: 600;
}
.nexo-calendar-footer [data-close] {
  margin-left: auto;
}
.event-modal {
  width: 460px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  box-sizing: border-box;
}
.event-modal .modal-actions {
  margin-top: 20px;
}
.event-modal .settings-note {
  margin-top: 8px;
}
.event-saved {
  margin: 12px 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border: 1px solid #4b755b;
  background: #75a5830c;
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 13px;
}
.event-saved span {
  line-height: 1.5;
}
.wf-agenda-period {
  margin: 12px 0 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.wf-agenda-period label {
  font-size: 12px;
  color: var(--text-2);
}
.wf-agenda-period select {
  width: auto;
  max-width: 100%;
  font-size: 12px;
}
.wf-agenda-period input {
  width: 82px;
  font-size: 12px;
}
.wf-event-type {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.3px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 5px;
  background: #76ac8a20;
  color: #aad3b7;
  margin-bottom: 5px;
}
.wf-event-type.birthday {
  background: #c6a06318;
  color: #dfc18c;
}
.wf-event-focus {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
  border-radius: 5px;
}
.wf-saved > [data-trash] {
  margin-left: auto;
}
.wf-contact-email {
  color: var(--text-2);
  font-size: 12px;
  overflow-wrap: anywhere;
}
@media (max-width: 550px) {
  .event-modal {
    padding: 20px;
  }
  .event-saved {
    align-items: flex-start;
    flex-direction: column;
  }
  .nexo-calendar {
    padding: 10px;
  }
  .nexo-calendar-days {
    gap: 2px;
  }
  .nexo-calendar-day {
    height: 34px;
  }
  .wf-agenda-period {
    align-items: flex-start;
  }
  .wf-agenda-period label {
    align-self: center;
  }
}

.main {
  width: 100%;
  max-width: 1760px;
  margin-inline: auto;
  padding: clamp(18px, 2.4vw, 40px);
  box-sizing: border-box;
}
.wf-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.wf-dashboard-grid > div {
  min-width: 0;
  display: flex;
}
.wf-dashboard-panel {
  width: 100%;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}
.wf-dashboard-panel > [data-list] {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 350px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding-right: 6px;
  overscroll-behavior: contain;
}
.wf-dashboard-panel > .wf-heading,
.wf-dashboard-panel > .wf-agenda-period,
.wf-dashboard-panel > .agenda-filters,
.wf-dashboard-panel > .wf-pager {
  flex-shrink: 0;
}
.wf-dashboard-panel > .wf-pager {
  margin-top: auto;
  padding-top: 14px;
}
.wf-dashboard-panel .wf-item {
  align-items: flex-start;
  flex-wrap: wrap;
}
.wf-dashboard-panel .wf-item > .wf-actions {
  flex-basis: 100%;
  padding-left: 44px;
}
.wf-dashboard-panel .wf-item > .wf-copy {
  min-width: 130px;
}
.wf-dashboard-panel .wf-empty {
  display: grid;
  align-content: center;
  min-height: 56px;
}
.wf-dashboard-panel > .wf-muted {
  font-size: 11px;
  margin: 10px 0;
}
.wf-dashboard-panel .wf-heading select {
  max-width: 100%;
}
.wf-base-overview {
  margin-top: 18px;
}
.team-member-info {
  min-width: 0;
  overflow-wrap: anywhere;
}
.team-member {
  flex-wrap: wrap;
}
.welcome-delivery {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 13px;
}
@media (max-width: 1140px) {
  .wf-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .wf-dashboard-panel {
    height: auto;
    min-height: 0;
  }
  .wf-dashboard-panel > [data-list] {
    flex: auto;
    max-height: 350px;
  }
  .wf-dashboard-panel > .wf-pager {
    margin-top: 12px;
  }
}
@media (max-width: 600px) {
  .wf-dashboard-panel {
    padding: 16px;
  }
  .wf-dashboard-panel .wf-item > .wf-actions {
    padding-left: 0;
    width: 100%;
  }
  .wf-dashboard-panel .wf-item > .wf-actions > button {
    flex: 1;
    white-space: normal;
    min-height: 38px;
  }
  .wf-pager > .wf-actions {
    width: 100%;
    justify-content: space-between;
  }
  .wf-heading {
    margin-bottom: 12px;
  }
  .wf-dashboard-grid {
    gap: 14px;
  }
  .main {
    padding: 16px;
  }
  .nexo-calendar-nav {
    gap: 4px;
  }
  .nexo-calendar-period {
    gap: 4px;
    flex: 1;
  }
  .nexo-calendar-period select {
    min-width: 0;
    max-width: 105px !important;
    flex: 1;
  }
  .nexo-calendar-period input {
    width: 62px !important;
  }
  .nexo-calendar-nav > button {
    flex-shrink: 0;
    width: 26px;
  }
  .team-member > div:last-child {
    flex-wrap: wrap;
  }
}

.role-picker {
  max-width: 780px;
}
.role-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.role-chip {
  background: var(--accent-bg);
  border-color: #477157;
  color: var(--accent-text);
  padding: 8px 12px;
  border-radius: 20px;
  text-align: left;
  overflow-wrap: anywhere;
  white-space: normal;
}
.role-options {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}
.role-options > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 13px;
}
.role-options > summary::-webkit-details-marker {
  display: none;
}
.role-options > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 10px;
}
.role-content {
  padding: 0 14px 12px;
}
.role-content > label {
  font-size: 12px;
  color: var(--text-2);
  display: block;
  margin-bottom: 6px;
}
.role-content > input {
  width: 100%;
}
.role-options-list {
  max-height: 280px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  margin-top: 12px;
}
.role-options-list fieldset {
  border: 0;
  margin: 0 0 18px;
  padding: 0 8px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.role-options-list legend {
  font-size: 11px;
  color: var(--text-2);
  font-weight: 600;
  padding: 4px 0 10px;
}
.role-options-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.role-options-list label:has(input:checked) {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent-text);
}
.role-options-list label:hover {
  border-color: #698471;
}
.role-options-list label:focus-within {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}
.role-options-list input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  padding: 0;
  border: 1.5px solid #7d8b81;
  border-radius: 6px;
  background: var(--surface-2);
  margin: 0;
  outline: 0;
}
.role-options-list input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.role-options-list input:checked::before {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  margin-top: -3px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.role-options-list span {
  min-width: 0;
}
.role-feedback {
  font-size: 12px;
  color: var(--danger-text);
  margin: 6px 0;
}
.role-feedback:empty {
  display: none;
}
.role-picker-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.role-picker-actions [data-custom] {
  color: var(--accent-text);
  padding-inline: 8px;
}
.role-picker-actions [data-done] {
  min-width: 100px;
}
@media (max-width: 600px) {
  .role-options-list fieldset {
    grid-template-columns: 1fr;
  }
  .role-content {
    padding-inline: 10px;
  }
  .role-options > summary {
    padding: 12px 10px;
  }
}

* {
  scrollbar-width: thin;
  scrollbar-color: #58675b transparent;
}
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #58675b;
  border-radius: 20px;
  border: 1px solid var(--surface);
}
::-webkit-scrollbar-thumb:hover {
  background: #82a48c;
}
::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}
.wf-dashboard-panel > [data-list]:focus-visible {
  outline-offset: 2px;
  border-radius: 6px;
}
@media (max-width: 600px) {
  .wf-pager {
    gap: 8px;
  }
  .wf-page-controls {
    margin-left: auto;
  }
  .wf-pager button {
    width: 40px;
    height: 40px;
  }
}
@media (forced-colors: active) {
  * {
    scrollbar-color: auto;
  }
  .role-options-list input {
    appearance: auto;
  }
  .role-options-list input:checked::before {
    content: none;
  }
  .role-options-list label:has(input:checked) {
    border-color: Highlight;
  }
}

.nexo-account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.nexo-account-grid > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.nexo-account-grid strong {
  font-size: 19px;
  overflow-wrap: anywhere;
}
.nexo-privacy-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}
.nexo-privacy-tools a {
  color: var(--accent-text);
  font-size: 13px;
}
.nexo-privacy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nexo-privacy-card .sub {
  margin-bottom: 0;
}
.nexo-privacy-modal {
  max-width: 650px;
  width: 100%;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}
.nexo-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0;
}
.nexo-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.nexo-check a {
  color: var(--accent-text);
}
.nexo-access-notice {
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  background: var(--bg-input);
  font-size: 14px;
}
.nexo-privacy-tools .active {
  border-color: var(--accent);
  color: var(--accent-text);
}
@media (max-width: 600px) {
  .nexo-account-grid {
    grid-template-columns: 1fr;
  }
  .nexo-privacy-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .nexo-privacy-modal {
    max-height: calc(100dvh - 24px);
  }
  .nexo-privacy-tools button {
    min-height: 40px;
  }
  .nexo-privacy-modal .grid2 {
    grid-template-columns: 1fr;
  }
}

.nexo-privacy-modal {
  max-width: min(650px, calc(100vw - 32px));
}
#p-save {
  margin-bottom: 24px;
}
