.event-browser {
  --em-ink: #152e40;
  --em-muted: #4f6779;
  --em-line: #dce5eb;
  --em-soft: #e5f4f0;
  --em-teal: #076f68;
  color: var(--em-ink);
}
.event-browser .page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 8px 0 22px;
}
.event-browser .page-heading h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.18;
  letter-spacing: -1px;
  font-weight: 500;
}
.event-browser .em-new {
  background: var(--em-teal);
  border-color: transparent;
  color: #fff;
  border-radius: 9px;
  min-height: 44px;
  font-weight: 500;
}
.event-browser .em-new:hover { background: #06645e; }
.event-browser .em-new svg { width: 18px; height: 18px; }
.event-browser-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 180px) minmax(160px, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.event-browser .segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  background: #e9eff2;
  padding: 4px;
  border-radius: 10px;
}
.event-browser .segmented button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--em-muted);
  font-size: 13px;
  font-weight: 500;
}
.event-browser .segmented button.selected {
  background: #fff;
  color: var(--em-teal);
  box-shadow: 0 1px 4px #12354512;
}
.event-browser .segmented .event-scope-disabled { display: flex; min-width: 0; }
.event-browser .segmented .event-scope-disabled button { flex: 1; }
.event-browser .segmented .event-scope-disabled button:disabled { pointer-events: none; }
.event-browser .segmented button:disabled,
.event-browser .segmented button:disabled:hover { opacity: 0.45; cursor: not-allowed; background: none; color: var(--em-muted); box-shadow: none; }
.event-browser .segmented button svg { width: 18px; height: 18px; }
.event-browser-filters > select,
.event-browser .search {
  width: 100%;
  min-width: 0;
  max-width: none;
}
.event-browser-filters > select {
  min-height: 44px;
  padding: 9px 36px 9px 12px;
  border: 1px solid #637a89;
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6779' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  color: var(--em-ink);
  font-size: 13px;
  appearance: none;
}
.event-browser .search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #637a89;
  border-radius: 8px;
  background: #fff;
  color: var(--em-muted);
}
.event-browser .search svg { width: 16px; height: 16px; }
.event-browser .search input {
  border: 0;
  min-width: 0;
  width: 100%;
  min-height: 0;
  padding: 9px 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  color: var(--em-ink);
}
.event-browser .search:focus-within {
  border-color: var(--em-teal);
  box-shadow: 0 0 0 3px #087c7433;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.event-card {
  background: #fff;
  border: 1px solid var(--em-line);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  color: var(--em-ink);
}
.event-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.date-block {
  flex-shrink: 0;
  width: 55px;
  min-height: 61px;
  border-radius: 11px;
  background: var(--em-soft);
  color: var(--em-teal);
  text-align: center;
  padding: 6px;
}
.date-block small {
  text-transform: uppercase;
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
}
.date-block strong {
  display: block;
  font-size: 25px;
  line-height: 1.1;
  margin-top: 2px;
}
.event-card-title { flex: 1; min-width: 0; }
.event-card h2 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.event-card h2 a { color: var(--em-ink); text-decoration: none; }
.event-card h2 a:hover { color: var(--em-teal); }
.event-card-statuses { display: flex; flex-wrap: wrap; gap: 6px; }
.event-browser .badge {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  padding: 4px 9px;
  background: #edf2f5;
  color: #526779;
  border-radius: 6px;
  letter-spacing: 0.1px;
}
.event-browser .badge.green { background: #e4f3ed; color: #116b4b; }
.event-browser .badge.amber { background: #fff1d6; color: #7c5002; }
.event-browser .badge.red { background: #ffebea; color: #a62e2e; }
.event-browser .badge.gray { background: #eef1f4; color: #526779; }
.event-place {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  color: var(--em-muted);
  margin: 4px 0 10px;
}
.event-place svg { width: 16px; height: 16px; margin-top: 1px; flex-shrink: 0; }
.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--em-muted);
  margin-bottom: 12px;
}
.event-card-meta span { display: flex; align-items: center; gap: 8px; }
.event-card-meta svg { width: 16px; height: 16px; }
.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--em-muted);
  margin-top: auto;
  margin-bottom: 7px;
}
.event-card .progress {
  height: 5px;
  background: #e9eff2;
  border-radius: 4px;
  overflow: hidden;
}
.event-card .progress i {
  display: block;
  height: 100%;
  background: #238f80;
}
.event-card footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--em-line);
}
.event-card footer form { margin: 0; }
.event-card .when {
  font-size: 12px;
  color: var(--em-muted);
}
.event-card .em-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 7px 11px;
  min-height: 36px;
  border-radius: 9px;
  color: var(--em-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.event-card .em-open:hover { background: #eaf2f4; color: var(--em-teal); }
.event-card .em-open svg { width: 16px; height: 16px; }
.event-card .em-remove {
  min-height: 36px;
  padding: 7px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #af3535;
  font-size: 13px;
  font-weight: 500;
}
.event-card .em-remove:hover { background: #fff0ef; }
.event-browser .event-empty { margin-top: 16px; }
.event-browser .empty {
  padding: 44px 20px 16px;
  text-align: center;
  color: var(--em-muted);
}
.event-browser .empty h3 { margin: 0 0 8px; color: var(--em-ink); }
.event-browser .empty p { margin: 0 auto; max-width: 480px; font-size: 13px; }
.event-browser .empty-action { display: flex; justify-content: center; padding-bottom: 20px; }
.event-browser .em-view-all {
  min-height: 42px;
  padding: 11px 16px;
  border: 1px solid #637a89;
  border-radius: 9px;
  background: #fff;
  color: var(--em-ink);
  font-weight: 500;
}
.event-browser .em-view-all:hover { background: #eef5f5; }
@media (max-width: 1100px) {
  .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .event-browser-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }
  .event-browser-filters .event-scope { grid-column: 1 / -1; }
  .event-browser .page-heading { align-items: stretch; flex-direction: column; gap: 14px; }
  .event-browser .page-heading > .em-new {
    width: 100%;
    justify-content: center;
  }
  .events-grid { grid-template-columns: 1fr; gap: 16px; }
  .event-card { padding: 16px; }
  .event-card h2 { font-size: 18px; }
  .event-place, .event-card-meta { font-size: 13px; }
}

.event-page { color: #152e40; }
.event-overview > .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  margin-bottom: 4px;
  color: #4f6779;
  font-size: 12px;
  text-decoration: none;
}
.event-overview > .back-link svg { width: 17px; height: 17px; }
.event-overview .event-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 6px;
}
.event-overview .event-heading h1 {
  margin: 0;
  min-width: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.4px;
}
.event-heading-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.event-heading-actions form { margin: 0; }
.event-activate { min-height: 36px; height: 36px; padding: 0 12px; gap: 6px; font-size: 14px; }
.event-activate svg { width: 14px; height: 14px; }
.event-help { position: relative; display: inline-flex; }
.event-help > button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #e9f2f3;
  color: #557181;
  cursor: pointer;
}
.event-help > button svg { width: 18px; height: 18px; }
.event-help > button:hover,
.event-help:focus-within > button { background: #dcefeb; color: #076f68; }
.event-help > p {
  display: none;
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  right: 0;
  width: min(320px, calc(100vw - 48px));
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #dce5eb;
  border-radius: 12px;
  background: #fff;
  color: #152e40;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 12px 30px #031b3224;
}
.event-help > p::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 0;
  width: 36px;
  height: 6px;
}
.event-help:hover > p,
.event-help:focus-within > p { display: block; }
.event-dialog .event-help:hover > p[popover],
.event-dialog .event-help:focus-within > p[popover] { display: none; }
.event-dialog .event-help > p[popover]:popover-open {
  display: block;
  position: fixed;
  z-index: 2;
  top: 0;
  right: auto;
  left: 0;
  margin: 0;
}
.event-dialog .event-help > p[popover]:popover-open::before { content: none; }
.event-location-link {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 500;
  text-align: inherit;
}
.event-location-link:hover { background: transparent; color: #076f68; text-decoration: underline; }
.event-heading-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 0;
}
.event-heading-meta .badge.green { background: #e4f3ed; color: #116b4b; }
.event-heading-meta .badge.amber { background: #ffedd5; color: #c2410c; }
.event-schedule { margin: 0; font-size: 13px; color: #4f6779; }
.event-status-note { margin: 0 0 8px; font-size: 13px; color: #4f6779; }
.event-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 12px; }
.event-facts > div { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; color: #2c5667; }
.event-facts svg { width: 19px; height: 19px; color: #618592; }
.event-actions { position: relative; }
.event-actions > summary,
.add-task > summary {
  display: inline-flex;
  align-items: center;
  list-style: none;
  cursor: pointer;
}
.event-actions > summary::-webkit-details-marker,
.add-task > summary::-webkit-details-marker,
.task-editor > summary::-webkit-details-marker { display: none; }
.event-actions > summary {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #557181;
}
.event-actions > summary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}
.event-actions > summary:hover,
.event-actions[open] > summary { background: #eaf2f4; color: #076f68; }
.event-action-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 2px;
  width: max-content;
  min-width: 210px;
  margin: 0;
  padding: 6px;
  border: 1px solid #dce5eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px #152e4024;
}
.event-action-menu form { margin: 0; }
.event-action-menu .menu-rule {
  height: 0;
  margin: 4px 8px;
  border: 0;
  border-top: 1px solid #e6edf1;
}
.event-action-menu .button,
.event-action-menu .button:hover,
.event-action-menu .button:focus-visible {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #152e40;
  box-shadow: none;
  font-weight: 500;
  text-align: left;
}
.event-action-menu .button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.event-action-menu .button:hover,
.event-action-menu .button:focus-visible {
  border-color: #076f68;
  background: #e7f4f1;
  color: #152e40;
}
.event-action-menu .button.danger,
.event-action-menu .button.danger:hover,
.event-action-menu .button.danger:focus-visible {
  color: #c23b3b;
  background: transparent;
  border-color: transparent;
}
.event-action-menu .button.danger:hover,
.event-action-menu .button.danger:focus-visible { background: #fbeeee; }
.event-tabs {
  display: flex;
  gap: 22px;
  margin: 0 0 16px;
  border-bottom: 1px solid #cedce3;
  overflow-x: auto;
}
.event-tabs button,
.event-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 2px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: none;
  color: #4f6779;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.event-tabs button:hover,
.event-tabs a:hover {
  background: none;
  color: #4f6779;
  text-decoration: none;
}
.event-tabs button svg,
.event-tabs a svg { width: 18px; height: 18px; }
.event-tabs button.selected,
.event-tabs a[aria-current="page"],
.event-tabs button.selected:hover,
.event-tabs a[aria-current="page"]:hover {
  color: #076f68;
  border-bottom-color: #076f68;
  background: none;
  text-decoration: none;
}
@media (max-width: 759px) {
  .event-toolbar:has(> .header-actions) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 10px;
  }
  .event-toolbar:has(> .header-actions) > div:first-child { grid-column: 1; grid-row: 1; margin-right: 0; }
  .event-toolbar:has(> .header-actions) > .header-actions { display: contents; }
  .event-toolbar:has(> .header-actions) > .header-actions > .task-groups { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; }
  .event-toolbar:has(> .header-actions) > .header-actions > .button { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; width: 100%; }
  .event-toolbar:has(> .header-actions) > .event-list-filters { grid-column: 1 / -1; grid-row: 3; }
  .event-toolbar:has(> .header-actions) > .board-filter-disclosure {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    min-width: 0;
  }
  .board-filters {
    grid-template-columns: minmax(0, 1fr);
  }
  .board-filters .field,
  .board-filters .compact-check,
  .board-filters select,
  .board-filters input[type="date"] { width: 100%; max-width: none; min-width: 0; }
  .event-dialog-footer,
  .event-dialog .form-footer { flex-wrap: nowrap; }
  .event-dialog-footer > .button,
  .event-dialog-footer > button,
  .event-dialog-footer > form,
  .event-dialog .form-footer > .button,
  .event-dialog .form-footer > button,
  .event-dialog .form-footer > form { flex: 1 1 0; width: auto; min-width: 0; }
  .event-dialog-footer > form,
  .event-dialog .form-footer > form { display: flex; margin: 0; }
  .event-dialog-footer > form > .button,
  .event-dialog-footer > form > button,
  .event-dialog .form-footer > form > .button,
  .event-dialog .form-footer > form > button { flex: 1 1 auto; width: 100%; min-width: 0; }
  .task-row:has([data-complete-task]),
  .task-row:has([data-claim-task]) {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 12px;
    row-gap: 10px;
  }
  .task-row:has([data-complete-task]) > .task-leading,
  .task-row:has([data-claim-task]) > .task-leading { order: 1; }
  .task-row:has([data-complete-task]) > .task-main,
  .task-row:has([data-claim-task]) > .task-main { order: 2; flex: 1 1 0; min-width: 0; }
  .task-row:has([data-complete-task]) > .task-actions,
  .task-row:has([data-claim-task]) > .task-actions { display: contents; }
  .task-row:has([data-complete-task]) .task-direct-group,
  .task-row:has([data-complete-task]) .task-row-menu,
  .task-row:has([data-complete-task]) .button.icon.ghost,
  .task-row:has([data-claim-task]) .task-direct-group,
  .task-row:has([data-claim-task]) .task-row-menu,
  .task-row:has([data-claim-task]) .button.icon.ghost { order: 3; }
  .task-row:has([data-complete-task]) [data-complete-task],
  .task-row:has([data-claim-task]) > .task-actions > form {
    order: 4;
    flex: 1 0 100%;
    width: 100%;
  }
  .task-row:has([data-complete-task]) [data-complete-task],
  .task-row:has([data-claim-task]) [data-claim-task] {
    width: 100%;
    justify-content: center;
  }
  .task-row:has([data-claim-task]) > .task-actions > form { display: flex; margin: 0; }
  .task-row:has(.task-row-menu[open]),
  .task-row-menu[open],
  .event-actions[open],
  .task-groups[open] { position: relative; z-index: 5; }
  .task-row-menu .event-action-menu {
    top: auto;
    bottom: calc(100% + 4px);
  }
  .my-tasks .work-panel:has(.task-row-menu[open]),
  .board-page .work-panel:has(.task-row-menu[open]),
  .board-page .work-panel:has(.task-groups[open]),
  .event-page .work-panel:has(.task-row-menu[open]),
  .event-page .work-panel:has(.task-groups[open]) { overflow: visible; }
  .my-tasks .task-meta > :first-child { flex: 1 0 100%; }
  .event-facts { align-items: center; row-gap: 0; }
  .event-facts > div:first-child { flex-basis: 100%; }
  .event-facts .event-location-link { appearance: none; -webkit-appearance: none; height: auto; min-height: 0; padding: 0; line-height: 1.2; }
  .event-co-role { display: none; }
  .event-tabs {
    gap: 8px;
    padding: 2px 0 6px;
    border-bottom: 0;
  }
  .event-tabs button,
  .event-tabs a {
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 72px;
    padding: 10px 4px;
    border: 2px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: #5d7383;
    font-size: 13px;
    font-weight: 600;
  }
  .event-tabs button svg,
  .event-tabs a svg { width: 22px; height: 22px; }
  .event-tabs button:hover,
  .event-tabs a:hover {
    background: transparent;
    color: #5d7383;
  }
  .event-tabs button.selected,
  .event-tabs a[aria-current="page"],
  .event-tabs button.selected:hover,
  .event-tabs a[aria-current="page"]:hover {
    background: #fff;
    color: #076f68;
    border-color: #0c7d68;
  }
  .event-team-panel .event-toolbar > .button-row {
    flex: 1 0 100%;
    width: 100%;
    justify-content: stretch;
  }
  .event-team-panel .event-toolbar > .button-row > .button,
  .event-team-panel .event-toolbar > .button-row > .invite-disabled {
    flex: 1 1 0;
    min-width: 0;
  }
  .event-team-panel .event-toolbar > .button-row > .invite-disabled { display: flex; }
  .event-team-panel .event-toolbar > .button-row > .invite-disabled > .button { flex: 1 1 auto; width: 100%; }
  .details-grid .section-heading { flex-wrap: wrap; align-items: stretch; }
  .details-grid .section-heading h2 { flex: 1 1 auto; }
  .details-grid .section-heading .button {
    flex: 1 0 100%;
    width: 100%;
  }
  .event-close-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .event-close-actions .button { width: 100%; }
  .event-contacts-details .event-contact-actions {
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    padding-top: 20px;
  }
  .event-contacts-details .arrangement-summary + .event-contact-actions { padding-top: 22px; }
  .event-contacts-details .event-contact-actions > .button,
  .event-contacts-details .event-contact-actions > form {
    flex: 1 1 0;
    min-width: 0;
  }
  .event-contacts-details .event-contact-actions > form { display: flex; }
  .event-contacts-details .event-contact-actions .button.secondary {
    width: 100%;
    justify-content: center;
  }
}
.event-page .work-panel { padding: 0; overflow: visible; }
.event-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid #dce5eb;
}
.event-toolbar h2 { margin: 0; font-size: 18px; font-weight: 400; }
.event-toolbar .small { margin: 2px 0 0; color: #4f6779; font-size: 13px; }
.event-toolbar > h2,
.event-toolbar > div:first-child { margin-right: auto; }
.event-toolbar > .search { width: min(320px, 100%); }
.event-toolbar > .button,
.event-toolbar > .header-actions { flex-shrink: 0; }
.event-toolbar > .header-actions { display: flex; align-items: center; gap: 8px; }
.event-toolbar > .button svg,
.event-toolbar > .header-actions > .button svg { width: 16px; height: 16px; }
.event-toolbar > .event-list-filters {
  flex: 1 0 100%;
  order: 10;
  padding: 0;
  border: 0;
}
.event-list-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(145px, 190px);
  align-items: center;
  gap: 10px;
}
@media (min-width: 1200px) {
  .event-toolbar { flex-wrap: nowrap; }
  .event-toolbar > .event-list-filters {
    flex: 0 1 auto;
    order: 1;
    grid-template-columns: minmax(220px, 320px) 160px;
  }
  .event-toolbar > .button,
  .event-toolbar > .button-row,
  .event-toolbar > .header-actions { order: 2; flex-shrink: 0; }
}
.event-page .search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: auto;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #637a89;
  border-radius: 8px;
  background: #fff;
}
.event-page .search svg { width: 16px; height: 16px; }
.event-page .search input { width: 100%; border: 0; background: transparent; min-height: 0; padding: 8px 0; box-shadow: none; }
.search input:focus,
.search input:focus-visible { outline: none; }
.search:focus-within { border-color: #076f68; box-shadow: 0 0 0 3px #087c7433; }
.event-page .event-list-filters select {
  width: 100%;
  min-width: 0;
  max-width: none;
}
.event-page .member-main + form { min-width: 150px; }
.event-page select {
  appearance: none;
  min-height: 44px;
  padding: 8px 36px 8px 12px;
  border: 1px solid #637a89;
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6779' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}
.record-group-heading {
  display: flex;
  align-items: center;
  background: #f3f7f8;
  border-bottom: 1px solid #dce5eb;
  padding: 3px 12px 3px 8px;
}
.record-group-heading > button {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #152e40;
  font-size: 15px;
  font-weight: 400;
  justify-content: flex-start;
}
.record-group-heading > button:hover,
.record-group-heading > button:focus-visible { background: transparent; color: #152e40; }
.record-group-heading > button svg { width: 16px; height: 16px; flex-shrink: 0; }
.record-group-heading > .button.icon { flex: 0 0 auto; }
.event-panel > .record-group + .record-group { border-top: 1px solid #e6edf1; }
.record-group .record-group {
  margin-left: 12px;
  border-left: 2px solid #d6e4e7;
}
.group-empty { margin: 0; padding: 12px 24px; color: #6d8494; }
.record-group.group-drop-target {
  outline: 1px dashed #08736f;
  outline-offset: -2px;
  background: #edf8f6;
}
.task-row[draggable="true"],
.grouped-record-row[draggable="true"] { cursor: grab; }
.task-row[draggable="true"]:active,
.task-row.dragging,
.grouped-record-row[draggable="true"]:active,
.grouped-record-row.dragging { cursor: grabbing; }
.task-row.dragging,
.grouped-record-row.dragging { opacity: 0.55; }
.task-row[draggable="true"] .task-actions,
.task-row[draggable="true"] .task-actions * { cursor: pointer; }
.task-row[draggable="true"] .move-group-trigger,
.grouped-record-row[draggable="true"] .decision-row,
.grouped-record-row[draggable="true"] .move-group-trigger { cursor: grab; }
.group-heading-actions { display: flex; align-items: center; gap: 2px; }
.group-heading-actions .button.icon.ghost,
.group-heading-actions .button.icon.ghost:hover,
.group-heading-actions .button.icon.ghost:focus-visible {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #557181;
  box-shadow: none;
}
.group-heading-actions .button.icon.ghost:hover,
.group-heading-actions .button.icon.ghost:focus-visible { background: #eaf2f4; color: #076f68; }
.group-heading-actions .button.icon.ghost svg { width: 18px; height: 18px; }
.move-item-title { margin: 0 0 16px; overflow-wrap: anywhere; font-weight: 600; }
.group-choices { max-height: 40vh; overflow: auto; }
.group-manager { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.group-manager .button { justify-content: flex-start; }
.task-menu-group { display: none; }
.move-group-trigger { cursor: grab; }
.move-group-trigger:active { cursor: grabbing; }
@media (max-width: 600px) {
  .task-direct-group { display: none; }
  .task-menu-group { display: flex; }
}
.record-group-heading .chevron-right { display: none; }
.record-group-heading button[aria-expanded="false"] .chevron-down { display: none; }
.record-group-heading button[aria-expanded="false"] .chevron-right { display: block; }
.count-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  color: #4d6878;
  background: #e8eef1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.task-groups,
.task-row-menu { position: relative; }
.task-groups > summary,
.task-row-menu > summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #557181;
  list-style: none;
  cursor: pointer;
}
.task-groups > summary::-webkit-details-marker,
.task-row-menu > summary::-webkit-details-marker { display: none; }
.task-groups > summary svg,
.task-row-menu > summary svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.task-groups > summary:hover,
.task-groups[open] > summary,
.task-row-menu > summary:hover,
.task-row-menu[open] > summary { background: #eaf2f4; color: #076f68; }
.task-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid #e6edf1;
  background: #fff;
}
.task-row.alt { background: #f2f8f6; }
.task-row:last-child { border-bottom: 0; }
.task-leading { width: 56px; display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.task-row.record-row .task-leading { width: 84px; }
.task-row.record-row .task-status-text { line-height: 1.25; }
.task-meta .vote-personal-state { margin-left: 0; }
.task-state {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eff4f6;
  color: #4b7283;
}
.task-state svg { width: 20px; height: 20px; }
.task-state.complete { background: #e4f2eb; color: #167352; }
.task-state.late { background: #fff3dc; color: #89611d; }
.task-status-text { font-size: 12px; color: #526877; text-align: center; }
.task-row.done .task-status-text { color: #167352; }
.task-main { min-width: 0; flex: 1; }
.task-title-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.task-row button.task-name,
.task-row button.task-name:hover,
.task-row button.task-name:focus-visible {
  display: inline;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--teal);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  justify-content: flex-start;
  cursor: pointer;
  text-decoration: none;
}
.task-row button.task-name:hover,
.task-row button.task-name:focus-visible { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 0.2em; }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 15px; margin-top: 7px; color: #4f6779; font-size: 12px; }
.task-meta span { display: inline-flex; align-items: center; gap: 5px; }
.task-meta svg { width: 13px; height: 13px; }
.task-meta .overdue { color: #9c3e2c; }
.task-meta .no-deadline { color: #9a4800; }
.task-note { margin: 6px 0 0; max-width: 600px; overflow: hidden; color: #4f6779; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.task-dialog-title { margin: 0; font-size: 18px; font-weight: 650; }
.task-update h3 { margin: 0; font-size: 18px; font-weight: 650; }
fieldset.purchase-inset { margin: 0; min-inline-size: 0; }
.record-attachments h3 { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; font-size: 16px; font-weight: 500; }
.record-attachments h3 svg { width: 17px; height: 17px; }
.record-attachments .attachment-row { justify-content: flex-start; margin-top: 0; padding: 8px 0; border-bottom: 1px solid #dce5eb; }
.record-attachments .attachment-row > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.record-attachments .attachment-row > span small,
.record-attachments .attachment-row > small { color: #4f6779; }
.record-attachments .button.icon.ghost,
.record-attachments .button.icon.ghost:hover,
.record-attachments .button.icon.ghost:focus-visible {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a02b2b;
  box-shadow: none;
}
.record-attachments .button.icon.ghost:hover,
.record-attachments .button.icon.ghost:focus-visible { background: #fbeeee; }
.record-attachments .button.icon.ghost svg { width: 18px; height: 18px; }
.file-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; overflow-wrap: anywhere; }
.file-link svg { width: 17px; height: 17px; }
.history-list { list-style: none; margin: 12px 0 0; padding: 0; }
.history-list li { margin: 12px 0; padding: 0 0 12px 12px; border-left: 2px solid #0b827d; overflow-wrap: anywhere; }
.history-list small { display: block; margin-top: 4px; color: #476474; font-size: 12px; }
.history-list p { margin: 6px 0 0; white-space: pre-wrap; }
.task-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.task-actions form { margin: 0; }
.task-actions .button.secondary.small {
  min-height: 36px;
  padding: 7px 11px;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.task-actions .button.secondary.small svg { width: 16px; height: 16px; }
.task-actions .button.icon.ghost,
.task-actions .button.icon.ghost:hover,
.task-actions .button.icon.ghost:focus-visible {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #557181;
  box-shadow: none;
}
.task-actions .button.icon.ghost:hover,
.task-actions .button.icon.ghost:focus-visible { background: #eaf2f4; color: #076f68; }
.task-actions .button.icon.ghost svg { width: 18px; height: 18px; }
.event-dialog > .event-dialog-sheet { display: flex; flex-direction: column; max-height: min(860px, calc(100dvh - 48px)); }
.task-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 44px 20px;
  text-align: center;
  color: #4f6779;
}
.task-empty svg { width: 28px; height: 28px; color: #8aa0ae; }
.task-empty h3 { margin: 0; color: #152e40; font-size: 18px; font-weight: 650; }
.task-empty p { margin: 0; max-width: 480px; font-size: 13px; }
.event-empty-note { margin: 0; padding: 28px 18px; text-align: center; color: #4f6779; }
.team-add { padding: 16px 18px 0; }
.team-group { padding: 8px 18px 16px; }
.team-group h3 { margin: 12px 0 0; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #4f6779; }
.member-row { display: flex; align-items: center; gap: 13px; padding: 17px 0; border-bottom: 1px solid #dce5eb; }
.event-page .avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e4eeef;
  color: #1b5260;
  font-weight: 500;
}
.member-main { flex: 1; min-width: 0; }
.member-main strong { display: block; font-size: 14px; }
.member-main small { display: block; color: #4f6779; font-size: 12px; }
.assignment-count { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12px; color: #076f68; }
.assignment-count svg { width: 15px; height: 15px; }
.assignment-count.no-open-work { color: #8aa0ab; }
.event-team-panel .button-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.event-team-panel .button-row .button svg { width: 16px; height: 16px; }
.event-team-panel .team-group { padding: 0 18px 8px; }
.event-team-panel .team-note { margin: 0; padding: 8px 0 12px; color: #4f6779; font-size: 13px; }
.event-team-panel .team-error { margin: 0; padding: 12px 18px 0; }
.event-team-panel .member-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
}
.event-team-panel .member-main { min-width: 0; }
.event-team-panel .member-main strong { display: block; overflow-wrap: anywhere; font-weight: 500; }
.event-team-panel .member-main small { display: block; overflow-wrap: anywhere; }
.event-team-panel .member-state { color: #9a4800; }
.event-team-panel .member-main .assignment-count { margin: 2px 0 0; font-size: 12px; }
.event-team-panel .member-controls { display: flex; align-items: center; justify-content: flex-end; gap: 4px; grid-column: 3; grid-row: 1; justify-self: end; width: auto; margin: 0; }
.event-team-panel .member-controls form { margin: 0; }
.event-team-panel .member-controls select { width: 160px; max-width: 160px; flex: 0 0 160px; min-height: 44px; }
.event-team-panel .member-row > .badge { grid-column: 3; grid-row: 1; justify-self: end; max-width: 204px; white-space: normal; text-align: center; }
.member-picker-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.member-picker-methods .button { justify-content: center; }
.member-picker-methods .button svg { width: 16px; height: 16px; }
.member-picker-methods .button[aria-pressed="true"] { border-color: #076f68; background: #e5f4f0; color: #076f68; }
.role-summary { margin: 0; color: #4f6779; font-size: 14px; }
@media (max-width: 700px) {
  .wide-button-text { display: none; }
}
@media (max-width: 600px) {
  .event-team-panel .team-group { padding: 0 12px 8px; }
  .event-team-panel .member-row { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 6px; }
  .event-team-panel .member-row > .avatar { width: 28px; height: 28px; font-size: 11px; }
  .event-team-panel .member-controls { gap: 0; }
  .event-team-panel .member-controls select { width: 110px; max-width: 110px; flex-basis: 110px; font-size: 12px; }
  .event-team-panel .member-row > .badge { max-width: 110px; }
  .event-team-panel .assignment-count.no-open-work { display: none; }
}
@media (max-width: 380px) {
  .event-team-panel .member-row { grid-template-columns: minmax(0, 1fr) auto; }
  .event-team-panel .member-row > .avatar { display: none; }
  .event-team-panel .member-controls,
  .event-team-panel .member-row > .badge { grid-column: 2; }
  .event-team-panel .member-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.details-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.details-list { margin: 20px 0 0; }
.details-list div { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid #dce5eb; font-size: 13px; }
.details-list dt { color: #4f6779; }
.details-list dd { margin: 0; text-align: right; }
.preserve-lines { white-space: pre-wrap; }
.details-grid .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.details-grid > .panel > h2,
.details-grid .section-heading h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.4px;
}
.details-grid .section-heading .button { flex-shrink: 0; }
.details-grid .section-heading .button svg { width: 16px; height: 16px; }
.event-dialog {
  width: min(660px, calc(100vw - 32px));
  max-height: min(860px, calc(100dvh - 48px));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: #152e40;
  background: #fff;
  box-shadow: 0 25px 80px #031b324d;
}
.event-dialog::backdrop { background: #132c40a6; backdrop-filter: blur(4px); }
.event-dialog > form { display: flex; flex-direction: column; max-height: min(860px, calc(100dvh - 48px)); }
.event-dialog-header { display: flex; align-items: center; gap: 13px; padding: 20px 23px; border-bottom: 1px solid #dce5eb; }
.event-dialog-header h2 { margin: 0; flex: 1; font-size: 21px; font-weight: 500; }
.event-dialog-icon { width: 43px; height: 43px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 11px; background: #e5f4f0; color: #076f68; }
.event-dialog-icon svg { width: 22px; height: 22px; }
.event-dialog-close { width: 40px; height: 40px; min-height: 40px; margin-left: auto; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #4f6779; }
.event-dialog-close:hover { background: #f1f6f7; color: #152e40; }
.event-dialog-close svg { width: 18px; height: 18px; }
.event-dialog-body { overflow: auto; padding: 22px 24px; }
.event-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; align-items: end; }
.event-editor-wide { grid-column: 1 / -1; }
.event-dialog .field { margin: 0; }
.event-dialog .field label,
.event-editor-label { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: #4f6779; }
.event-dialog .field:has(> :is(input, select, textarea)[required]) > label::after {
  content: "*";
  order: 1;
  margin-left: -4px;
  color: #c23b3b;
  line-height: 1;
}
.event-dialog .field:has(> :is(input, select, textarea)[required]) > label > .hint-tip { order: 2; }
.event-dialog .field input,
.event-dialog .field select,
.event-dialog .field textarea { width: 100%; }
.event-dialog .hint-tip { width: 18px; height: 18px; min-height: 18px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #557181; }
.event-dialog .hint-tip:hover { background: transparent; color: #076f68; }
.event-dialog .hint-tip svg { width: 15px; height: 15px; }
.member-static { display: flex; align-items: center; gap: 8px; min-height: 24px; margin: 0; color: #152e40; font-size: 14px; }
.member-static svg { width: 18px; height: 18px; color: #4f6779; }
.event-info-note { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; padding: 13px 15px; background: #edf6f5; border: 1px solid #d4e8e4; border-radius: 9px; color: #386960; font-size: 13px; }
.event-dialog-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid #dce5eb; }
.event-dialog-footer .button svg { width: 16px; height: 16px; display: block; flex-shrink: 0; align-self: center; }
.event-dialog-footer .button [data-invite-icon]:not([hidden]) { display: contents; }
.event-dialog-footer .button [data-activity-label],
.event-dialog-footer .button [data-save-label],
.event-dialog-footer .button [data-invite-label] { display: block; line-height: 1.35; }
.venue-picker .venue-actions { display: flex; gap: 8px; margin-top: 4px; }
.venue-address { margin: 6px 0 0; color: #4f6779; font-size: 13px; white-space: pre-line; }
.venue-editor { display: grid; gap: 12px; margin-top: 12px; }
.check-line { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; font-weight: 500; }
.picker-field { position: relative; }
.picker-field > svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: #4f6779; pointer-events: none; }
.event-dialog .picker-field select { padding-left: 38px; }
.check-line input { width: 18px; height: 18px; accent-color: #076f68; }
.event-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; margin: 16px 0 4px; }
.event-gallery a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid #dce5eb; background: #f4f7f8; }
.event-gallery img { display: block; width: 100%; height: 148px; object-fit: cover; }
.event-attachments { margin: 16px 0 4px; }
.event-attachments h3 { margin: 0 0 8px; font-size: 15px; font-weight: 650; }
.event-file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.event-file-list li { display: flex; align-items: baseline; gap: 10px; }
.event-file-list small { color: #4f6779; }
.media-picks { display: grid; gap: 8px; margin-bottom: 8px; }
.media-pick { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
.media-pick img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid #dce5eb; }
.event-dialog .media-pick input { width: 18px; height: 18px; accent-color: #076f68; }
.image-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.image-preview:empty { display: none; }
.image-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid #dce5eb; }
.event-dialog input[type="file"] { height: auto; min-height: 44px; padding: 8px; }
.location-details h3 { margin: 0 0 8px; font-size: 18px; font-weight: 650; }
.toast { position: fixed; top: 16px; right: 16px; z-index: 200; max-width: min(320px, calc(100vw - 32px)); margin: 0; padding: 12px 16px; border: 1px solid #b7e4cd; border-radius: 10px; background: #e7f6ef; color: #146c43; box-shadow: 0 10px 30px #12354526; font-size: 14px; font-weight: 650; line-height: 1.4; }
.toast.toast-hide { opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .3s ease; }
.spending-summary { margin-top: 8px; padding-top: 14px; border-top: 1px solid #dce5eb; }
.spending-summary h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 650; }
.spending-summary h3 > svg { width: 18px; height: 18px; }
.spending-summary .help-tip { position: relative; display: inline-flex; }
.spending-summary .context-help { width: 28px; height: 28px; min-height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #076f68; }
.spending-summary .context-help:hover,
.spending-summary .context-help:focus-visible { background: #e5f4f0; color: #076f68; }
.spending-summary .context-help svg { width: 17px; height: 17px; }
.spending-summary .help-popover { display: none; position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: min(320px, calc(100vw - 48px)); padding: 12px 14px; color: #152e40; background: #fff; border: 1px solid #8aa4b3; border-radius: 10px; box-shadow: 0 10px 30px #12354526; font-size: 13px; font-weight: 400; line-height: 1.5; text-align: left; }
.spending-summary .help-tip:hover .help-popover,
.spending-summary .help-tip:focus-within .help-popover { display: block; }
.event-close-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.event-close-actions .button svg { width: 16px; height: 16px; }
.event-dialog .stack { display: grid; gap: 16px; }
.event-dialog [data-contact-pane] { display: grid; gap: 16px; }
.event-dialog [data-contact-pane][hidden] { display: none; }
.event-dialog .field { display: grid; gap: 8px; }
.event-dialog .field > label { margin: 0; }
.task-context { display: flex; align-items: center; gap: 7px; margin: 0; color: #076f68; font-size: 12px; font-weight: 500; }
.task-context svg { width: 17px; height: 17px; }
.check-line { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-size: 13px; font-weight: 400; color: #152e40; }
.check-line input { width: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.task-details { border: 1px solid #dce5eb; border-radius: 12px; padding: 14px; }
.task-details summary { display: flex; align-items: center; gap: 8px; min-height: 24px; color: #076f68; font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
.task-details summary::-webkit-details-marker { display: none; }
.task-details summary svg { width: 18px; height: 18px; }
.task-details summary svg:last-child { margin-left: auto; }
.task-details[open] summary svg:last-child { transform: rotate(180deg); }
.task-details[open] > .stack { margin-top: 18px; }
.purchase-inset { background: #f5f8fa; border: 1px solid #e0e9ee; border-radius: 11px; padding: 19px; }
.purchase-inset h3 { margin: 0; font-size: 16px; font-weight: 500; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
.field-hint { margin: 6px 0 0; color: #4f6779; font-size: 13px; }
.event-copy-options { margin-top: 8px; }
.event-copy-options h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.event-copy-options h3 svg { width: 18px; height: 18px; }
.copy-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.copy-details-confirm { align-items: flex-start; }
.event-copy-review h2 { margin: 0; font-size: 22px; }
.message-preview { padding: 12px 14px; border: 1px solid #dce5eb; border-radius: 10px; background: #f7fbfb; }
.message-preview p { margin: 0 0 8px; }
.message-preview p:last-child { margin: 0; }
@media (max-width: 640px) { .copy-choice-grid { grid-template-columns: 1fr; } }
.spending-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0 0; }
.spending-metrics dt { font-size: 12px; color: #4f6779; }
.spending-metrics dd { margin: 4px 0 0; font-size: 17px; font-variant-numeric: tabular-nums; }
.spending-over { color: #a34408; }
@media (max-width: 640px) {
  .spending-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.details-grid .activity-list { max-height: 360px; margin-top: 20px; padding-right: 8px; overflow-y: auto; }
.activity-list > div { display: flex; gap: 14px; padding: 0 0 22px; }
.activity-list strong { display: block; font-size: 13px; font-weight: 500; line-height: 1.35; }
.activity-list small { display: block; margin-top: 3px; color: #4f6779; font-size: 12px; font-weight: 400; }
.activity-dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border: 3px solid #e5f1ed;
  border-radius: 50%;
  background: #459e91;
  box-sizing: content-box;
  flex-shrink: 0;
}
.activity-page .page-heading .button svg,
.activity-filters .button svg,
.activity-results .button svg { width: 16px; height: 16px; }
.activity-filters.panel { padding: 16px; margin-top: 0; }
.activity-filters {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 8px 12px;
  align-items: center;
}
.activity-filter-main { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.activity-filter-main .field,
.activity-filter-extra .field { min-width: 0; margin: 0; }
.activity-filter-main input,
.activity-filter-extra select { min-width: 0; max-width: 100%; width: 100%; }
.activity-filter-main .search { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid #637a89; border-radius: 8px; background: #fff; color: #4f6779; }
.activity-filter-main .search svg { width: 16px; height: 16px; flex-shrink: 0; }
.activity-filter-main .search input { width: 100%; min-width: 0; min-height: 0; padding: 8px 0; border: 0; background: transparent; box-shadow: none; font-size: 13px; color: #152e40; }
.activity-filter-main .search:focus-within { border-color: #076f68; box-shadow: 0 0 0 3px #087c7433; }
.activity-filters > summary,
.activity-more > summary { grid-column: 1; grid-row: 2; width: max-content; }
.activity-more { display: contents; }
.activity-more > summary { list-style: none; }
.activity-more > summary::-webkit-details-marker { display: none; }
.activity-zone { grid-column: 2; grid-row: 2; margin-right: auto; color: #4f6779; font-size: 12px; }
.activity-filters > a.button { grid-column: 3; grid-row: 2; }
.activity-filters > button.button { grid-column: 4; grid-row: 2; }
.activity-filter-extra { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px solid #dce5eb; }
.activity-more:not([open]) .activity-filter-extra { display: none; }
.activity-filters > .hint { grid-column: 1 / -1; grid-row: 4; margin: 0; }
.activity-results.panel { margin-top: 16px; padding: 0 20px; }
.activity-results-heading { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; color: #4f6779; font-size: 14px; }
.activity-results-heading p { margin: 0; }
.activity-results .button.icon.ghost { width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0; background: transparent; color: #557181; box-shadow: none; }
.activity-entry { padding: 16px 0; border-top: 1px solid #dce5eb; }
.activity-entry-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; color: #4f6779; font-size: 12px; }
.activity-type { color: #076f68; }
.activity-entry h3 { margin: 0; font-family: var(--font-ui, var(--sans)); font-size: 15px; font-weight: 500; line-height: 1.45; }
.activity-people { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 0; font-size: 14px; }
.activity-people dt { margin-bottom: 2px; color: #4f6779; font-size: 12px; }
.activity-people dd { margin: 0; }
.activity-pagination { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid #dce5eb; font-size: 14px; }
.activity-pagination .button.icon { width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; }
.activity-pagination button:disabled { cursor: not-allowed; }
.event-toolbar button.button:disabled { opacity: 0.45; cursor: not-allowed; }
.invite-disabled { position: relative; display: inline-flex; }
.invite-disabled button:disabled { pointer-events: none; }
.invite-disabled-tip { display: none; position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: min(280px, calc(100vw - 48px)); padding: 10px 12px; color: #152e40; background: #fff; border: 1px solid #8aa4b3; border-radius: 10px; box-shadow: 0 10px 30px #12354526; font-size: 13px; font-weight: 400; line-height: 1.45; text-align: left; }
.invite-disabled:hover .invite-disabled-tip,
.invite-disabled:focus-within .invite-disabled-tip { display: block; }
@media (max-width: 700px) {
  .activity-page .activity-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  }
  .activity-page .activity-filters > div {
    flex: 1 1 auto;
    max-width: none;
  }
  .activity-filter-main { grid-template-columns: 1fr 1fr; }
  .activity-filter-main .field:first-child { grid-column: 1 / -1; }
  .activity-zone { display: none; }
  .activity-more > summary { grid-column: 1; grid-row: 2; width: 100%; justify-content: center; }
  .activity-filters > a.button { grid-column: 2; grid-row: 2; width: 100%; justify-content: center; }
  .activity-filters > button.button { grid-column: 3; grid-row: 2; width: 100%; justify-content: center; }
  .activity-page .activity-filter-extra {
    grid-column: 1 / 4;
    grid-row: 3;
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-self: stretch;
    grid-template-columns: minmax(0, 1fr);
  }
  .activity-page .activity-filter-extra .field,
  .activity-page .activity-filter-extra select {
    width: 100%;
    max-width: none;
  }
  .activity-filters > .hint { grid-row: 4; }
  .activity-results.panel { padding: 0 14px; }
}
.event-document-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #dce5eb;
}
.event-document-bar h2 { margin: 0 auto 0 0; font-size: 18px; font-weight: 500; }
.event-document-bar .event-list-filters {
  flex: 0 1 auto;
  min-width: 0;
  grid-template-columns: minmax(220px, 320px) 160px;
}
.event-document-actions { display: flex; align-items: center; gap: 8px; }
.event-document-actions .button svg { width: 16px; height: 16px; }
.document-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #d9e4e8;
  color: inherit;
  text-decoration: none;
}
.document-row > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.document-row small { display: block; margin-top: 4px; color: #4f6779; }
.document-row .document-date { display: block; margin-top: 0; flex-shrink: 0; font-size: 13px; }
.document-row > svg { width: 19px; height: 19px; flex-shrink: 0; }
.document-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 280px;
  margin: 0;
  color: #152e40;
  font-weight: 650;
}
.document-empty svg { width: 42px; height: 42px; color: #8aa0ae; }
.attachment-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.attachment-row form { margin: 0; }
.attachment-row small { color: #4f6779; }
.event-dialog .form-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.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; }
@media (max-width: 540px) {
  .document-row { padding: 12px; gap: 8px; }
  .document-row .document-date { display: none; }
}
@media (max-width: 600px) {
  .event-list-filters { grid-template-columns: minmax(0, 1fr) 135px; gap: 8px; }
  .event-document-bar .event-list-filters { flex: 1 1 100%; margin-left: 0; grid-template-columns: minmax(0, 1fr) 135px; }
  .event-document-actions {
    flex: 1 1 100%;
    width: 100%;
    flex-wrap: nowrap;
    align-items: stretch;
  }
  .event-document-actions .button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    justify-content: center;
  }
}
@media (max-width: 380px) {
  .event-list-filters { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .details-grid, .event-editor-grid { grid-template-columns: 1fr; }
  .event-toolbar { gap: 10px; }
  .event-overview .event-heading { flex-direction: row; align-items: center; justify-content: space-between; }
  .event-overview .event-heading h1 { flex: 1 1 auto; }
  .event-overview .event-heading-actions { margin-left: auto; }
}

.my-tasks .page-heading { margin: 8px 0 22px; }
.my-tasks .page-heading h1 { margin: 0; font-size: 26px; line-height: 1.18; letter-spacing: -1px; font-weight: 500; }
.summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.summary-strip button,
.summary-strip button:hover,
.summary-strip button:focus-visible {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 20px 22px;
  border: 1px solid #637a89;
  border-radius: 12px;
  background: #fff;
  color: #152e40;
  box-shadow: none;
  text-align: left;
  font-weight: 400;
  cursor: pointer;
}
.summary-strip button.current,
.summary-strip button.current:hover,
.summary-strip button.current:focus-visible { border-color: #076f68; box-shadow: 0 0 0 1px #076f68; }
.summary-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px; background: #e7f4f0; color: #076f68; flex-shrink: 0; }
.summary-icon.amber { background: #fff2dc; color: #8e6217; }
.summary-icon svg { width: 21px; height: 21px; }
.summary-strip strong { display: block; font-size: 27px; line-height: 1.1; font-weight: 500; }
.summary-strip small { display: block; margin-top: 4px; color: #4f6779; font-size: 12px; }
.my-tasks .work-panel { margin-top: 0; padding: 0; border-radius: 12px; overflow: hidden; box-shadow: none; }
.my-tasks .work-panel:has(.task-row-menu[open]) { overflow: visible; }
.my-tasks .work-toolbar { padding: 21px 23px; border-bottom: 1px solid #dce5eb; }
.my-task-filters { display: flex; align-items: center; gap: 12px; }
.my-task-filters select {
  width: min(210px, 100%);
  min-height: 44px;
  padding: 9px 36px 9px 12px;
  border: 1px solid #637a89;
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6779' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  color: #152e40;
  font-size: 13px;
  appearance: none;
}
.my-tasks .search { display: flex; align-items: center; gap: 8px; width: min(320px, 100%); min-height: 44px; padding: 0 12px; border: 1px solid #637a89; border-radius: 8px; background: #fff; color: #4f6779; }
.my-tasks .search svg { width: 16px; height: 16px; }
.my-tasks .search input { width: 100%; min-width: 0; min-height: 0; padding: 9px 0; border: 0; background: transparent; box-shadow: none; font-size: 13px; color: #152e40; }
.my-tasks .search:focus-within { border-color: #076f68; box-shadow: 0 0 0 3px #087c7433; }
.my-tasks .list-caption { padding: 12px 23px; background: #fff9ed; color: #795922; font-size: 12px; }
.my-tasks .task-meta a { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; color: #076f68; }
.my-tasks .task-row.done .task-name { color: #4f6779; }
.board-page .page-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 18px; }
.board-page .page-heading h1,
h1.page-title { margin: 0 0 16px; font-family: var(--font-ui); font-size: 26px; line-height: 1.18; letter-spacing: -1px; font-weight: 500; }
.board-page .page-heading h1 { margin: 0; }
.board-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.board-actions { display: flex; align-items: center; gap: 8px; }
.board-actions > .event-actions > summary,
.board-actions > .task-groups > summary { width: 44px; height: 44px; min-height: 44px; border: 1px solid #d5e0e6; border-radius: 10px; background: #fff; }
.board-add-short { display: none; }
.board-page .work-panel { margin-top: 0; padding: 0; border-radius: 12px; overflow: hidden; box-shadow: none; }
.board-page .work-panel:has(.task-row-menu[open]),
.board-page .work-panel:has(.task-groups[open]) { overflow: visible; }
.task-row:has(.task-row-menu[open]),
.task-row:has(.task-groups[open]) { position: relative; z-index: 5; }
.board-search-row { display: grid; align-items: end; grid-template-columns: minmax(110px, 160px) minmax(180px, 400px) auto; justify-content: start; gap: 12px; padding: 16px 20px 8px; }
.board-page .event-toolbar > .event-list-filters { flex: 0 0 auto; grid-template-columns: minmax(220px, 320px) 160px max-content; }
.board-page .event-toolbar > .event-list-filters.board-pair-filters { grid-template-columns: minmax(220px, 320px) 160px; }
.board-page .event-toolbar > .event-list-filters.toolbar-search { grid-template-columns: minmax(220px, 320px); }
.board-page .event-toolbar:has(> .board-filter-disclosure:not([hidden])) { flex-wrap: wrap; }
.board-page .event-toolbar > .board-filter-disclosure { flex: 1 0 100%; width: 100%; max-width: 100%; min-width: 0; order: 11; margin: 8px 0 0; }
.board-page .event-toolbar .search { display: flex; align-items: center; gap: 8px; width: auto; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid #637a89; border-radius: 8px; background: #fff; color: #4f6779; }
.board-page .event-toolbar .search svg { width: 16px; height: 16px; flex-shrink: 0; }
.board-page .event-toolbar .search input { width: 100%; min-width: 0; min-height: 0; padding: 8px 0; border: 0; background: transparent; box-shadow: none; font-size: 13px; color: #152e40; }
.board-page .event-toolbar .event-list-filters select { width: 100%; min-width: 0; max-width: none; }
.board-search-row .field { margin: 0; min-width: 0; }
.board-search-row .field > label { font-size: 12px; font-weight: 500; color: #4f6779; }
.board-search-row select,
.board-page .event-toolbar .event-list-filters select,
.board-page .spending-toolbar select,
.board-member-add select {
  width: 100%;
  min-height: 44px;
  padding: 9px 36px 9px 12px;
  border: 1px solid #637a89;
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6779' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  color: #152e40;
  font-size: 13px;
  appearance: none;
}
.board-search-row .search { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #637a89; border-radius: 8px; background: #fff; color: #4f6779; }
.board-search-row .search svg { width: 16px; height: 16px; flex-shrink: 0; }
.board-search-row .search input { width: 100%; min-width: 0; min-height: 0; padding: 9px 0; border: 0; background: transparent; box-shadow: none; font-size: 13px; color: #152e40; }
.board-filter-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 12px; background: #fff; color: #076f68; border: 1px solid #c5d4dc; border-radius: 9px; font: inherit; font-size: 13px; cursor: pointer; }
.board-filter-toggle svg { width: 18px; height: 18px; }
.board-filter-toggle:hover,
.board-filter-toggle[aria-expanded="true"] { background: #e7f4f2; border-color: #5a9692; color: #076f68; }
.board-filter-toggle:focus-visible { outline: none; border-color: #076f68; box-shadow: 0 0 0 3px #087c7433; color: #076f68; }
.board-filter-toggle[aria-label="Filters (Applied)"] { box-shadow: inset 0 -3px #08736f; }
.board-filter-toggle[aria-label="Filters (Applied)"]:focus-visible { box-shadow: inset 0 -3px #08736f, 0 0 0 3px #087c7433; }
.board-filter-disclosure { margin: 0 16px 8px; }
.board-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; padding: 4px 0 8px; }
.board-filters .field { margin: 0; min-width: 0; }
.board-filters .field label, .compact-check { font-size: 13px; font-weight: 500; color: #4f6779; }
.board-filters select,
.board-filters input[type="date"] { width: 100%; max-width: 100%; min-width: 0; }
.board-filters .compact-check { align-self: end; }
.compact-check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.compact-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #076f68;
}
.compact-check input:focus { outline: none; }
.compact-check input:focus-visible { outline: 2px solid #076f68; outline-offset: 2px; }
.selected-activity { display: flex; align-items: center; gap: 8px; padding: 0 20px 8px; font-size: 14px; }
.board-result-count { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 10px; color: #4f6779; font-size: 13px; }
.board-result-count button { min-height: 44px; padding: 0; border: 0; background: transparent; color: #076f68; text-decoration: underline; cursor: pointer; }
.selected-activity .button.icon.ghost,
.selected-activity .button.icon.ghost:hover,
.selected-activity .button.icon.ghost:focus-visible { width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #557181; box-shadow: none; }
.selected-activity .button.icon.ghost svg { width: 18px; height: 18px; }
.spending-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; }
.spending-toolbar h2 { margin: 0; font-size: 18px; font-weight: 500; }
.spending-toolbar .field { margin: 0; min-width: 140px; }
.spending-total { margin: 0; padding: 12px 20px; color: #152e40; }
.spending-record { padding: 12px 20px; border-top: 1px solid #e6edf1; }
.spending-record h3 { margin: 0 0 4px; font-size: 15px; font-weight: 500; }
.spending-record h3 small { margin-left: 8px; color: #4f6779; font-size: 12px; font-weight: 400; }
.spending-record p { margin: 0; color: #4f6779; font-size: 13px; }
.board-page .back-row { margin: 0; padding: 16px 20px 0; }
.board-search-row.board-member-search { grid-template-columns: minmax(180px, 400px); }
.board-member-add { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 16px 20px 4px; }
.board-member-add .field { margin: 0; min-width: min(100%, 280px); flex: 1; }
.board-member-add .field > label { font-size: 12px; font-weight: 500; color: #4f6779; }
.board-member-add .button { min-height: 44px; }
.board-members { padding: 0 20px 8px; }
.board-members .member-row { align-items: center; }
.people-groups { display: flex; flex-direction: column; gap: 18px; margin-top: 16px; }
.people-group { border: 0; background: transparent; }
.people-group > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 4px 8px;
  cursor: pointer;
  list-style: none;
  color: #5c7384;
}
.people-group > summary::-webkit-details-marker { display: none; }
.people-group > summary::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  margin: 0 2px 3px;
}
.people-group[open] > summary::before { transform: rotate(45deg); margin: 3px 2px 0; }
.people-group > summary h3 {
  margin: 0;
  font-family: var(--font-ui, var(--sans));
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c7384;
}
.people-group > summary span { font-size: 12px; color: #6d8494; }
.people-group .board-members {
  margin: 0;
  padding: 4px 20px 8px;
  background: #fff;
  border: 1px solid #e4edf1;
  border-radius: 14px;
}
.people-group .member-row:last-child { border-bottom: 0; }
.member-row .support-status { flex: 0 0 auto; font-size: 13px; color: #2f7d62; }
.member-row .support-status.paused { color: #8a6230; }
.member-row .support-access,
.member-row .support-access:hover,
.member-row .support-access:focus-visible {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #557181;
  box-shadow: none;
}
.member-row .support-access:hover,
.member-row .support-access:focus-visible { background: #eaf2f4; color: #076f68; }
.member-row .support-access svg { width: 18px; height: 18px; }
.people-group:has(.task-row-menu[open]) { position: relative; z-index: 5; }
.board-member-remove { margin: 0 0 0 auto; }
.board-member-remove .button { min-height: 36px; }
.board-page .avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e2eeee;
  color: #29565b;
  font-size: 12px;
  font-weight: 650;
  flex-shrink: 0;
}
@media (max-width: 1199px) {
  .board-page .event-toolbar > .event-list-filters { flex: 1 0 100%; order: 10; grid-template-columns: minmax(0, 1fr) 160px max-content; }
  .board-page .event-toolbar > .event-list-filters.board-pair-filters { grid-template-columns: minmax(0, 1fr) 160px; }
  .board-page .event-toolbar > .event-list-filters.toolbar-search { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .board-page .page-heading {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  #positions-page.board-page .page-heading > .button,
  #activity-page.board-page .page-heading > .button {
    flex: 1 0 100%;
    width: 100%;
    justify-content: center;
  }
  .board-page .board-actions[data-board-only="tasks"] {
    margin-left: auto;
  }
  .board-page .board-actions[data-board-only="members"] {
    flex: 1 0 100%;
    width: 100%;
  }
  .board-page .board-actions[data-board-only="members"] > .button {
    width: 100%;
    justify-content: center;
  }
  .board-member-add {
    flex-wrap: nowrap;
    align-items: end;
    gap: 8px;
  }
  .board-member-add .field {
    flex: 1 1 0;
    min-width: 0;
  }
  .board-member-add .button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .spending-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .spending-toolbar .field {
    width: 100%;
    min-width: 0;
  }
  .spending-toolbar .field select {
    width: 100%;
  }
}
@media (max-width: 700px) {
  .board-search-row { grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1.2fr) 44px; padding: 12px; gap: 8px; }
  .board-page .event-toolbar > .event-list-filters { flex: 1 0 100%; order: 10; grid-template-columns: minmax(0, 1fr) minmax(96px, 130px) max-content; }
  .board-page .event-toolbar > .event-list-filters.board-pair-filters { grid-template-columns: minmax(0, 1fr) minmax(96px, 130px); }
  .board-page .event-toolbar > .event-list-filters.toolbar-search { grid-template-columns: minmax(0, 1fr); }
  .board-search-row.board-member-search { grid-template-columns: minmax(0, 1fr); }
  .board-filter-toggle > span { display: none; }
  .board-filters { grid-template-columns: minmax(0, 1fr); }
  .board-filters .field,
  .board-filters .compact-check,
  .board-filters select,
  .board-filters input[type="date"] { width: 100%; max-width: none; min-width: 0; }
}
@media (max-width: 440px) {
  .board-title > .event-help, .board-add-wide { display: none; }
  .board-add-short { display: inline; }
}
@media (max-width: 800px) {
  .summary-strip { grid-template-columns: 1fr 1fr; }
  .my-task-filters { flex-wrap: wrap; }
}
@media (max-width: 759px) {
  .my-tasks .summary-strip { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
  .my-tasks .summary-strip button,
  .my-tasks .summary-strip button:hover,
  .my-tasks .summary-strip button:focus-visible { gap: 12px; padding: 14px 14px; }
  .my-tasks .summary-icon { width: 36px; height: 36px; border-radius: 10px; }
  .my-tasks .summary-icon svg { width: 18px; height: 18px; }
  .my-tasks .summary-strip strong { font-size: 22px; }
  .my-tasks .my-task-filters { flex-direction: column; align-items: stretch; gap: 10px; }
  .my-tasks .my-task-filters select,
  .my-tasks .search { width: 100%; max-width: none; }
}
.contacts-page .page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 22px; }
.contacts-page .page-heading h1 { margin: 0; font-family: var(--font-ui); font-size: 26px; line-height: 1.18; letter-spacing: -1px; font-weight: 500; }
.contacts-toolbar { display: flex; align-items: center; gap: 12px; }
.contacts-page .search { display: flex; align-items: center; gap: 8px; width: min(320px, 46vw); min-height: 44px; padding: 0 12px; border: 1px solid #637a89; border-radius: 8px; background: #fff; color: #4f6779; }
.contacts-page .search svg { width: 16px; height: 16px; }
.contacts-page .search input { width: 100%; min-width: 0; min-height: 0; padding: 9px 0; border: 0; background: transparent; box-shadow: none; font-size: 13px; color: #152e40; }
.contacts-page .search input:focus, .contacts-page .search input:focus-visible { outline: none; }
.contacts-page .search:focus-within { border-color: #076f68; box-shadow: 0 0 0 3px #087c7433; }
.contacts-toolbar > .button svg { width: 16px; height: 16px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.contact-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px 18px 16px; border: 1px solid #dce5eb; border-radius: 16px; background: #fff; }
.contact-card-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.contact-card-top h2, .contact-card-top h3 { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 650; }
.contact-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.arrangement { padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; }
.arrangement.green { background: #e4f3ed; color: #116b4b; }
.arrangement.amber { background: #fff1d6; color: #7c5002; }
.arrangement.red { background: #ffebea; color: #a62e2e; }
.event-contacts-details { margin-top: 16px; }
.event-contacts-details > summary {
  cursor: pointer;
  min-height: 44px;
  padding: 12px 4px;
  color: #152e40;
  font-size: 16px;
  font-weight: 500;
}
.event-contacts-details[open] > .section-heading { margin-top: 4px; }
.event-contacts-details > .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.event-contacts-details > .section-heading h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.4px;
}
.event-contacts-details .button-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.event-contacts-details .button-row .button svg { width: 16px; height: 16px; }
.event-contacts-empty { margin-top: 4px; }
.event-contacts-empty h3 { margin: 0 0 6px; font-size: 17px; font-weight: 650; }
.event-contacts-empty p { margin: 0; color: #4f6779; font-size: 14px; }
.event-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.event-contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; }
.event-contact-actions form { margin: 0; }
.event-contact-actions .button svg { width: 16px; height: 16px; }
.event-contact-actions .button.ghost {
  width: auto;
  height: 36px;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #152e40;
}
.event-contact-actions .button.ghost:hover { background: #eaf2f4; color: #076f68; }
.arrangement-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; }
@media (max-width: 1100px) { .event-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .event-contact-grid { grid-template-columns: 1fr; } }
.contact-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e5f4f0; color: #076f68; }
.contact-mark svg { width: 18px; height: 18px; }
.contact-kind { padding: 3px 8px; border-radius: 999px; background: #f3f6f8; color: #4f6779; font-size: 12px; font-weight: 650; }
.contact-facts { display: grid; gap: 7px; }
.contact-facts p { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: #4f6779; font-size: 13px; line-height: 1.4; }
.contact-facts svg { width: 16px; height: 16px; margin-top: 1px; color: #076f68; }
.contact-facts a { color: #076f68; font-weight: 650; text-decoration: none; }
.contact-facts a:hover { text-decoration: underline; }
.contact-notes { margin: 0; color: #4f6779; font-size: 13px; line-height: 1.45; }
.contact-foot { display: grid; gap: 12px; margin-top: auto; }
.contact-events { display: flex; align-items: center; gap: 8px; min-width: 0; }
.contact-event, .contact-more-menu a { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 6px 10px; border-radius: 999px; background: #e5f4f0; color: #076f68; font-size: 13px; font-weight: 650; text-decoration: none; }
.contact-event svg, .contact-more-menu svg { width: 14px; height: 14px; flex-shrink: 0; }
.contact-event { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-more { position: relative; }
.contact-more > summary { display: grid; place-items: center; min-width: 36px; height: 32px; padding: 0 10px; border: 1px solid #dce5eb; border-radius: 999px; background: #fff; color: #152e40; font-size: 13px; font-weight: 650; list-style: none; cursor: pointer; }
.contact-more > summary::-webkit-details-marker { display: none; }
.contact-more-menu { position: absolute; z-index: 4; left: 0; bottom: calc(100% + 8px); display: grid; gap: 4px; min-width: 220px; padding: 8px; border: 1px solid #dce5eb; border-radius: 14px; background: #fff; box-shadow: 0 12px 30px #031b3224; }
.contact-more-menu a { align-items: flex-start; border-radius: 10px; background: transparent; }
.contact-more-menu a:hover { background: #e5f4f0; }
.contact-more-menu span { display: grid; }
.contact-more-menu small { color: #4f6779; font-size: 12px; font-weight: 500; }
.contact-card .button.secondary { justify-content: center; width: fit-content; }
.contact-card .button.secondary svg { width: 16px; height: 16px; }
.contacts-page .contact-grid { gap: 20px; }
.contacts-page .contact-card { align-items: flex-start; gap: 0; padding: 21px; }
.contacts-page .contact-card-top { display: flex; width: 100%; margin: 0 0 10px; }
.contacts-page .contact-card-top h2 { flex: 1; min-width: 0; font-size: 17px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.contacts-page .contact-mark { width: 36px; height: 36px; flex-shrink: 0; }
.contacts-page .contact-mark svg { width: 22px; height: 22px; }
.contacts-page .contact-kind { flex-shrink: 0; padding: 4px 9px; border-radius: 6px; background: #edf2f5; color: #526779; font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: 0.1px; }
.contacts-page .contact-facts { display: flex; flex-direction: column; gap: 10px; width: 100%; margin: 4px 0 12px; color: #4f6779; font-size: 12px; }
.contacts-page .contact-facts:not(:has(p)) { display: none; }
.contacts-page .contact-facts p,
.contacts-page .contact-facts a { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: inherit; font-size: 12px; font-weight: 400; line-height: 18px; }
.contacts-page .contact-facts a { color: #076f68; text-decoration: underline; text-underline-offset: 0.16em; overflow-wrap: anywhere; }
.contacts-page .contact-facts svg { width: 16px; height: 16px; margin-top: 2px; color: currentColor; }
.contacts-page .contact-notes { width: 100%; margin: 0 0 17px; color: #4f6779; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.contacts-page .contact-events { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; width: 100%; margin: 0 0 12px; }
.contacts-page .contact-event { min-height: 36px; padding: 4px 7px; border-radius: 5px; background: #edf6f3; color: #076f68; font-size: 12px; font-weight: 400; gap: 5px; }
.contacts-page .contact-event svg { width: 15px; height: 15px; }
.contacts-page .contact-events-more { display: inline-flex; align-items: center; justify-content: center; gap: 2px; flex-shrink: 0; min-width: 44px; height: 36px; min-height: 36px; padding: 4px 8px; border: 1px solid #637a89; border-radius: 9px; background: #fff; color: #152e40; font-size: 13px; font-weight: 500; list-style: none; cursor: pointer; }
.contacts-page .contact-events-more::-webkit-details-marker { display: none; }
.contacts-page .contact-events-more svg { width: 14px; height: 14px; }
.contacts-page .contact-card > .button.secondary { height: 40px; min-height: 40px; margin-top: auto; padding: 7px 11px; border-radius: 9px; font-size: 13px; font-weight: 500; gap: 8px; }
.event-contacts-details .contact-card { align-items: flex-start; gap: 0; padding: 21px; }
.event-contacts-details .contact-card-top { display: flex; width: 100%; margin: 0 0 10px; }
.event-contacts-details .contact-card-top h3 { flex: 1; min-width: 0; font-size: 17px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.event-contacts-details .contact-mark { width: 36px; height: 36px; flex-shrink: 0; }
.event-contacts-details .contact-mark svg { width: 22px; height: 22px; }
.event-contacts-details .contact-kind { flex-shrink: 0; padding: 4px 9px; border-radius: 6px; background: #edf2f5; color: #526779; font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: 0.1px; }
.event-contacts-details .contact-facts { display: flex; flex-direction: column; gap: 10px; width: 100%; margin: 4px 0 12px; color: #4f6779; font-size: 12px; }
.event-contacts-details .contact-facts:not(:has(p)) { display: none; }
.event-contacts-details .contact-facts p,
.event-contacts-details .contact-facts a { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: inherit; font-size: 12px; font-weight: 400; line-height: 18px; }
.event-contacts-details .contact-facts a { color: #076f68; text-decoration: underline; text-underline-offset: 0.16em; overflow-wrap: anywhere; }
.event-contacts-details .contact-facts svg { width: 16px; height: 16px; margin-top: 2px; color: currentColor; }
.event-contacts-details .arrangement-summary { width: 100%; margin: 18px 0 0; gap: 10px 14px; }
.event-contacts-details .arrangement-date { display: inline-flex; align-items: center; gap: 6px; color: #4f6779; font-size: 14px; }
.event-contacts-details .arrangement-date svg { width: 15px; height: 15px; }
.event-contacts-details .arrangement-reference { width: 100%; margin: 10px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.event-contacts-details .arrangement-reference span { color: #4f6779; }
.arrangement-dialog h3 { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.35; }
.event-contacts-details .arrangement { padding: 4px 9px; border-radius: 6px; font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: 0.1px; }
.event-contacts-details .contact-notes { width: 100%; margin: 0 0 17px; color: #4f6779; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.event-contacts-details .arrangement-summary + .contact-notes,
.event-contacts-details .arrangement-reference + .contact-notes { margin-top: 10px; }
.event-contacts-details .event-contact-actions { width: 100%; margin-top: auto; padding-top: 16px; gap: 10px; }
.event-contacts-details .arrangement-summary + .event-contact-actions { padding-top: 18px; }
.event-contacts-details .event-contact-actions .button.secondary { height: 40px; min-height: 40px; padding: 7px 11px; border-radius: 9px; font-size: 13px; font-weight: 500; }
.button.secondary.warning,
.button.secondary.warning:hover,
.button.secondary.warning:focus-visible {
  border-color: #d4a05a;
  background: #fff2dc;
  color: #8e6217;
}
.button.secondary.warning:hover,
.button.secondary.warning:focus-visible {
  background: #ffedd5;
  color: #c2410c;
}
.button.secondary.warning svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 1100px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .contacts-page .page-heading { align-items: stretch; flex-direction: column; }
  .contacts-toolbar {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .contacts-toolbar > .button {
    order: -1;
    width: 100%;
    justify-content: center;
  }
  .contacts-page .search { width: 100%; max-width: none; }
  .contacts-page .contact-card > .button.secondary { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
}
.decision-list { display: grid; }
.grouped-record-row { display: flex; align-items: stretch; border-bottom: 1px solid #dce5eb; }
.grouped-record-row .decision-row { flex: 1; border-bottom: 0; }
.decision-row {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  background: #fff;
  border: 0;
  padding: 14px 18px;
  color: #152e40;
  font: inherit;
  cursor: pointer;
}
.decision-row:hover { background: #f1f8f7; }
.decision-row > span { flex: 1; min-width: 0; }
.decision-row svg { width: 18px; height: 18px; flex-shrink: 0; color: #08736f; }
.decision-row .decision-title { display: block; font-weight: 500; overflow-wrap: anywhere; }
.decision-row .small { display: block; margin-top: 3px; color: #4f6779; font-size: 13px; }
.decision-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  color: #4f6779;
  margin-top: 4px;
}
.small { font-size: 13px; }
.muted { color: #4f6779; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 6px;
  background: #edf2f5;
  color: #526779;
  font-size: 12px;
  font-weight: 650;
}
.vote-detail { min-width: 0; }
.vote-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.vote-actions { flex: 0 0 auto; }
fieldset.vote-own {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 2px 0 0;
  min-inline-size: 0;
}
fieldset.vote-own > legend { padding: 0; font-size: 15px; font-weight: 650; color: #152e40; }
.vote-own .vote-progress { margin: 0; }
.vote-personal-state { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; color: #076f68; font-weight: 650; }
.vote-personal-state svg { width: 14px; height: 14px; }
.voter-picker { border: 1px solid #dce5eb; border-radius: 12px; padding: 12px; }
.voter-picker legend { padding: 0 6px; font-weight: 650; }
.voter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-top: 8px; }
.check-line { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.ballot-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ballot-choice { display: flex; align-items: center; gap: 2px; min-height: 48px; padding: 0 4px 0 12px; border: 1px solid #dce5eb; border-radius: 9px; background: #fff; }
.ballot-choice:has(input:checked) { border-color: #07817b; background: #edf8f6; }
.ballot-choice label { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 0; font-size: 14px; font-weight: 500; }
.ballot-choice input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  flex: 0 0 18px;
  accent-color: #076f68;
}
.ballot-choice .event-help { flex: 0 0 auto; }
.ballot-choice .event-help > button { width: 32px; height: 32px; min-height: 32px; }
.vote-own [data-cast-form] { display: flex; flex-direction: column; align-items: center; }
.vote-own [data-cast-form] .ballot-options { align-self: stretch; width: 100%; }
.cast-vote-button { width: fit-content; margin-top: 18px; }
.record-filing { display: grid; gap: 8px; }
.record-filing .actions, .vote-confirm .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.button.danger, .button.ghost.danger { color: #9f1239; }
.list-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 0; }
.history-list { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 12px; }
.decision-change { margin-top: 10px; font-size: 13px; overflow-wrap: anywhere; }
.decision-change > span { font-weight: 650; }
.decision-change p { white-space: pre-wrap; margin: 3px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"],
input:not([type]),
select,
.search,
button,
.button {
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
}
textarea { height: auto; min-height: 110px; }
.search {
  display: flex;
  align-items: center;
  align-self: center;
  margin: 0;
}
.search input {
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  border: 0;
  padding-top: 0;
  padding-bottom: 0;
  box-shadow: none;
}
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"] {
  padding-top: 0;
  padding-bottom: 0;
}
input[type="date"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit,
input[type="month"]::-webkit-datetime-edit,
input[type="week"]::-webkit-datetime-edit { padding: 0; }
.task-actions .move-group-trigger { margin-right: 0; }
@media (max-width: 700px) {
  .ballot-options { grid-template-columns: 1fr; }
  .decision-row { padding: 12px; }
  .vote-own > form { width: 100%; }
  .vote-own > form > .button {
    width: 100%;
    justify-content: center;
  }
}
#positions-page .work-panel { overflow: visible; background: transparent; border: 0; box-shadow: none; }
#positions-page .work-toolbar { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.position-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.position-card { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 12px 14px; border-radius: 12px; }
.position-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 0; }
.position-card h2 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.2px; line-height: 1.25; }
.position-card-actions { display: flex; align-items: center; gap: 0; margin-top: 0; }
.position-card .icon-button { width: 32px; height: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.position-card .icon-button:hover { background: var(--canvas); color: var(--ink); }
.position-card .icon-button svg { width: 16px; height: 16px; }
.position-card > p, .position-open { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.position-open { display: flex; align-items: center; gap: 6px; color: var(--teal); }
.position-open svg { width: 22px; height: 22px; }
.position-card > p + .position-assigned { margin-top: 8px; }
.position-card .person-line { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; line-height: 1.2; }
.position-card .person-line .avatar { width: 22px; height: 22px; font-size: 10px; }
.position-reports { border-top: 1px solid var(--line); margin-top: 2px; padding-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.position-dialog { width: min(620px, calc(100vw - 32px)); }
.position-dialog textarea { min-height: 68px; height: auto; }
.position-dialog .event-dialog-icon { width: auto; height: auto; background: transparent; color: var(--teal); }
.position-dialog .event-dialog-icon svg { width: 20px; height: 20px; }
.position-dialog .chooser { position: relative; }
.position-dialog .chooser-trigger { width: 100%; justify-content: space-between; color: var(--ink); border: 1px solid #9cb0be; background: #fff; font-weight: 500; }
.position-dialog .chooser-trigger:hover { background: #fff; color: var(--ink); }
.position-dialog .chooser-trigger svg { width: 18px; height: 18px; color: var(--muted); }
.position-dialog .chooser-panel { margin-top: 6px; border: 1px solid #9cb0be; border-radius: 10px; background: #fff; box-shadow: 0 8px 20px #14334b14; padding: 12px; }
.position-dialog .chooser-panel .search { width: 100%; max-width: none; }
.position-dialog .people-options { max-height: 190px; overflow: auto; margin-top: 8px; }
.position-dialog .person-option { display: flex; align-items: center; gap: 10px; min-height: 52px; margin: 0; padding: 9px 8px; border-radius: 6px; font-weight: 500; cursor: pointer; }
.position-dialog .person-option:hover { background: var(--canvas); }
.position-dialog .person-option input { width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; flex: none; accent-color: var(--teal); }
.position-dialog .person-option .avatar { width: 30px; height: 30px; font-size: 11px; }
.position-dialog .person-option small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.position-dialog .chooser-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.position-dialog .chooser-bottom .button { min-height: 36px; height: 36px; }
.position-dialog .chips { display: flex; flex-wrap: wrap; gap: 7px; max-height: 112px; margin: 10px 0 0; overflow: auto; }
.position-dialog .chips:empty { display: none; }
.position-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 5px 2px 10px; border-radius: 7px; background: var(--soft); font-size: 13px; }
.position-chip button { width: 30px; height: 30px; min-height: 30px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--teal); font-size: 18px; line-height: 1; }
.position-chip button svg { width: 14px; height: 14px; }
.position-chip button:hover { background: transparent; color: var(--teal-dark); }
@media (max-width: 1100px) {
  .position-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .position-grid { grid-template-columns: 1fr; }
}
