@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-roman-1.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-italic-1.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f5f1e8;
  --surface: #fbf9f4;
  --ink: #1c1a17;
  --muted: #5e574c;
  --rule: #d9d1c1;
  --field: #877e70;
  --red: #8e1b2b;
  --button-ink: #fbf9f4;
  --backdrop: rgb(28 26 23 / 0.36);
  --art-1: #5e574c;
  --art-2: #877e70;
  --art-3: #a9553a;
  --art-4: #3f4b66;
  --art-5: #b8ad99;
  --art-6: #6f6656;
  --art-7: #c8913d;
  --art-8: #2e2a24;
  --art-9: #d9d1c1;
  --art-dot: #bfb4a1;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --text-smaller: 0.875rem;
  --text-small: 0.9375rem;
  --text-body: 1.0625rem;
  --text-h3: 1.3125rem;
  --text-h2: 1.5rem;
  --text-h1: 2.125rem;
  --text-display: 2.75rem;
  --text-h1-wide: 3rem;
  --text-h2-wide: 1.75rem;
  --text-figure-wide: 3.5rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 3rem;
  --space-9: 4.5rem;
  --hit: 2.75rem;
  --compact-reach: calc((var(--control-compact) - var(--hit)) / 2 - 1px);
  --control-large: 3rem;
  --control-large-padding: 1.5rem;
  --control-large-size: 1rem;
  --control-large-weight: 500;
  --control-regular: 2.75rem;
  --control-regular-padding: 1rem;
  --control-regular-size: 1rem;
  --control-regular-weight: 500;
  --control-compact: 2rem;
  --control-compact-size: var(--text-small);
  --field-size: 1.0625rem;
  --field-height: 3rem;
  --plate: 20rem;
  --tab-bar-height: 3.5rem;
  --tab-bar-cover: calc(var(--tab-bar-height) + 1px + env(safe-area-inset-bottom));
  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  --column: min(100% - 2 * var(--gutter), 64rem);
  --quick: 120ms;
  --settle: 220ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #15130f;
    --surface: #1d1a16;
    --ink: #ede6d7;
    --muted: #a59c8c;
    --rule: #37322b;
    --field: #7d7466;
    --red: #e58c95;
    --button-ink: #15130f;
    --backdrop: rgb(0 0 0 / 0.6);
    --art-1: #a59c8c;
    --art-2: #7d7466;
    --art-3: #c9785c;
    --art-4: #8090b3;
    --art-5: #5a5247;
    --art-6: #8f8676;
    --art-7: #d6a457;
    --art-8: #cfc6b4;
    --art-9: #37322b;
    --art-dot: #50493f;
  }
}

@media (min-width: 60rem) {
  :root {
    --gutter: 48px;
    --field-height: 2.875rem;
  }
}

@media (min-width: 60rem) and (pointer: fine) {
  :root {
    --field-size: 1rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.5;
  font-optical-sizing: auto;
  font-kerning: normal;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-weight: 400;
  margin: 0 0 0.5rem;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
  line-height: 1.08;
  letter-spacing: -0.012em;
}

h2 {
  font-size: var(--text-h2);
  line-height: 1.2;
  letter-spacing: -0.005em;
}

h3 {
  font-size: var(--text-h3);
  line-height: 1.25;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--field);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color var(--quick) linear;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

::selection {
  background: var(--ink);
  color: var(--page);
}

code {
  font-family: var(--mono);
  font-size: 0.875em;
}

i,
em {
  font-style: italic;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: var(--space-3) var(--space-4);
  background: var(--ink);
  color: var(--button-ink);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  font-size: var(--text-h3);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand i {
  font-weight: 400;
}

a.brand {
  min-height: var(--hit);
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  padding-right: 1px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.1875rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.lead {
  color: var(--muted);
  max-width: 36rem;
}

label,
legend,
.field-title,
th,
.tile dt {
  font-size: var(--text-small);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.account-toggle {
  margin-left: auto;
}

.account {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  color: var(--muted);
}

.account-email {
  font-size: var(--text-small);
  font-style: italic;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.account a,
.account button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: var(--hit);
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: var(--text-body);
  font-weight: 400;
  text-align: left;
  text-decoration: none;
}

.account a:hover,
.account button:hover {
  text-decoration: underline;
  text-decoration-color: var(--field);
  text-underline-offset: 0.25em;
}

.account .tag {
  align-self: flex-start;
  margin: var(--space-1) 0 var(--space-3);
  font-style: italic;
}

.account[popover] {
  position: fixed;
  inset: 4.5rem var(--gutter) auto auto;
  width: min(20rem, calc(100vw - 2 * var(--gutter)));
  height: auto;
  margin: 0;
  padding: var(--space-3) var(--space-6) var(--space-4);
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  overflow: visible;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--field);
}

.account[popover]:not(:popover-open) {
  display: none;
}

.account[popover]:popover-open {
  display: flex;
  animation: settle var(--settle) ease-out;
}

.account[popover] .account-email {
  padding: var(--space-2) 0 var(--space-3);
  margin-bottom: var(--space-1);
  border-bottom: 1px solid var(--rule);
}

main {
  display: block;
  width: var(--column);
  margin-inline: auto;
  padding: 2rem 0 3rem;
  min-width: 0;
}

.section {
  margin: 0 0 3rem;
}

.section-heading,
.section > h2:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: var(--hit);
  margin: 0 0 var(--space-3);
}

.section-heading h2 {
  margin: 0;
}

form {
  margin: 0;
}

.field {
  margin-bottom: var(--space-6);
  min-width: 0;
}

label,
.field-title {
  display: block;
  color: var(--muted);
  margin-bottom: 0.375rem;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: 0.375rem;
}

.label-row label {
  margin: 0;
}

.hint {
  display: block;
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.45;
  margin-top: var(--space-2);
}

.hint a {
  color: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: var(--field-size);
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--ink);
  background-color: var(--surface);
  border: 1px solid var(--field);
  border-radius: 0;
  padding: var(--space-2) var(--space-3);
  min-height: var(--field-height);
  transition: border-color var(--quick) linear, background-color var(--quick) linear;
}

input:not([type="checkbox"], [type="radio"], [type="file"]),
select {
  height: var(--field-height);
}

textarea {
  line-height: 1.5;
  padding-block: var(--space-3);
}

input[type="number"],
input[type="date"] {
  font-variant-numeric: tabular-nums;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  align-self: center;
  margin: 0 calc(var(--space-1) * -1) 0 var(--space-2);
  color: var(--muted);
  background-color: transparent;
  -webkit-mask-image: none;
  mask-image: none;
  background-image:
    linear-gradient(45deg, transparent calc(50% - 0.75px), currentColor calc(50% - 0.75px), currentColor calc(50% + 0.75px), transparent calc(50% + 0.75px)),
    linear-gradient(-45deg, transparent calc(50% - 0.75px), currentColor calc(50% - 0.75px), currentColor calc(50% + 0.75px), transparent calc(50% + 0.75px));
  background-position: center;
  background-size: 0.75rem 0.75rem;
  background-repeat: no-repeat;
  cursor: pointer;
}

input[type="search"]::-webkit-search-cancel-button:hover {
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  font-style: italic;
  opacity: 1;
}

select {
  appearance: none;
  padding-right: 2.5rem;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%, currentColor calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(-45deg, transparent 50%, currentColor 50%, currentColor calc(50% + 1px), transparent calc(50% + 1px));
  background-position: right 22px center, right 16px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  text-overflow: ellipsis;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--ink);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

input:disabled,
select:disabled,
textarea:disabled {
  color: var(--muted);
  border-style: dashed;
  cursor: not-allowed;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: var(--hit);
}

.password-field input::-ms-reveal {
  display: none;
}

.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--hit);
  height: 100%;
  min-height: 0;
  padding: 0;
  color: var(--muted);
}

.password-toggle:hover {
  color: var(--ink);
}

.password-toggle:focus-visible {
  outline-offset: -4px;
}

.password-eye {
  width: 1.375rem;
  height: 1.375rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
}

.password-toggle[aria-pressed="false"] .password-eye-slash {
  display: none;
}

input[type="checkbox"] {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--field);
  border-radius: 0;
  background: var(--surface);
  appearance: none;
  cursor: pointer;
}

input[type="checkbox"]:checked {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: inset 0 0 0 4px var(--surface);
}

input[type="checkbox"]:indeterminate {
  border-color: var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) center / 0.625rem 2px no-repeat var(--surface);
  box-shadow: none;
}

input[type="radio"] {
  accent-color: var(--ink);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0 var(--space-6);
}

button,
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font: inherit;
  font-size: var(--control-regular-size);
  font-weight: var(--control-regular-weight);
  line-height: 1.2;
  letter-spacing: 0.01em;
  min-height: var(--control-regular);
  padding: var(--space-2) var(--control-regular-padding);
  color: var(--ink);
  background: none;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--quick) linear, color var(--quick) linear, border-color var(--quick) linear, text-decoration-color var(--quick) linear;
}

.sign-in .primary,
.admin-form .primary,
.form-actions button {
  min-height: var(--control-large);
  padding-inline: var(--control-large-padding);
  font-size: var(--control-large-size);
  font-weight: var(--control-large-weight);
}

.record-actions button,
.row-actions button,
.image-actions button,
.log-entry-actions button,
.payment-actions button,
.sale .add-payment,
.checklist-button,
.file-list li .danger,
.screen-heading .secondary,
.section-heading .secondary {
  flex: none;
  width: max-content;
  min-height: var(--control-compact);
  font-size: var(--control-compact-size);
  white-space: nowrap;
}

.record-actions button::after,
.row-actions button::after,
.image-actions button::after,
.log-entry-actions button::after,
.payment-actions button::after,
.sale .add-payment::after,
.checklist-button::after,
.file-list li .danger::after,
.screen-heading .secondary::after,
.section-heading .secondary::after {
  content: "";
  position: absolute;
  inset: var(--compact-reach) -1px;
}

.primary {
  min-height: var(--control-large);
  padding-inline: var(--control-large-padding);
  background: var(--ink);
  border-color: var(--ink);
  color: var(--button-ink);
}

.primary:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.secondary,
.quiet,
.danger {
  min-width: var(--hit);
  padding-inline: 0;
  font-size: var(--text-body);
  font-weight: 400;
  background: transparent;
  border-color: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--field);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.secondary:hover,
.quiet:hover,
.danger:hover {
  text-decoration-color: currentColor;
}

.danger {
  color: var(--red);
  text-decoration-color: currentColor;
}

button:disabled,
button:disabled:hover {
  cursor: not-allowed;
  color: var(--muted);
  text-decoration: none;
}

.primary:disabled,
.primary:disabled:hover {
  color: var(--button-ink);
  opacity: 0.45;
}

.full {
  width: 100%;
}

.stack {
  display: grid;
  gap: 0.75rem;
}

.text-link {
  min-height: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  background: none;
  border: 0;
  text-decoration: underline;
  text-decoration-color: var(--field);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

.text-link::after {
  content: "";
  position: absolute;
  inset: calc((1.2em - var(--hit)) / 2 - 1px) calc(-1 * var(--space-2) - 1px);
}

.back-link {
  display: flex;
  margin: var(--space-6) auto 0;
}

.message {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin: 0 0 var(--space-5);
  padding: 0;
  font-size: var(--text-body);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
  animation: settle var(--settle) ease-out;
}

.message::before {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  transform: translateY(-0.3em);
}

.message[data-tone="error"] {
  color: var(--red);
}

.message:not([data-tone]) {
  align-items: center;
  min-height: var(--hit);
  color: var(--muted);
}

.message:not([data-tone])::before {
  transform: none;
  background: var(--field);
  animation: breathe 1.2s ease-in-out infinite;
}

.empty {
  max-width: 36rem;
  margin: 0;
  padding: var(--space-4) 0 0;
  font-style: italic;
  color: var(--ink);
  animation: settle var(--settle) ease-out;
}

.empty::before {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  margin-bottom: var(--space-3);
  background: var(--field);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

caption {
  text-align: left;
  font-size: var(--text-small);
  font-style: italic;
  color: var(--muted);
  padding-bottom: 0.75rem;
}

th {
  text-align: left;
  color: var(--muted);
  padding: 0 1rem 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: bottom;
  white-space: nowrap;
}

td {
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}

tbody tr {
  transition: background-color var(--quick) linear;
}

tbody tr:hover {
  background: var(--surface);
}

td:last-child,
th:last-child {
  padding-right: 0;
}

.gallery-name {
  font-weight: 500;
}

#gallery-rows tr:has(.tag[data-kind="removed"]) td {
  color: var(--muted);
}

#gallery-rows tr:has(.tag[data-kind="removed"]) .gallery-name {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

#gallery-rows tr.unfinished-deletion td {
  color: var(--muted);
}

#gallery-rows tr.unfinished-deletion .gallery-name {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.deletion-detail span {
  display: block;
}

.deletion-detail .deletion-started {
  margin-top: var(--space-1);
  font-size: var(--control-compact-size);
}

#gallery-rows button[aria-disabled="true"],
#gallery-rows button[aria-disabled="true"]:hover {
  cursor: not-allowed;
  color: var(--muted);
  text-decoration: none;
}

.slug {
  font-size: var(--text-small);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

#gallery-rows tr:not(.unfinished-deletion) td:nth-child(6) {
  white-space: nowrap;
}

.dupree {
  --column: min(100% - 2 * var(--gutter), 80rem);
}

#galleries-table {
  table-layout: fixed;
}

#galleries-table th:nth-child(4),
#galleries-table th:nth-child(5) {
  width: 6.5rem;
}

#galleries-table th:nth-child(6) {
  width: 7rem;
}

#galleries-table th:nth-child(7) {
  width: 8rem;
}

#gallery-rows td {
  overflow-wrap: anywhere;
}

#gallery-rows .email-part {
  white-space: normal;
}

@media (min-width: 46.01rem) {
  #galleries-table th:nth-child(3) {
    width: 12.5rem;
  }

  #gallery-rows .gallery-name,
  #gallery-rows .slug,
  #gallery-rows .email-cell {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  #gallery-rows .email-cell .email-part {
    display: inline;
    white-space: nowrap;
  }

  #gallery-rows .email-cell wbr {
    display: none;
  }
}

@media (min-width: 46.01rem) and (max-width: 59.99rem) {
  #galleries-table th,
  #gallery-rows td {
    padding-right: 0.625rem;
  }

  #galleries-table th:nth-child(3) {
    width: 12rem;
  }

  #galleries-table th:nth-child(4) {
    width: 6rem;
  }

  #galleries-table th:nth-child(5) {
    width: 5.625rem;
  }

  #galleries-table th:nth-child(7) {
    width: 6.75rem;
  }

  #galleries-table th:last-child,
  #gallery-rows td:last-child {
    padding-right: 0;
  }
}

.admin-screen .lead {
  margin-bottom: var(--space-7);
}

.email-cell {
  overflow-wrap: anywhere;
}

.record-meta:has(> .meta-part) {
  display: flex;
  flex-wrap: wrap;
  margin-left: -1.1em;
  clip-path: inset(-0.5em 0 -0.5em 1.1em);
}

.meta-part {
  min-width: 0;
  padding-left: 1.1em;
  background: radial-gradient(circle closest-side, currentColor 65%, transparent 100%) 0.45em 55% / 3px 3px no-repeat;
}

.email-part,
.meta-part {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.person-email {
  min-width: 0;
  overflow-wrap: anywhere;
}

.person-email .tag {
  margin-left: var(--space-2);
}

#activity-table td:first-child {
  white-space: nowrap;
  font-size: var(--text-small);
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  justify-self: start;
  padding: 0;
  border: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  white-space: nowrap;
}

.tag[data-kind="pending"],
.tag[data-kind="unfinished"],
.tag[data-status="reserved"] {
  font-style: italic;
}

.tag[data-kind="none"],
.tag[data-kind="staff"],
.tag[data-kind="hidden"],
.tag[data-status="not_for_sale"] {
  color: var(--muted);
}

.tag[data-kind="removed"],
.tag[data-kind="unfinished"] {
  color: var(--red);
}

.tag[data-status="sold"]::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--red);
  transform: translateY(-0.05em);
}

.tag[data-kind="owner"] {
  font-weight: 500;
}

.tag[data-kind="accepted"],
.tag[data-kind="active"] {
  color: var(--ink);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  justify-content: flex-end;
}

.row-message {
  max-width: 18rem;
  margin: var(--space-2) 0 0 auto;
  font-size: var(--text-small);
  font-style: italic;
  text-align: right;
  color: var(--muted);
}

.row-message[data-tone="error"] {
  color: var(--red);
}

dialog {
  max-width: min(30rem, calc(100vw - 2rem));
  padding: var(--space-7) var(--space-6) var(--space-6);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--field);
  border-radius: 0;
}

dialog[open] {
  animation: settle var(--settle) ease-out;
}

dialog::backdrop {
  background: var(--backdrop);
}

dialog h2 {
  font-size: var(--text-h2);
  margin-bottom: 0.75rem;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-2) var(--space-6);
  margin-top: 1.5rem;
}

.confirm-delete {
  max-width: min(32rem, calc(100vw - 2rem));
}

.confirm-delete h2 {
  margin-bottom: var(--space-4);
}

.confirm-delete .hint {
  font-style: italic;
}

.confirm-delete .field {
  margin: var(--space-6) 0 0;
}

.confirm-delete .message {
  margin: var(--space-4) 0 0;
}

.typed-name {
  display: block;
  max-width: 100%;
  margin-top: var(--space-1);
  font-size: var(--field-size);
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.placeholder-note {
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-size: var(--text-small);
}

.doc {
  max-width: 48rem;
}

.doc h1 {
  margin-bottom: 1rem;
}

.doc h3 {
  margin: 1.75rem 0 0.4rem;
}

.doc p,
.doc li {
  max-width: 42rem;
}

.doc ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.doc li {
  margin-bottom: 0.4rem;
}

.doc li::marker {
  color: var(--muted);
}

.doc code {
  padding: 0.05rem 0.25rem;
  background: var(--surface);
  border: 1px solid var(--rule);
}

.code,
.doc .code {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  max-height: 32rem;
  overflow: auto;
  font-family: var(--mono);
  font-size: var(--text-smaller);
  line-height: 1.55;
  background: var(--surface);
  border: 1px solid var(--rule);
  white-space: pre;
}

.addresses {
  margin: 0 0 1.5rem;
}

.addresses dt {
  font-weight: 500;
  margin-top: 1.25rem;
}

.addresses dd {
  margin: 0.45rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.5rem;
}

.doc .address {
  flex: 1 1 18rem;
  min-width: 0;
  min-height: var(--hit);
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  overflow-wrap: anywhere;
  background: var(--surface);
  border: 1px solid var(--rule);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-6);
  width: var(--column);
  margin-inline: auto;
  padding: var(--space-5) 0 calc(var(--space-7) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  font-size: var(--text-small);
  color: var(--muted);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--hit);
  min-height: var(--hit);
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--ink);
}

.sign-in-page {
  min-height: 100vh;
  min-height: 100svh;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.cover {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: calc(100vh - 2rem);
  min-height: calc(100svh - 2rem);
  border: 1px solid var(--rule);
}

.cover-page {
  display: contents;
}

.cover-head {
  display: flex;
  justify-content: center;
  padding: var(--space-7) var(--space-6) 0;
}

.cover-head .brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  font-size: var(--text-h3);
}

.sign-in {
  display: grid;
  align-content: center;
  justify-items: center;
  width: auto;
  margin: 0;
  padding: var(--space-8) var(--space-6) var(--space-7);
}

.sign-in .panel {
  width: min(100%, 24rem);
  margin: 0;
}

.has-stored-session .sign-in,
.has-stored-session .cover-head,
.has-stored-session .cover .site-footer {
  visibility: hidden;
}

.sign-in h1 {
  font-size: var(--text-display);
  text-align: center;
  margin-bottom: var(--space-7);
}

.sign-in h1:has(+ .lead) {
  margin-bottom: var(--space-4);
}

.sign-in h1:has(+ .lead[hidden]) {
  margin-bottom: var(--space-7);
}

.sign-in .lead {
  margin-bottom: var(--space-7);
  text-wrap: pretty;
}

.sign-in h1 + .lead {
  text-align: center;
  text-wrap: balance;
}

.sign-in h1:focus {
  outline: none;
}

.sign-in form .primary {
  margin-top: var(--space-2);
}

.sign-in .placeholder-note {
  display: flex;
  justify-content: center;
  margin-top: var(--space-5);
  padding-top: 0;
  border-top: 0;
}

.signed-in {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  margin-top: var(--space-7);
}

.signed-in-as {
  justify-self: stretch;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-small);
  font-style: italic;
}

.cover-plate {
  order: 3;
  justify-self: center;
  width: min(100% - 2 * var(--space-6), 24rem);
  min-height: 7.5rem;
}

.sign-in-art {
  --ink: var(--art-dot);
  display: block;
  width: 100%;
  height: 7.5rem;
  background: var(--surface) radial-gradient(circle closest-side, var(--ink) 46%, transparent 52%) 50% 50% / 23px 23px space;
}

.has-stored-session .sign-in-art {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.cover .site-footer {
  order: 4;
  width: auto;
  margin: 0;
  justify-content: center;
  padding: var(--space-2) var(--space-6) var(--space-3);
  border-top: 0;
}

body.app {
  display: flex;
  flex-direction: column;
}

body.app > main {
  flex: 1 0 auto;
}

.app-header {
  width: var(--column);
  margin-inline: auto;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--rule);
}

.running-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 4rem;
}

.app-header .brand {
  flex: none;
  justify-content: center;
  min-width: var(--hit);
  margin-left: -6px;
}

.app-header .brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.app-gallery {
  flex: 1;
  min-width: 0;
  font-size: var(--text-body);
  font-style: italic;
  line-height: 1.2;
  color: var(--ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.nav-toggle,
.account-toggle {
  flex: none;
  min-height: var(--hit);
  padding: 0;
  font-size: var(--text-body);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--field);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.nav-toggle {
  padding-inline: var(--space-2);
  margin-right: calc(-1 * var(--space-2));
}

.nav-toggle:hover,
.account-toggle:hover {
  text-decoration-color: currentColor;
}

.running-head .account-toggle {
  display: none;
}

.app-nav[popover] {
  position: fixed;
  inset: 0 0 0 auto;
  width: 88%;
  max-width: 26rem;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: calc(var(--space-6) + env(safe-area-inset-top)) var(--space-6) calc(var(--space-7) + env(safe-area-inset-bottom));
  overflow-y: auto;
  border: 0;
  border-left: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1), display 260ms allow-discrete, overlay 260ms allow-discrete;
}

.app-nav[popover]:popover-open {
  transform: none;
}

@starting-style {
  .app-nav[popover]:popover-open {
    transform: translateX(100%);
  }
}

.app-nav::backdrop {
  background: var(--backdrop);
}

.nav-sheet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--rule);
  font-size: var(--text-small);
  font-style: italic;
  color: var(--muted);
}

.nav-sheet-gallery {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.nav-entries {
  display: grid;
}

.nav-entries a {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: var(--space-3) 0;
  font-size: var(--text-h3);
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}

.nav-entries a + a {
  border-top: 1px solid var(--rule);
}

.nav-entries a:hover {
  text-decoration: underline;
  text-decoration-color: var(--field);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.nav-entries a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.app-nav .account[popover] {
  position: static;
  display: grid;
  width: auto;
  margin: var(--space-6) 0 0;
  padding: var(--space-4) 0 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--ink);
  background: none;
  animation: none;
}

.app-nav .account[popover] .account-email {
  margin: 0;
  padding: var(--space-2) 0 var(--space-3);
  border: 0;
}

.nav-close {
  min-width: var(--hit);
  margin-top: var(--space-6);
}

main.app-main {
  padding: 2rem 0 var(--space-9);
}

main.app-main:focus {
  outline: none;
}

.screen-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  margin-bottom: var(--space-7);
}

.screen-heading h1 {
  margin: 0;
}

.screen-heading h1:focus {
  outline: none;
}

.screen-heading h1:focus-visible {
  outline: 2px solid var(--red);
}

.admin-form {
  max-width: 34rem;
}

@media (max-width: 39.99rem) {
  .admin-form .primary {
    width: 100%;
  }
}

.invite-person {
  margin-top: 3rem;
}

.next-step {
  margin: -0.35rem 0 1.5rem;
  font-size: var(--text-small);
}

.empty a {
  color: var(--ink);
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(0.25rem);
  }
}

@keyframes breathe {
  50% {
    opacity: 0.25;
  }
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-group(root) {
    animation-duration: var(--settle);
  }
}

@media (max-width: 46rem) {
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  table,
  tbody,
  tr,
  td,
  caption {
    display: block;
  }

  tbody tr:hover {
    background: none;
  }

  tr {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--rule);
  }

  tbody tr:first-child {
    border-top: 1px solid var(--rule);
  }

  td {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: var(--space-3);
    align-items: baseline;
    padding: var(--space-1) 0;
    border: 0;
  }

  td::before {
    content: attr(data-label);
    font-size: var(--text-small);
    font-style: italic;
    color: var(--muted);
  }

  .admin-screen tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-1) var(--space-3);
    align-items: baseline;
    padding: var(--space-4) 0;
  }

  .admin-screen td {
    display: block;
    min-width: 0;
    padding: 0;
  }

  .admin-screen td::before {
    content: none;
  }

  td .tag {
    white-space: normal;
  }

  td.actions-cell:empty {
    display: none;
  }

  td.actions-cell {
    grid-column: 1 / -1;
    padding-top: var(--space-3);
  }

  .row-message {
    max-width: none;
    margin: var(--space-2) 0 0;
    text-align: right;
  }

  #gallery-rows tr {
    grid-template-areas:
      "name access"
      "contact invite"
      "slug actions"
      "onboarded actions";
  }

  #gallery-rows td:nth-child(1) {
    grid-area: name;
    font-size: var(--text-h3);
  }

  #gallery-rows td:nth-child(2) {
    grid-area: slug;
  }

  #gallery-rows td:nth-child(3) {
    grid-area: contact;
  }

  #gallery-rows td:nth-child(4) {
    grid-area: invite;
    justify-self: end;
  }

  #gallery-rows td:nth-child(5) {
    grid-area: access;
    justify-self: end;
  }

  #gallery-rows td:nth-child(6) {
    grid-area: onboarded;
    font-size: var(--text-small);
    color: var(--muted);
  }

  #gallery-rows td:nth-child(7) {
    grid-area: actions;
    align-self: end;
    justify-self: end;
    padding-top: 0;
  }

  #gallery-rows .row-actions {
    flex-direction: column;
    align-items: flex-end;
  }

  #gallery-rows td:nth-child(7):has(.row-message) {
    grid-area: auto;
    grid-column: 1 / -1;
    justify-self: stretch;
    padding-top: var(--space-2);
  }

  #gallery-rows td:nth-child(7):has(.row-message) .row-actions {
    flex-direction: row;
  }

  #gallery-rows tr.unfinished-deletion {
    grid-template-areas:
      "name access"
      "detail detail"
      "slug actions";
  }

  #gallery-rows tr.unfinished-deletion td:nth-child(3) {
    grid-area: detail;
  }

  #gallery-rows tr.unfinished-deletion td:nth-child(4) {
    grid-area: access;
    justify-self: end;
  }

  #gallery-rows tr.unfinished-deletion td:nth-child(5) {
    grid-area: actions;
    align-self: end;
    justify-self: end;
    padding-top: 0;
  }

  #gallery-rows tr.unfinished-deletion td:nth-child(5):has(.row-message) {
    grid-area: auto;
    grid-column: 1 / -1;
    justify-self: stretch;
    padding-top: var(--space-2);
  }

  #gallery-rows tr.unfinished-deletion td:nth-child(5):has(.row-message) .row-actions {
    flex-direction: row;
  }

  #people-rows tr {
    grid-template-areas:
      "email email"
      "level actions"
      "invite actions";
  }

  #people-rows td:nth-child(1) {
    grid-area: email;
  }

  #people-rows td:nth-child(2) {
    grid-area: level;
  }

  #people-rows td:nth-child(3) {
    grid-area: invite;
  }

  #people-rows td:nth-child(4) {
    grid-area: actions;
    align-self: end;
    justify-self: end;
    padding-top: 0;
  }

  #activity-rows tr {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "what what"
      "who who"
      "when outcome";
  }

  #activity-rows td:nth-child(1) {
    grid-area: when;
  }

  #activity-rows td:nth-child(2) {
    grid-area: who;
    font-size: var(--text-small);
    color: var(--muted);
  }

  #activity-rows td:nth-child(3) {
    grid-area: what;
    font-weight: 500;
  }

  #activity-rows td:nth-child(4) {
    grid-area: outcome;
    justify-self: end;
    text-align: right;
    padding-top: var(--space-1);
  }

  .slug {
    white-space: normal;
  }

  #activity-table td:first-child {
    white-space: nowrap;
    align-self: center;
    padding-top: var(--space-1);
  }
}

@media (min-width: 60rem) {
  h1 {
    font-size: var(--text-h1-wide);
  }

  h2 {
    font-size: var(--text-h2-wide);
  }

  main {
    padding: 3rem 0 4rem;
  }

  :where(.dupree) .running-head {
    min-height: 0;
    padding-top: var(--space-7);
    gap: 0;
  }

  :where(.dupree) .app-header {
    border-bottom: 0;
  }

  :where(.dupree) .app-header .brand {
    min-width: 0;
    margin-left: 0;
    line-height: var(--hit);
  }

  :where(.dupree) .app-header .brand-mark {
    display: none;
  }

  :where(.dupree) .app-header .brand-name {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }

  :where(.dupree) .app-gallery {
    flex: 1;
    display: block;
    margin-left: var(--space-4);
    padding-left: var(--space-4);
    border-left: 1px solid var(--field);
    line-height: 1.1;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  :where(.dupree) .nav-toggle {
    display: none;
  }

  :where(.dupree) .running-head .account-toggle {
    display: inline-flex;
    margin-left: var(--space-6);
    font-size: 1rem;
    font-weight: 400;
    anchor-name: --account;
  }

  :where(.dupree) .app-nav[popover],
  :where(.dupree) .app-nav[popover]:not(:popover-open),
  :where(.dupree) .app-nav[popover]:popover-open {
    position: static;
    display: block;
    width: var(--column);
    max-width: none;
    height: auto;
    margin: 0 auto;
    padding: var(--space-4) 0 0;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--rule);
    background: none;
    transform: none;
    transition: none;
  }

  :where(.dupree) .nav-sheet-head,
  :where(.dupree) .nav-close {
    display: none;
  }

  :where(.dupree) .nav-entries {
    display: flex;
    flex-wrap: wrap;
    gap: 0 28px;
  }

  :where(.dupree) .nav-entries a {
    display: block;
    min-height: 0;
    padding: 6px 0 14px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--muted);
  }

  :where(.dupree) .nav-entries a + a {
    border-top: 0;
  }

  :where(.dupree) .nav-entries a:hover,
  :where(.dupree) .nav-entries a[aria-current="page"] {
    color: var(--ink);
  }

  :where(.dupree) .app-nav .account[popover] {
    position: fixed;
    inset: 4.75rem var(--gutter) auto auto;
    display: flex;
    width: auto;
    min-width: 18rem;
    max-width: calc(100vw - 2 * var(--gutter));
    margin: 0;
    padding: var(--space-3) var(--space-6) var(--space-4);
    border: 1px solid var(--field);
    background: var(--surface);
  }

  :where(.dupree) .app-nav .account[popover]:not(:popover-open) {
    display: none;
  }

  :where(.dupree) .app-nav .account[popover]:popover-open {
    animation: settle var(--settle) ease-out;
  }

  :where(.dupree) .app-nav .account[popover] .account-email {
    margin-bottom: var(--space-1);
    border-bottom: 1px solid var(--rule);
  }

  main.app-main {
    padding: var(--space-8) 0 var(--space-9);
  }

  .screen-heading {
    gap: var(--space-4) var(--space-6);
    margin-bottom: var(--space-8);
  }

  td.email-cell {
    overflow-wrap: normal;
    white-space: nowrap;
  }

  .sign-in-page {
    padding: max(2rem, env(safe-area-inset-top)) max(2rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(2rem, env(safe-area-inset-left));
  }

  .cover {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr;
    min-height: calc(100vh - 4rem);
    min-height: calc(100svh - 4rem);
  }

  .cover-page {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-column: 2;
    grid-row: 1;
    padding: 0 var(--space-8);
  }

  .cover-head {
    padding: var(--space-8) 0 0;
  }

  .sign-in {
    padding-inline: 0;
  }

  .sign-in h1 {
    font-size: var(--text-h1-wide);
  }

  .cover-plate {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    place-items: center;
    width: auto;
    justify-self: stretch;
    padding: var(--space-8);
    border-right: 1px solid var(--rule);
  }

  .sign-in-art {
    width: min(100%, 30rem, (100vh - 4rem - 2 * var(--space-8) - 2px) * 4 / 5);
    width: min(100%, 30rem, (100svh - 4rem - 2 * var(--space-8) - 2px) * 4 / 5);
    height: auto;
    aspect-ratio: 4 / 5;
    background-size: 37px 37px;
  }
}

@supports (position-anchor: --account) {
  @media (min-width: 60rem) {
    :where(.dupree) .app-nav .account[popover]:popover-open {
      position-anchor: --account;
      inset: auto;
      top: anchor(bottom);
      right: anchor(right);
      margin-top: var(--space-2);
    }
  }
}

@supports not selector(:popover-open) {
  .running-head .nav-toggle,
  .running-head .account-toggle,
  .nav-sheet-head,
  .nav-close {
    display: none;
  }

  .app-nav[popover] {
    position: static;
    display: block;
    width: var(--column);
    max-width: none;
    height: auto;
    margin: 0 auto;
    padding: var(--space-2) 0 0;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--rule);
    background: none;
    transform: none;
    transition: none;
  }

  .app-nav .account[popover] {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0 0 var(--space-2);
    gap: 0 var(--space-6);
    border: 0;
    border-top: 1px solid var(--rule);
    background: none;
    animation: none;
  }

  .app-nav .account[popover] .account-email {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .app-nav .account a,
  .app-nav .account button {
    width: auto;
  }

  @media (max-width: 59.99rem) {
    .nav-entries {
      display: flex;
      flex-wrap: wrap;
      gap: 0 var(--space-6);
    }

    .nav-entries a {
      min-height: var(--hit);
      padding: 0;
      font-size: var(--text-body);
    }

    .nav-entries a + a {
      border-top: 0;
    }
  }
}

.nav-group {
  display: contents;
}

.nav-group-label,
.panel-head,
.panel-foot {
  display: none;
}

@media (min-width: 64rem) {
  body.app:has(.nav-entries[data-current]) {
    --desk-foot-height: 5.5rem;
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    grid-template-rows: 1fr auto;
  }

  body.app:has(.nav-entries[data-current]) > .app-header {
    display: none;
  }

  .app-nav[popover]:has(.nav-entries[data-current]) {
    position: sticky;
    inset: 0 auto auto 0;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    display: flex;
    flex-direction: column;
    width: auto;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: var(--space-7) var(--space-6) 0;
    overflow-y: auto;
    border: 0;
    border-right: 1px solid var(--rule);
    background: none;
    transform: none;
    transition: none;
  }

  .app-nav:has(.nav-entries[data-current]) .nav-sheet-head,
  .app-nav:has(.nav-entries[data-current]) .nav-close {
    display: none;
  }

  body.app:has(.nav-entries[data-current]) > main.app-main {
    grid-column: 2;
    grid-row: 1;
  }

  body.app:has(.nav-entries[data-current]) > .site-footer {
    grid-column: 2;
    grid-row: 2;
    align-content: flex-start;
    align-items: baseline;
    min-height: var(--desk-foot-height);
    padding: var(--space-4) 0 var(--space-6);
    font-size: var(--text-smaller);
    line-height: 1.5;
  }

  body.app:has(.nav-entries[data-current]) > .site-footer a {
    min-width: 0;
    min-height: 0;
  }

  .panel-head {
    display: grid;
    margin: 0 0 var(--space-6);
    font-size: 1rem;
    line-height: 1.375;
    color: var(--ink);
  }

  .panel-gallery {
    min-height: 1lh;
    font-size: var(--text-body);
    font-style: italic;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .app-nav .nav-entries[data-current] {
    display: block;
  }

  .nav-group {
    display: block;
  }

  .nav-group-label {
    display: block;
    margin: var(--space-5) 0 var(--space-1);
    font-size: var(--text-smaller);
    font-style: italic;
    line-height: 1.5;
    color: var(--muted);
  }

  .nav-entries[data-current] a {
    position: relative;
    display: block;
    min-height: 0;
    padding: 5px 0;
    border-top: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--muted);
  }

  .nav-entries[data-current] a:hover,
  .nav-entries[data-current] a[aria-current="page"] {
    color: var(--ink);
  }

  .nav-entries[data-current] .nav-count {
    position: absolute;
    inset: 0 0 auto auto;
    margin: 0;
    padding: inherit;
  }

  .panel-foot {
    position: sticky;
    bottom: 0;
    display: grid;
    justify-items: start;
    min-height: var(--desk-foot-height);
    margin-top: auto;
    padding: var(--space-4) 0 var(--space-6);
    border-top: 1px solid var(--rule);
    background: var(--page);
    font-size: var(--text-smaller);
    line-height: 1.5;
    color: var(--muted);
  }

  .panel-email {
    max-width: 100%;
    min-height: 1lh;
    font-style: italic;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .panel-account {
    min-height: 0;
    margin-top: var(--space-1);
    padding: 0;
    border: 0;
    font-size: var(--text-small);
    font-weight: 400;
    text-decoration: underline;
    text-decoration-color: var(--field);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
    anchor-name: --account;
  }

  .panel-account:hover {
    text-decoration-color: currentColor;
  }

  .app-nav:has(.nav-entries[data-current]) .account[popover] {
    position: fixed;
    inset: auto auto calc(var(--space-6) + 1.125rem + var(--space-2)) var(--space-6);
    display: flex;
    width: auto;
    min-width: 18rem;
    max-width: calc(100vw - 2 * var(--gutter));
    margin: 0;
    padding: var(--space-3) var(--space-6) var(--space-4);
    border: 1px solid var(--field);
    background: var(--surface);
  }

  .app-nav:has(.nav-entries[data-current]) .account[popover]:not(:popover-open) {
    display: none;
  }

  .app-nav:has(.nav-entries[data-current]) .account[popover]:popover-open {
    animation: settle var(--settle) ease-out;
  }

  .app-nav:has(.nav-entries[data-current]) .account[popover] .account-email {
    margin-bottom: var(--space-1);
    border-bottom: 1px solid var(--rule);
  }
}

@supports (position-anchor: --account) {
  @media (min-width: 64rem) {
    .app-nav:has(.nav-entries[data-current]) .account[popover]:popover-open {
      position-anchor: --account;
      inset: auto;
      bottom: anchor(top);
      left: anchor(left);
      margin: 0 0 var(--space-2);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after,
  ::backdrop {
    animation: none !important;
    transition: none !important;
  }
}

.table-wrap tbody[aria-busy="true"] {
  opacity: 0.55;
  transition: opacity var(--quick) linear var(--quick);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  margin-top: -1px;
  padding: var(--space-4) 0 0;
  border-top: 1px solid var(--rule);
}

.pager-range {
  margin: 0;
  font-style: italic;
  font-variant-numeric: tabular-nums;
}

.pager-turns {
  display: flex;
  gap: var(--space-6);
}

@media (min-width: 60rem) {
  .pager {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: var(--space-3) 0;
    background: var(--page);
  }
}

.tab-bar {
  display: none;
}

@media (max-width: 63.99rem) {
  html:has(> body.with-tab-bar) {
    scroll-padding-bottom: calc(var(--tab-bar-cover) + var(--space-4));
  }

  body.with-tab-bar {
    padding-bottom: var(--tab-bar-cover);
  }

  .with-tab-bar .site-footer {
    padding-bottom: var(--space-7);
  }

  .with-tab-bar .pager {
    bottom: var(--tab-bar-cover);
  }

  .tab-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, auto);
    padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    border-top: 1px solid var(--rule);
    background: var(--surface);
    transition: transform var(--settle) ease-out;
  }

  .keyboard-up .tab-bar {
    visibility: hidden;
    transform: translateY(100%);
    transition: transform var(--settle) ease-out, visibility 0s var(--settle);
  }

  .with-tab-bar.keyboard-up .app-nav[popover] {
    bottom: var(--keyboard-cover, 0px);
    max-height: var(--visible-height, 88dvh);
  }

  .tab-bar a,
  .tab-bar button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: var(--tab-bar-height);
    padding: 0;
    border: 0;
    font-size: var(--text-small);
    font-weight: 400;
    letter-spacing: 0;
    color: var(--muted);
    text-decoration: none;
  }

  .tab-bar a:hover,
  .tab-bar button:hover,
  .tab-bar [aria-current="page"],
  .tab-bar .holds-current {
    color: var(--ink);
  }

  .tab-bar [aria-current="page"]::before,
  .tab-bar .holds-current::before {
    content: "";
    position: absolute;
    inset: -1px 22% auto;
    height: 2px;
    background: var(--red);
  }

  .tab-label {
    position: relative;
  }

  .tab-bar a[data-nav="enquiries"] .tab-label {
    margin-right: calc(0.2rem + 3.5ch);
  }

  .tab-bar .nav-count {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 0.2rem;
  }

  .with-tab-bar .app-nav[popover] {
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 88vh;
    max-height: 88dvh;
    padding: var(--space-3) var(--gutter) calc(var(--space-4) + env(safe-area-inset-bottom));
    border-left: 0;
    border-top: 1px solid var(--field);
    transform: translateY(100%);
  }

  .with-tab-bar .app-nav[popover]:popover-open {
    transform: none;
  }

  @starting-style {
    .with-tab-bar .app-nav[popover]:popover-open {
      transform: translateY(100%);
    }
  }

  .with-tab-bar .app-nav::before {
    content: "";
    display: block;
    width: 2.5rem;
    height: 3px;
    margin: 0 auto var(--space-3);
    background: var(--rule);
  }

  .with-tab-bar .nav-sheet-head {
    padding-right: calc(var(--hit) + var(--space-4));
    border-bottom: 0;
  }

  .with-tab-bar .nav-sheet-gallery {
    display: none;
  }

  .with-tab-bar .nav-entries {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--space-6);
    padding-top: var(--space-1);
    border-top: 1px solid var(--rule);
  }

  .with-tab-bar .nav-entries a {
    min-height: var(--hit);
    padding: var(--space-1) 0;
    font-size: var(--text-body);
  }

  .with-tab-bar .nav-entries a + a {
    border-top: 0;
  }

  .with-tab-bar .nav-group-label {
    display: block;
    grid-column: 1 / -1;
    margin: var(--space-2) 0 0;
    padding-top: var(--space-2);
    border-top: 1px solid var(--rule);
    font-size: var(--text-smaller);
    font-style: italic;
    color: var(--muted);
  }

  .with-tab-bar .app-nav .account[popover] {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 var(--space-6);
    margin-top: var(--space-5);
    padding-top: var(--space-3);
    border-top-color: var(--rule);
  }

  .with-tab-bar .app-nav .account[popover] .account-email {
    flex-basis: 100%;
    padding: 0;
  }

  .with-tab-bar .app-nav .account a,
  .with-tab-bar .app-nav .account button {
    width: auto;
    text-decoration: underline;
    text-decoration-color: var(--field);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
  }

  .with-tab-bar .app-nav .account a[href="/connect"] {
    display: none;
  }

  .with-tab-bar .nav-close {
    position: absolute;
    top: var(--space-4);
    right: var(--gutter);
    margin: 0;
  }
}

@supports not selector(:popover-open) {
  body.with-tab-bar {
    padding-bottom: 0;
  }

  .tab-bar,
  .with-tab-bar .app-nav::before {
    display: none;
  }
}

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

.picker-choices {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--field);
  border-top: 0;
  background: var(--surface);
}

.picker-choices li {
  display: grid;
  min-height: var(--hit);
  align-content: center;
  padding: var(--space-2) var(--space-4);
  border-top: 1px solid var(--rule);
}

.picker-choices [role="option"] {
  cursor: pointer;
}

.picker-choices [aria-selected="true"] {
  box-shadow: inset 3px 0 0 var(--red);
}

.choice-name {
  font-size: var(--text-body);
  line-height: 1.3;
}

.picker-choices .record-meta {
  overflow-wrap: anywhere;
}

.choice-new .choice-name,
.picker-none,
.picker-problem {
  font-style: italic;
}

.picker-none,
.picker-problem {
  color: var(--muted);
}

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

.picker-floating {
  position: relative;
}

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

.picker-panel {
  border: 1px solid var(--field);
  border-top: 0;
  background: var(--surface);
}

.picker-panel .picker-choices {
  border: 0;
}

.picker-floating .picker-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
}

.find {
  position: relative;
}

.find input[type="search"] {
  width: 100%;
}

.find-key {
  display: none;
}

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

.find-results {
  margin-top: var(--space-6);
}

.find-note {
  margin: 0;
  padding-bottom: var(--space-3);
  font-style: italic;
  color: var(--muted);
}

.result-group {
  margin: 0 0 var(--space-6);
}

.result-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin: 0;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--ink);
  font-size: var(--text-small);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--muted);
}

.result-group ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-group li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-4);
  border-bottom: 1px solid var(--rule);
}

.result-link {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  column-gap: var(--space-4);
  min-height: 4rem;
  padding: var(--space-3) 0;
  color: var(--ink);
  text-decoration: none;
}

.result-group li.no-picture .result-link {
  grid-template-columns: minmax(0, 1fr);
}

a.entry:hover .entry-name,
a.entry:hover .entry-title,
a.owed-row:hover .owed-title i,
a.purchase:hover .record-title i,
a.lot-entry:hover .record-title i,
a.contact-enquiry:hover .contact-enquiry-works,
.presentation-link:hover .presentation-link-title,
.analytics-link:hover .analytics-link-title,
.top-viewed a:hover .record-title i,
.viewed-row:has(.viewed-title:hover) .viewed-title i,
.picker-choices [role="option"]:hover .choice-name,
.result-link:hover .record-title i,
.result-link:hover .result-name {
  text-decoration: underline;
  text-decoration-color: var(--field);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.result-picture {
  display: block;
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  background: var(--rule);
}

.result-lines {
  display: grid;
  min-width: 0;
}

.result-lines .record-title {
  font-weight: 400;
}

.result-lines .record-meta {
  overflow-wrap: anywhere;
}

.result-name {
  font-size: var(--text-body);
  line-height: 1.3;
}

.result-side {
  display: grid;
  justify-items: end;
  text-align: right;
}

.result-side .price {
  font-size: var(--text-body);
  font-variant-numeric: tabular-nums;
}

.result-side .status {
  font-size: var(--text-small);
  font-style: italic;
  color: var(--muted);
}

.result-side .text-link,
.result-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--hit);
}

.result-side .text-link::after {
  right: 0;
}

.result-more {
  margin-top: var(--space-1);
}

.home-find {
  margin: 0 0 var(--space-7);
}

@media (max-width: 63.99rem) {
  #screen:has(> .home-find.finding) > :not(.screen-heading, .home-find) {
    display: none;
  }

  .with-tab-bar .app-nav .find {
    margin-bottom: var(--space-4);
  }

  .with-tab-bar .app-nav:has(.find.finding) :is(.nav-entries, .account) {
    display: none;
  }

  .with-tab-bar .app-nav .find-results {
    margin-top: var(--space-5);
  }
}

@media (min-width: 64rem) {
  .home-find {
    display: none;
  }

  .app-nav .find {
    margin: 0 0 var(--space-5);
  }

  .app-nav .find input[type="search"] {
    height: 2.5rem;
    min-height: 0;
    padding: 0 2.25rem 0 var(--space-3);
    font-size: var(--text-small);
  }

  .app-nav .find-key {
    position: absolute;
    top: 1.25rem;
    right: var(--space-3);
    display: block;
    padding: 0 0.4em;
    border: 1px solid var(--rule);
    font-size: var(--text-smaller);
    line-height: 1.5;
    color: var(--muted);
    transform: translateY(-50%);
    pointer-events: none;
  }

  .app-nav .find input:not(:placeholder-shown) ~ .find-key {
    display: none;
  }

  .app-nav:has(.find.finding) {
    z-index: 30;
  }

  .app-nav .find-results {
    position: fixed;
    top: var(--find-top, 8.75rem);
    left: var(--space-6);
    z-index: 40;
    width: 32rem;
    max-width: calc(100vw - 2 * var(--space-6));
    max-height: calc(100dvh - var(--find-top, 8.75rem) - var(--space-6));
    margin: 0;
    padding: var(--space-6) var(--space-6) var(--space-3);
    overflow-y: auto;
    border: 1px solid var(--field);
    background: var(--surface);
  }

  .app-nav .find-results .result-link {
    min-height: 0;
  }
}
