/* Turnout layout, controls, caller activity, and reporting. */

.iv-turnout-intro {
  max-width: 760px;
  font-size: 20px;
}
.iv-turnout section {
  margin-top: 48px;
}
.iv-turnout button {
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  line-height: normal;
  font-family: "JetBrains Mono", monospace;
  min-height: 44px;
  border: 1px solid var(--lt_gray);
  color: var(--brand_black);
  cursor: pointer;
  border-radius: 0;
  background: var(--neutral);
  font-size: 13px;
  padding: 9px 12px;
}
.iv-turnout input,
.iv-turnout select,
.iv-turnout textarea {
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  line-height: normal;
  font-family: "JetBrains Mono", monospace;
  min-height: 44px;
  border: 1px solid var(--lt_gray);
  color: var(--brand_black);
  border-radius: 0;
  background: var(--neutral);
  font-size: 13px;
  padding: 9px 12px;
}
.iv-dialog button {
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  line-height: normal;
  font-family: "JetBrains Mono", monospace;
  min-height: 44px;
  border: 1px solid var(--lt_gray);
  color: var(--brand_black);
  cursor: pointer;
  border-radius: 0;
  background: var(--neutral);
  font-size: 13px;
  padding: 9px 12px;
}
.iv-dialog input,
.iv-dialog select {
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  line-height: normal;
  font-family: "JetBrains Mono", monospace;
  min-height: 44px;
  border: 1px solid var(--lt_gray);
  color: var(--brand_black);
  border-radius: 0;
  background: var(--neutral);
  font-size: 13px;
  padding: 9px 12px;
}
.iv-dialog textarea {
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  line-height: normal;
  font-family: "JetBrains Mono", monospace;
  min-height: 44px;
  border: 1px solid var(--lt_gray);
  color: var(--brand_black);
  width: 100%;
  border-radius: 0;
  background: var(--neutral);
  font-size: 13px;
  padding: 9px 12px;
  text-align: left;
}
.iv-history-banner {
  font-style: normal;
  font-variant: normal;
  font-stretch: normal;
  font-size: 14px;
  line-height: normal;
  font-family: "JetBrains Mono", monospace;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  z-index: 25;
  cursor: pointer;
  border-right: 0 none currentcolor;
  border-bottom: 0 none currentcolor;
  border-left: 0 none currentcolor;
  min-height: 56px;
  padding: 14px max(20px, calc((100vw - 1248px) / 2));
  background: var(--iv-orange-2);
  color: var(--BLACK);
  font-weight: 600;
  border-top: 1px solid var(--brand_black);
  border-radius: 0;
}
.iv-turnout button:hover,
.iv-dialog button:hover {
  background: var(--lt_gray);
}
.iv-turnout a,
.iv-dialog a {
  text-decoration: none;
}
.iv-turnout :focus,
.iv-dialog :focus {
  outline: none;
  box-shadow: none;
}
.iv-primary {
  background: var(--neutral) !important;
  color: var(--brand_black) !important;
}
.iv-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
}
.iv-controls label,
.iv-auth label,
.iv-dialog label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  line-height: normal;
  font-family: "JetBrains Mono", monospace;
}
.iv-controls input {
  width: 280px;
  max-width: 100%;
}
.iv-callers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.iv-caller {
  border-top-width: 2px;
  border-top-style: solid;
  border-top-color: var(--caller-color, var(--lt_gray));
  padding: 12px;
  background: color-mix( in srgb, var(--caller-color, #6f7e92) 12%, var(--white) );
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-content: start;
}
.iv-caller.iv-active {
  border-right-color: var(--brand_orange);
  border-bottom-color: var(--brand_orange);
  border-left-color: var(--brand_orange);
  border-top-color: var(--caller-color, var(--lt_gray));
  border-top-width: 4px;
  animation: iv-caller-background-pulse 1.8s ease-in-out infinite;
}
.iv-caller h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.iv-caller p {
  margin: 6px 0;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  font-size: 12px;
  line-height: 1.6;
  font-family: "JetBrains Mono", monospace;
}
.iv-muted {
  font-size: 13px;
  color: var(--gray);
}
.iv-baseline-note {
  font-size: 13px;
  color: var(--gray);
  max-width: 850px;
  line-height: 1.6;
}
.iv-caller time {
  color: var(--gray);
  font-size: 12px;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  line-height: 1.6;
  font-family: "JetBrains Mono", monospace;
}
#iv-map {
  width: 100%;
  height: 460px;
  overflow: hidden;
  touch-action: auto;
}
#iv-map svg {
  width: 100%;
  height: 100%;
}
#iv-map path {
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  stroke: var(--lt_gray);
  stroke-width: 0.8;
}
#iv-map path:hover,
#iv-map path[aria-pressed="true"] {
  stroke: var(--brand_black);
  stroke-width: 2;
}
.iv-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  font-size: 12px;
  line-height: normal;
  font-family: "JetBrains Mono", monospace;
  margin: 12px 0;
  justify-content: center;
  flex-wrap: wrap;
}
.iv-legend-gradient {
  background: linear-gradient(to right, var(--neutral), #2cddb4, #022b59);
  width: 190px;
  height: 10px;
}
.iv-percent-key {
  width: min(240px, 100%);
  display: grid;
  gap: 4px;
}
.iv-percent-bar {
  height: 10px;
}
.iv-percent-ticks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 0;
}
.iv-percent-ticks > :is(:nth-child(2), :nth-child(3)) {
  justify-self: start;
  transform: translateX(-50%);
}
.iv-percent-ticks > :last-child {
  justify-self: end;
}
.iv-table-wrap {
  overflow: auto;
}
.iv-turnout table {
  border-collapse: collapse;
  width: 100%;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  line-height: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.iv-turnout th {
  text-align: right;
  border-bottom: 1px solid var(--lt_gray);
  white-space: nowrap;
  padding: 10px 12px;
  vertical-align: middle;
  background: var(--neutral);
  font-size: 12px;
  font-weight: 500;
}
.iv-turnout td {
  text-align: right;
  border-bottom: 1px solid var(--lt_gray);
  white-space: nowrap;
  padding: 10px 12px;
  vertical-align: middle;
  background: var(--neutral);
}
.iv-turnout th:first-child,
.iv-turnout td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--neutral);
}
.iv-turnout td:first-child button {
  border: 0 none currentcolor;
  background: none;
  text-align: left;
  color: inherit;
  font-style: normal;
  font-variant: normal;
  font-weight: 500;
  font-stretch: normal;
  font-size: 12px;
  line-height: normal;
  font-family: "JetBrains Mono", monospace;
  min-height: 36px;
  padding: 8px 0;
}
.iv-turnout .iv-precinct-row td:first-child {
  padding-left: 28px;
}
.iv-turnout .iv-precinct-row {
  font-size: 12px;
}
.iv-turnout td small {
  display: block;
  white-space: normal;
  max-width: 175px;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
}
.iv-auth {
  max-width: 390px;
  display: grid;
  gap: 20px;
  margin: 30px 0;
}
.iv-auth[hidden] {
  display: none;
}
.iv-dialog {
  width: min(900px, calc(100% - 28px));
  max-height: 85dvh;
  padding: 26px;
  border: 1px solid var(--lt_gray);
  background: var(--white);
  color: var(--brand_black);
  border-radius: 4px;
}
.iv-dialog::backdrop {
  background: #0008;
}
.iv-dialog header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.iv-dialog h2 {
  margin: 0;
  font-style: normal;
  font-variant: normal;
  font-weight: 600;
  font-stretch: normal;
  font-size: 26px;
  line-height: normal;
  font-family: "IBM Plex Sans", sans-serif;
}
.iv-dialog form {
  display: grid;
  gap: 20px;
}
.iv-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: sticky;
  bottom: -26px;
  background: var(--white);
  padding: 15px 0;
}
.iv-precinct-field {
  display: grid;
  grid-template-columns: 1fr 160px;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--lt_gray);
}
.iv-precinct-field input {
  width: 100%;
}
.iv-precinct-field small {
  display: block;
  font-size: 12px;
  margin-top: 5px;
}
.iv-event p {
  margin: 5px 0;
}
.iv-event ul {
  padding-left: 20px;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  font-size: 12px;
  line-height: normal;
  font-family: "JetBrains Mono", monospace;
}
.iv-toasts {
  position: fixed;
  z-index: 50;
  display: grid;
  right: 16px;
  bottom: 68px;
  gap: 8px;
  max-width: 310px;
}
.iv-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0 none currentcolor;
  border-radius: 3px;
  background: color-mix( in srgb, var(--toast-color, var(--iv-paper)) 88%, transparent );
  color: var(--toast-text, var(--brand_black));
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  font-size: 13px;
  line-height: 1.35;
  font-family: "IBM Plex Sans", sans-serif;
  box-shadow: 0 2px 8px #0002;
  backdrop-filter: blur(6px);
}
.iv-toast button {
  border: 0 none currentcolor;
  background: none;
  color: inherit;
  cursor: pointer;
  flex: none;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 21px;
  line-height: 1;
}
#iv-error {
  border-left: 3px solid #c43b2f;
  padding: 12px 16px;
  margin: 18px 0;
}
body:has(.iv-turnout) .iv-civic-footer {
  padding-bottom: 90px;
}
#iv-status:empty {
  display: none;
}
[hidden] {
  display: none !important;
}
.iv-turnout .iv-row-call {
  display: block !important;
  background: var(--neutral) !important;
  color: var(--brand_black) !important;
  border: 1px solid var(--lt_gray) !important;
  padding: 8px 16px !important;
  margin-top: 10px;
  min-height: 40px !important;
}
.iv-turnout input[type="search"] {
  text-align: left;
}
.iv-turnout {
  max-width: 1320px;
  margin: auto;
  padding-right: 0;
  padding-left: 0;
  padding-top: 36px;
  padding-bottom: 100px;
}
.iv-turnout > .iv-turnout-intro {
  max-width: 850px;
  font-size: 16px;
  line-height: 1.6;
}
#iv-status {
  font-size: 13px;
  color: var(--gray);
}
.iv-turnout-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 30px 0 10px;
  border-top: 1px solid var(--lt_gray);
  border-bottom: 1px solid var(--lt_gray);
  padding: 20px 0;
}
.iv-turnout-summary span {
  display: block;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  font-size: 12px;
  line-height: normal;
  font-family: "JetBrains Mono", monospace;
}
.iv-turnout-summary strong {
  display: block;
  font-style: normal;
  font-variant: normal;
  font-weight: 500;
  font-stretch: normal;
  font-size: clamp(24px, 3vw, 36px);
  line-height: normal;
  font-family: "JetBrains Mono", monospace;
  margin-top: 8px;
}
.iv-map-context {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.iv-map-context h2 {
  margin: 0;
}
#iv-selection {
  min-height: 0;
  font-size: 12px;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  line-height: normal;
  font-family: "JetBrains Mono", monospace;
  margin: 14px 0;
}
.iv-turnout tr,
.iv-turnout tr:nth-child(even) {
  background: transparent;
}
.iv-turnout th button {
  border: 0 none currentcolor;
  background: transparent;
  font-style: inherit;
  font-variant: inherit;
  font-weight: inherit;
  font-stretch: inherit;
  font-size: inherit;
  line-height: inherit;
  font-family: inherit;
  padding: 8px 0;
  min-height: 36px;
  text-align: inherit;
}
.iv-turnout th button:hover {
  color: var(--brand_orange);
  background: transparent;
}
.iv-turnout tbody tr:hover > td {
  background: color-mix(in srgb, var(--neutral) 96%, var(--brand_black) 4%);
}
#iv-history {
  position: fixed;
  inset: auto 0 0;
  margin: 0;
  width: 100%;
  max-width: none;
  max-height: 86dvh;
  padding: 0 max(20px, calc((100vw - 1248px) / 2)) 24px;
  border-right: 0 none currentcolor;
  border-bottom: 0 none currentcolor;
  border-left: 0 none currentcolor;
  border-top: 1px solid var(--brand_black);
  border-radius: 0;
  background: var(--neutral);
  overscroll-behavior: contain;
}
#iv-history header {
  position: sticky;
  top: 0;
  padding: 16px 0;
  background: var(--neutral);
  border-bottom: 1px solid var(--lt_gray);
  z-index: 2;
  align-items: center;
}
#iv-history header h2 {
  font-size: 24px;
}
.iv-turnout-tooltip {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  width: 290px;
  max-width: calc(100vw - 16px);
  padding: 12px;
  background: var(--iv-paper);
  color: var(--brand_black);
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  font-size: 12px;
  line-height: 1.6;
  font-family: "JetBrains Mono", monospace;
  box-shadow: 4px 4px 10px color-mix(in srgb, var(--brand_black) 18%, transparent);
}
.iv-turnout-tooltip strong {
  display: block;
  font-size: 13px;
}
.iv-turnout-tooltip dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 14px;
  margin: 10px 0 0;
}
.iv-turnout-tooltip dt {
  margin: 0;
}
.iv-turnout-tooltip dd {
  margin: 0;
  text-align: right;
}
.iv-auth input {
  text-align: left;
}
.iv-caller-label {
  font-family: "IBM Plex Sans", sans-serif;
  border-left: 4px solid var(--caller-color);
  padding-left: 8px;
  display: inline-block;
  color: var(--brand_black);
}
.iv-event {
  border-left: 3px solid var(--caller-color);
  margin-right: 0;
  margin-left: 0;
  border-bottom: 0 none currentcolor;
  padding: 10px 12px;
  margin-top: 7px;
  margin-bottom: 7px;
  background: transparent;
}
#iv-caller-color {
  width: 72px;
  padding: 4px;
  cursor: pointer;
}
#iv-color-status {
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  font-size: 12px;
  line-height: normal;
  font-family: "JetBrains Mono", monospace;
}
#iv-history label:has(#iv-my-reports) {
  flex-direction: row;
  align-items: center;
  margin-top: 12px;
  min-height: 44px;
}
#iv-my-reports {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0 6px 0 0;
}
.iv-toast span {
  flex: 1;
}
body[data-turnout-mode="callers"] .iv-donate-link {
  background: var(--neutral) !important;
  color: var(--brand_black) !important;
  border: 1px solid var(--lt_gray) !important;
}
body[data-turnout-mode="callers"] .iv-primary:hover,
body[data-turnout-mode="callers"] .iv-row-call:hover,
body[data-turnout-mode="callers"] .iv-donate-link:hover {
  background: var(--lt_gray) !important;
}
#iv-map path.iv-calling-county {
  fill: var(--calling-color);
  animation: iv-calling-pulse 1.8s ease-in-out infinite;
}
.iv-invite-result {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: 12px 0;
}
.iv-invite-result label {
  display: grid;
  gap: 5px;
  flex: 1 1 280px;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  font-size: 12px;
  line-height: normal;
  font-family: "JetBrains Mono", monospace;
}
.iv-invite-result input {
  width: 100%;
  min-width: 0;
  text-align: left;
}
.iv-invite-result p {
  flex-basis: 100%;
  margin: 0;
  font-size: 13px;
}
.iv-current-draft {
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--lt_gray);
  border-bottom: 1px solid var(--lt_gray);
}
.iv-current-draft h2 {
  font-size: 24px;
  margin: 0 0 8px;
}
.iv-current-draft p {
  margin: 8px 0 12px;
}
.iv-sticky-callers {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  gap: 6px;
  padding: 6px max(12px, calc((100vw - 1264px) / 2));
  background: var(--white);
  border-bottom: 1px solid var(--lt_gray);
  overflow-x: auto;
}
.iv-sticky-caller {
  flex: 1 0 140px;
  min-width: 0;
  padding: 8px 10px;
  display: grid;
  gap: 3px;
  background: color-mix(in srgb, var(--caller-color) 12%, var(--white));
  color: var(--brand_black);
  position: relative;
}
.iv-sticky-caller strong {
  font-style: normal;
  font-variant: normal;
  font-weight: 600;
  font-stretch: normal;
  font-size: 13px;
  line-height: 1.3;
  font-family: "IBM Plex Sans", sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.iv-sticky-caller span {
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  font-size: 10px;
  line-height: 1.4;
  font-family: "JetBrains Mono", monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.iv-sticky-caller time {
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  font-size: 10px;
  line-height: 1.4;
  font-family: "JetBrains Mono", monospace;
}
.iv-sticky-name-short,
.iv-sticky-county-short {
  display: none;
}
.iv-sticky-caller.iv-active {
  animation: iv-caller-background-pulse 1.8s ease-in-out infinite;
}
.iv-turnout tbody#iv-rows > tr[style*="--row-caller-color"] > td {
  background: color-mix(in srgb, var(--row-caller-color) 18%, var(--neutral));
}
.iv-turnout tbody#iv-rows > tr[style*="--row-caller-color"]:hover > td {
  background: color-mix(in srgb, var(--row-caller-color) 26%, var(--neutral));
}
.iv-call-added[hidden] { display: none; }
.iv-call-added {
  display: block;
  font-style: normal;
  font-variant: normal;
  font-weight: 600;
  font-stretch: normal;
  font-size: 12px;
  line-height: 1.4;
  font-family: "JetBrains Mono", monospace;
  color: var(--brand_black);
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
  animation: iv-votes-rise 650ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.iv-call-added b {
  display: block;
  font-style: normal;
  font-variant: normal;
  font-weight: 600;
  font-stretch: normal;
  font-size: 24px;
  line-height: 1.15;
  font-family: "JetBrains Mono", monospace;
}
.iv-call-added em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  font-size: 10px;
  line-height: 1.3;
  font-family: "JetBrains Mono", monospace;
}
.iv-sticky-caller .iv-call-added {
  right: 8px;
}
.iv-sticky-caller .iv-call-added b {
  font-size: 18px;
}
.iv-sticky-caller .iv-call-added em {
  font-size: 9px;
}
.iv-shortcuts {
  margin: 18px 0;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  font-size: 13px;
  line-height: 1.7;
  font-family: "IBM Plex Sans", sans-serif;
}
.iv-shortcuts summary {
  cursor: pointer;
  font-weight: 600;
}
.iv-shortcuts kbd {
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  font-size: 12px;
  line-height: normal;
  font-family: "JetBrains Mono", monospace;
  padding: 2px 5px;
  border: 1px solid var(--lt_gray);
  border-radius: 3px;
}
.iv-event h3 {
  margin-top: 0;
  margin-right: 0;
  margin-left: 0;
  font-style: normal;
  font-variant: normal;
  font-weight: 600;
  font-stretch: normal;
  font-family: "IBM Plex Sans", sans-serif;
  margin-bottom: 3px;
  font-size: 18px;
  line-height: 1.2;
}
.iv-event h4 {
  margin-top: 0;
  margin-right: 0;
  margin-left: 0;
  font-style: normal;
  font-variant: normal;
  font-weight: 500;
  font-stretch: normal;
  font-family: "IBM Plex Sans", sans-serif;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.3;
}
.iv-event h5 {
  margin-top: 0;
  margin-right: 0;
  margin-left: 0;
  font-style: normal;
  font-variant: normal;
  font-weight: 500;
  font-stretch: normal;
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 3px;
  font-size: 12px;
  line-height: 1.4;
}
.iv-event .iv-event-start {
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  line-height: 1.6;
  font-family: "JetBrains Mono", monospace;
  margin: 3px 0;
  font-size: 12px;
}
.iv-report-block {
  display: inline-block;
  vertical-align: top;
  box-sizing: border-box;
  margin-top: 0;
  margin-right: 8px;
  margin-left: 0;
  padding: 6px 8px 6px 0;
  margin-bottom: 4px;
  background: transparent;
}
.iv-report-block strong {
  display: block;
  font-style: normal;
  font-variant: normal;
  font-weight: 600;
  font-stretch: normal;
  line-height: 1.4;
  font-family: "JetBrains Mono", sans-serif;
  overflow-wrap: anywhere;
  letter-spacing: -0.02em;
  font-size: 12px;
}
.iv-report-values {
  display: block;
  font-style: normal;
  font-variant: normal;
  font-weight: 500;
  font-stretch: normal;
  line-height: 1.4;
  font-family: "JetBrains Mono", monospace;
  margin: 3px 0 2px;
  font-size: 13px;
}
.iv-report-block small {
  display: block;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.3;
  background: var(--iv-neutral-2);
  padding: 2px;
}
.iv-correction-history {
  margin: 12px 0;
}
.iv-correction-history summary {
  cursor: pointer;
}
.iv-history-county {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 5px 0;
  padding: 4px 0;
  background: transparent;
  font-family: "JetBrains Mono", monospace !important;
}
.iv-history-county strong {
  font-family: "JetBrains Mono", monospace !important;
  font-size: 12px;
}
.iv-history-county span {
  font-style: normal;
  font-variant: normal;
  font-weight: 500;
  font-stretch: normal;
  line-height: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
}
.iv-chat-form {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--lt_gray);
}
.iv-chat-form textarea {
  width: 100%;
  box-sizing: border-box;
}
.iv-chat-form > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.iv-chat-form small {
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  font-size: 12px;
  line-height: 1.5;
  font-family: "IBM Plex Sans", sans-serif;
}
.iv-chat-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  font-size: 16px;
  line-height: 1.6;
  font-family: "IBM Plex Sans", sans-serif;
}
.iv-shortcut-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.iv-entry-actions kbd,
#iv-entry-close kbd {
  display: inline-block;
  padding: 3px 6px;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  font-size: 12px;
  line-height: normal;
  font-family: "JetBrains Mono", monospace;
  border: 1px solid var(--lt_gray);
  border-radius: 3px;
}
.iv-shortcuts-toggle {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  font-size: 12px;
  line-height: normal;
  font-family: "IBM Plex Sans", sans-serif;
}
#iv-search.iv-search-highlight {
  animation: iv-search-highlight 1.8s ease-out;
}
.iv-history-county small {
  font-size: 12px;
  background: var(--iv-neutral-2);
  padding: 2px;
}
.iv-report-blocks {
  margin: 7px 0 4px;
}
.iv-chat-event h5 {
  font-size: 12px;
}
.iv-chat-event .iv-chat-message {
  margin: 3px 0;
  font-size: 14px;
  line-height: 1.4;
}
.iv-page .iv-event h3.iv-h3 {
  font-size: 18px !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
}
.iv-caller > h3 {
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
}
.iv-caller-metadata {
  grid-column: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.iv-caller > .iv-call-added {
  position: static;
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  transform: none;
  animation-name: iv-card-votes-rise;
}
#iv-import pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#iv-import-preview section {
  margin-top: 24px;
}
#iv-import input[type="file"] {
  width: 100%;
  max-width: 100%;
}
.iv-turnout-tooltip .iv-tooltip-last-called {
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  font-size: 12px;
  line-height: 1.5;
  font-family: "JetBrains Mono", monospace;
  border-left: 2.5px solid currentcolor;
  padding-left: 8px;
}
.iv-caller.iv-call-complete {
  animation: iv-call-completed 1.2s ease-out 2;
  padding-right: 16px;
}
.iv-sticky-caller.iv-call-complete {
  animation: iv-call-completed 1.2s ease-out 2;
  padding-right: 82px;
  min-width: 210px;
}
.iv-shortcuts input {
  min-height: 0;
}
.iv-shortcut-actions button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 8px 12px;
  font-style: normal;
  font-variant: normal;
  font-weight: 500;
  font-stretch: normal;
  font-size: 13px;
  line-height: normal;
  font-family: "IBM Plex Sans", sans-serif;
}
.iv-shortcut-actions kbd {
  display: inline-block;
  padding: 3px 6px;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-stretch: normal;
  font-size: 12px;
  line-height: normal;
  font-family: "JetBrains Mono", monospace;
  border: 1px solid var(--lt_gray);
  border-radius: 3px;
}
.iv-shortcuts-toggle input {
  min-height: 0;
  margin: 0;
}
.iv-chat-event {
  width: fit-content;
  max-width: 80%;
  box-sizing: border-box;
  margin-left: auto;
  border-left: 0 none currentcolor;
  border-right: 3px solid var(--caller-color);
  text-align: right;
  padding: 6px 10px;
}
.iv-chat-event h3 {
  font-size: 15px;
}
.iv-page .iv-chat-event h3.iv-h3 {
  font-size: 15px !important;
}

.iv-turnout .iv-mobile-sort {
  display: none;
}

@media (max-width: 700px) {
  .iv-turnout-intro {
    font-size: 17px;
  }
  .iv-callers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .iv-controls {
    align-items: stretch;
  }
  .iv-controls label {
    max-width: 100%;
    width: 100%;
  }
  .iv-controls input,
  .iv-controls select {
    width: 100%;
  }
  .iv-dialog {
    padding: 18px;
  }
  .iv-precinct-field {
    grid-template-columns: 1fr 100px;
  }
  .iv-dialog header {
    flex-wrap: wrap;
  }
  .iv-entry-actions {
    bottom: -18px;
  }
  .iv-history-banner {
    font-size: 12px;
  }
  .iv-toasts {
    left: 14px;
  }
  .iv-caller {
    padding: 10px;
  }
  .iv-sticky-caller {
    flex-basis: calc((100vw - 42px) / 4);
    padding: 7px 6px;
    box-sizing: border-box;
  }

  .iv-sticky-caller .iv-sticky-name-full,
  .iv-sticky-caller .iv-sticky-county-full { display: none; }
  .iv-sticky-caller .iv-sticky-name-short,
  .iv-sticky-caller .iv-sticky-county-short { display: block; }
  .iv-sticky-caller span,
  .iv-sticky-caller time { font-size: 9px; }
  .iv-sticky-caller.iv-call-complete {
    min-width: 0;
    padding-right: 6px;
  }
  .iv-sticky-caller .iv-call-added {
    position: static;
    transform: none;
    text-align: left;
    animation-name: iv-card-votes-rise;
  }
  .iv-sticky-caller .iv-call-added b { font-size: 14px; }
  .iv-sticky-caller .iv-call-added em { font-size: 8px; }
}

@media (max-width: 650px) {
  .iv-turnout .iv-mobile-sort { display: flex; }
  .iv-turnout .iv-turnout-table,
  .iv-turnout-table tbody { display: block; width: 100%; }
  .iv-turnout-table thead { display: none; }
  .iv-turnout .iv-turnout-table tbody tr {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 10px;
    background: var(--neutral);
  }
  .iv-turnout .iv-turnout-table tbody tr[style*="--row-caller-color"] {
    background: color-mix(in srgb, var(--row-caller-color) 18%, var(--neutral));
  }
  .iv-turnout .iv-turnout-table td {
    display: block;
    min-width: 0;
    padding: 8px 4px;
    border: 0;
    font-size: 11px;
    text-align: center;
    white-space: normal;
    background: transparent;
  }
  .iv-turnout .iv-turnout-table td:first-child {
    position: static;
    grid-column: 1 / 4;
    padding: 8px 10px 4px;
    text-align: left;
  }
  .iv-turnout .iv-turnout-table td:first-child button {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .iv-turnout .iv-turnout-table td:nth-child(2) {
    grid-column: 4 / 6;
    padding: 8px 10px 4px 4px;
    text-align: right;
    font-size: 10px;
    line-height: 1.5;
  }
  .iv-turnout .iv-turnout-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.4;
  }
  .iv-turnout .iv-turnout-table td small {
    font-size: 10px;
    overflow-wrap: anywhere;
  }
  .iv-turnout .iv-turnout-table .iv-precinct-row td:first-child { padding-left: 18px; }
  .iv-turnout .iv-turnout-table td[colspan] { grid-column: 1 / -1; }

  .iv-event .iv-report-precinct,
  .iv-event > .iv-report-blocks {
    display: none;
  }
  .iv-turnout-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .iv-turnout-summary span {
    min-height: 2lh;
  }
  .iv-controls label {
    flex: 1 1 140px;
    min-width: 0;
    width: auto;
    gap: 4px;
  }
  .iv-controls input,
  .iv-controls select {
    min-width: 0;
  }
  .iv-turnout th,
  .iv-turnout td {
    padding: 8px 10px;
  }
  #iv-map {
    height: 330px;
  }
  .iv-map-context {
    gap: 12px;
  }
  .iv-map-context h2 {
    font-size: 23px;
  }
  #iv-history {
    padding-right: 16px;
    padding-left: 16px;
  }
  .iv-turnout {
    width: 100%;
    padding: 16px 12px 72px;
  }
  .iv-turnout > h1 {
    margin-top: 0;
    margin-bottom: 10px;
  }
  .iv-turnout > .iv-turnout-intro {
    margin-top: 0;
    margin-bottom: 12px;
  }
  .iv-turnout section {
    margin-top: 24px;
  }
  .iv-turnout .iv-section-heading.iv-section-heading-row {
    margin-bottom: 12px;
  }
  .iv-controls {
    margin-top: 12px;
    margin-bottom: 12px;
    gap: 8px;
  }
  .iv-auth {
    margin-top: 16px;
    margin-bottom: 16px;
    gap: 12px;
  }
  .iv-auth label {
    gap: 4px;
  }
  #iv-desk .iv-controls {
    align-items: center;
  }
  #iv-identity {
    flex-basis: 100%;
  }
  #iv-desk .iv-controls label {
    flex: 0 0 auto;
  }
  #iv-color-status:empty {
    display: none;
  }
  .iv-callers {
    gap: 6px;
  }
  .iv-caller {
    padding: 6px 8px;
    column-gap: 8px;
  }
  .iv-page .iv-caller h3 {
    margin: 0 0 2px;
  }
  .iv-caller-metadata {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 10px;
  }
  .iv-caller p {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
  }
  .iv-caller time {
    font-size: 11px;
    line-height: 1.4;
  }
  .iv-caller > .iv-call-added {
    grid-row: 1 / 3;
  }
  .iv-caller > h3 {
    grid-column: 1;
  }
  .iv-caller .iv-call-added b {
    font-size: 20px;
  }
  .iv-caller .iv-call-added em {
    font-size: 8px;
  }
  .iv-dialog {
    padding: 12px;
  }
  .iv-dialog header {
    margin-bottom: 12px;
  }
  .iv-dialog form {
    gap: 12px;
  }
  .iv-precinct-field {
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 8px;
  }
  .iv-entry-actions {
    bottom: -12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .iv-history-banner {
    min-height: 48px;
    padding: 10px 12px;
  }
  .iv-toasts {
    right: 12px;
    left: 12px;
    bottom: 60px;
    max-width: none;
  }
}

@media (max-width: 540px) {
  .iv-callers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .iv-report-block {
    width: 100%;
    margin-right: 0;
  }
  .iv-chat-event {
    max-width: 94%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #iv-map path.iv-calling-county {
    animation: none;
    fill-opacity: 0.8;
  }
  .iv-caller.iv-active {
    animation: none;
    background: color-mix( in srgb, var(--caller-color, #6f7e92) 22%, var(--white) );
  }
  .iv-sticky-caller.iv-active {
    animation: none;
    background: color-mix(in srgb, var(--caller-color) 22%, var(--white));
  }
  .iv-caller.iv-call-complete,
  .iv-sticky-caller.iv-call-complete,
  .iv-call-added {
    animation: none;
  }
  #iv-search.iv-search-highlight {
    animation: none;
    background: color-mix(in srgb, #2cddb4 28%, var(--white));
  }
}

@keyframes iv-calling-pulse {
  0%,
  100% {
    fill-opacity: 0.4;
  }
  50% {
    fill-opacity: 1;
  }
}

@keyframes iv-caller-background-pulse {
  0%,
  100% {
    background-color: color-mix(
      in srgb,
      var(--caller-color, #6f7e92) 12%,
      var(--white)
    );
  }
  50% {
    background-color: color-mix(
      in srgb,
      var(--caller-color, #6f7e92) 50%,
      var(--white)
    );
  }
}

@keyframes iv-call-completed {
  0%,
  100% {
    background-color: color-mix(in srgb, var(--caller-color) 12%, var(--white));
  }
  35% {
    background-color: color-mix(in srgb, var(--caller-color) 50%, var(--white));
  }
}

@keyframes iv-votes-rise {
  from {
    opacity: 0;
    transform: translateY(calc(-50% + 22px));
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

@keyframes iv-search-highlight {
  0%,
  45% {
    background: color-mix(in srgb, #2cddb4 28%, var(--white));
  }
  100% {
    background: var(--white);
  }
}

@layer iv-system {
  /* Shared important heading rules must be overridden inside their layer. */
  @media (max-width: 650px) {
    .iv-page .iv-caller h3 {
      font-size: 16px !important;
      line-height: 1.2 !important;
    }
  }
  .iv-page .iv-event h3.iv-h3 {
    font-size: 18px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
  }
  .iv-page .iv-chat-event h3.iv-h3 {
    font-size: 15px !important;
  }
}

@keyframes iv-card-votes-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.iv-history-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 12px;
}
.iv-history-toolbar > label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 260px;
  margin: 0;
}
.iv-history-toolbar select {
  flex: 1;
  width: auto;
  min-width: 0;
}
.iv-history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.iv-history-filters button {
  padding: 7px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  border: 1px solid var(--lt_gray);
  border-bottom: 3px solid var(--caller-color, var(--brand_black));
  background: var(--neutral);
  color: var(--brand_black);
  cursor: pointer;
}
.iv-history-filters button[aria-pressed="true"] {
  background: var(--brand_black);
  color: var(--white);
}

.iv-paywall {
  box-sizing: border-box;
  width: min(530px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(24px, 5vw, 44px);
  border: 0;
  box-shadow: 8px 8px 0 var(--iv-ink);
  background: var(--neutral);
  color: var(--brand_black);
}
.iv-paywall button, .iv-paywall a { font-family: "JetBrains Mono", monospace; }
.iv-paywall::backdrop { background: rgb(16 19 22 / 38%); }
.iv-turnout #iv-access-close { display: block; margin: -12px -12px 16px auto; padding: 6px 12px; background: transparent; border: 0; }
.iv-paywall #iv-access-title { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.04; letter-spacing: -0.04em; }
.iv-paywall p { margin: 16px 0; line-height: 1.5; }
.iv-paywall .iv-access-tier { font-weight: 600; margin: 22px 0 12px; }
.iv-access-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.iv-access-actions a { color: var(--brand_black); }
.iv-access-actions a:last-child { border: 1px solid var(--iv-ink); padding: 11px 16px; text-decoration: none; }
.iv-access-actions a:first-child { background: var(--brand_black); color: var(--white); padding: 12px 16px; text-decoration: none; }
#iv-member-content[hidden], #iv-history-open[hidden] { display: none; }

.iv-locked-preview > :not(.iv-caller-preview):not(#iv-summary):not(#iv-map),
.iv-locked-preview .iv-caller-metadata,
.iv-locked-preview .iv-call-added { display: none; }
.iv-locked-preview .iv-caller-preview { margin-top: 16px; }
