@font-face {
  font-family: "Crimson Text";
  src: url("/original-tools/fonts/4ae9d3b753e5c22857626cb9a0ee1e9d31c5dba278f10f0ccbf9771f6a01b4bf.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Crimson Text";
  src: url("/original-tools/fonts/974b551138fca66807897b7ab23343afa89058fa77f131bc73ecd7ae92b79652.woff") format("woff");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0d161d;
  --bg-raised: #101c25;
  --surface: #17232c;
  --surface-2: #21333e;
  --surface-3: #2b424c;
  --text: #e6e9e9;
  --text-soft: #becacf;
  --muted: #9aadb5;
  --line: #2b3d48;
  --line-strong: #4c6874;
  --gold: #d9bd86;
  --teal: #91c6c4;
  --gold-bright: #f0d7a5;
  --ember: #cb8962;
  --ember-bright: #dfa27e;
  --danger: #e6a099;
  --success: #97c6b4;
  --focus: #f0d7a5;
  --shadow: 0 1rem 2.75rem rgb(0 0 0 / 22%);
  --radius: 0.375rem;
  --radius-small: 0.25rem;
  --content: 92rem;
  --reading: 50rem;
  --font-display: "Crimson Text", Georgia, serif;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-height: 4.625rem;
  font-family: var(--font-sans);
  font-synthesis: none;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

.home-browse {
  display: grid;
  gap: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.home-browse > p {
  margin: 0;
  color: var(--text-soft);
}

.home-browse-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.5rem;
}

.home-browse-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--bg-raised);
}

.home-browse-link small {
  color: var(--muted);
  white-space: nowrap;
}

html {
  min-width: 18rem;
  scroll-padding-top: calc(var(--header-height) + 0.75rem);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -12rem, rgb(78 100 108 / 18%), transparent 38rem),
    var(--bg);
  font-size: 0.9375rem;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  color: inherit;
  font-family: var(--font-sans);
  font-size: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
}

a:hover {
  color: var(--gold-bright);
}

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

:is(h1, h2, h3, h4, h5, h6)[tabindex="-1"]:not([role]):focus {
  outline: none;
}

::selection {
  color: var(--bg);
  background: var(--gold-bright);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.125rem, 4vw, 2.625rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.5rem, 2.25vw, 1.75rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.0625rem;
}

h5,
h6 {
  font-size: 1rem;
}

p {
  margin: 0 0 0.75rem;
}

code,
pre {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

hr {
  margin: 1.25rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.625rem 1rem;
  color: var(--bg);
  border: 1px solid var(--gold-bright);
  border-radius: var(--radius-small);
  background: var(--gold-bright);
  box-shadow: var(--shadow);
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  color: var(--bg);
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgb(14 24 31 / 96%);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  width: min(calc(100% - 3rem), var(--content));
  min-height: var(--header-height);
  margin-inline: auto;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--gold-bright);
}

.brand-emblem {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1;
}

.brand-hub {
  color: var(--muted);
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-navigation {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.site-header .nav-link {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  gap: 0.5rem;
  color: var(--text-soft);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.site-header .nav-link:hover,
.site-header .nav-link[aria-current="page"],
.header-database[open] > summary {
  color: var(--gold);
  background: #1d2a33;
}

.header-database {
  position: relative;
}

.header-database > summary {
  list-style: none;
}

.header-database > summary::-webkit-details-marker {
  display: none;
}

.header-database > summary::after {
  width: 0.375rem;
  height: 0.375rem;
  margin-left: 0.125rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: translateY(-0.125rem) rotate(45deg);
}

.header-database[open] > summary::after {
  transform: translateY(0.125rem) rotate(225deg);
}

.database-quick-links {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 23rem;
  padding: 0.75rem;
  gap: 0.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.625rem;
  background: #14212b;
  box-shadow: var(--shadow);
}

.database-quick-links > .nav-link {
  grid-column: 1 / -1;
  color: var(--teal);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  margin-bottom: 0.25rem;
}

.database-quick-link {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  color: var(--text-soft);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  text-decoration: none;
}

.database-quick-link:hover,
.database-quick-link[aria-current="page"] {
  color: var(--gold);
  background: var(--surface-2);
}

.site-header .header-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.875rem;
}

.menu-toggle,
.header-search,
.header-account {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  gap: 0.5rem;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"],
.header-search:hover,
.header-account:hover,
.header-search[aria-current="page"] {
  color: var(--gold);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.header-search::before {
  width: 1rem;
  height: 1rem;
  background: currentColor;
  content: "";
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10' cy='10' r='6.5' fill='none' stroke='white' stroke-width='1.6'/%3E%3Cpath d='m15 15 6 6' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.account-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 0.875rem;
  border-left: 1px solid var(--line);
}

.account-link {
  display: inline-block;
  max-width: 8rem;
  padding-block: 0.6875rem;
  overflow: hidden;
  color: var(--teal);
  font-size: 0.8125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-logout {
  min-height: 2.75rem;
  padding: 0.25rem 0;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  white-space: nowrap;
  cursor: pointer;
}

.header-logout:hover {
  color: var(--gold);
}

.site-main {
  width: min(calc(100% - 3rem), var(--content));
  margin-inline: auto;
  padding: 2rem 0 2.5rem;
}

.route-view {
  min-width: 0;
}

.page-header {
  position: relative;
  margin-bottom: 1.75rem;
  padding: 0.25rem 0 1.125rem;
  border-bottom: 1px solid var(--line);
}

.page-header::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: min(9rem, 35%);
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  content: "";
}

.page-header h1 {
  max-width: 40ch;
}

.page-header-row,
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.page-header-row > div:first-child,
.section-heading > div:first-child {
  min-width: 0;
}

.page-actions,
.card-actions,
.empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.page-actions {
  flex: none;
}

.eyebrow {
  margin-bottom: 0.375rem;
  color: var(--ember);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  max-width: 72ch;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.muted {
  color: var(--muted);
}

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 2.5%), transparent 45%),
    var(--surface);
  box-shadow:
    inset 0 1px rgb(240 215 165 / 4%),
    0 0.5rem 1.5rem rgb(0 0 0 / 8%);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.625rem;
}

.button {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.4375rem 1rem;
  gap: 0.375rem;
  color: #172126;
  border: 1px solid var(--gold);
  border-radius: var(--radius-small);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow:
    inset 0 1px rgb(255 255 255 / 25%),
    0 0.25rem 0.75rem rgb(0 0 0 / 16%);
  font-size: 0.875rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.button:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]) {
  color: #111b20;
  border-color: var(--gold-bright);
  background: linear-gradient(180deg, #f6e4be, var(--gold-bright));
  box-shadow:
    inset 0 1px rgb(255 255 255 / 32%),
    0 0.375rem 1rem rgb(0 0 0 / 22%);
  transform: translateY(-1px);
}

.button:active:not(:disabled):not(.disabled):not([aria-disabled="true"]) {
  box-shadow: inset 0 1px 0.25rem rgb(0 0 0 / 22%);
  transform: translateY(0);
}

.button.secondary {
  color: var(--text);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
  box-shadow: inset 0 1px rgb(255 255 255 / 4%);
}

.button.secondary:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]) {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: linear-gradient(180deg, #304a52, var(--surface-3));
}

.button.danger {
  color: #f3c2bd;
  border-color: #8a5653;
  background: linear-gradient(180deg, #412d2b, #302120);
}

.button.danger:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]) {
  color: #1c1111;
  border-color: var(--danger);
  background: var(--danger);
}

button:disabled,
.button.disabled,
.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  filter: saturate(0.6);
}

.text-link {
  font-weight: 700;
}

.field {
  display: grid;
  min-width: 0;
  gap: 0.375rem;
}

.field > label {
  color: var(--text-soft);
  font-size: 0.8125rem;
  font-weight: 650;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0.4375rem 0.6875rem;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: rgb(12 19 24 / 86%);
  box-shadow: inset 0 1px 0.25rem rgb(0 0 0 / 18%);
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.9;
}

input:hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled) {
  border-color: #6b8087;
  background: var(--bg-raised);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  background: var(--bg-raised);
  box-shadow:
    inset 0 1px 0.25rem rgb(0 0 0 / 18%),
    0 0 0 1px rgb(216 181 119 / 18%);
}

input:disabled,
select:disabled,
textarea:disabled {
  color: var(--muted);
  background: var(--surface);
  cursor: not-allowed;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.125rem;
  min-height: 1.125rem;
  height: 1.125rem;
  padding: 0;
  accent-color: var(--gold);
  vertical-align: middle;
}

input[type="range"] {
  padding-inline: 0;
  accent-color: var(--gold);
}

input[type="color"] {
  padding: 0.1875rem;
}

input[type="file"] {
  padding: 0.3125rem;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0.875rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

legend {
  padding-inline: 0.375rem;
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
}

.search-toolbar {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(10rem, auto) auto;
  margin-bottom: 1rem;
  padding: 0.75rem;
  gap: 0.625rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(110deg, rgb(216 181 119 / 4%), transparent 30%),
    var(--surface);
  box-shadow: inset 0 1px rgb(240 215 165 / 4%);
}

.form-error,
.error {
  padding: 0.75rem 0.875rem;
  color: #f3c0bb;
  border: 1px solid #865350;
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-small);
  background: #302220;
  overflow-wrap: anywhere;
}

.error {
  margin-bottom: 1rem;
}

.error strong,
.error p {
  display: block;
  margin: 0;
}

.error p {
  margin-top: 0.25rem;
}

.empty {
  display: grid;
  min-height: 9rem;
  align-content: center;
  justify-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgb(216 181 119 / 4%), transparent 45%),
    var(--bg-raised);
  box-shadow: inset 0 1px rgb(240 215 165 / 4%);
  text-align: center;
}

.empty p {
  max-width: 42rem;
  margin-inline: auto;
  color: var(--muted);
}

.empty-actions {
  justify-content: center;
  margin-top: 0.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.625rem;
  padding: 0.125rem 0.5rem;
  color: var(--gold-bright);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: var(--surface-2);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.section-block {
  margin-top: 1.25rem;
}

.section-heading {
  margin-bottom: 0.75rem;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.home-index {
  display: grid;
  max-width: 78.5rem;
  margin-inline: auto;
  gap: 1.875rem;
}

.home-mast {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.5rem;
  padding: 2.25rem 2.625rem;
  overflow: hidden;
  border: 1px solid #31414a;
  border-radius: 0.75rem;
  background: #1a2830;
}

.home-mast::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #14222a 8%, #14222ae8 45%, #14222a99),
    url("/brand/hero.webp") right 48% / cover no-repeat;
  opacity: 0.72;
  content: "";
  pointer-events: none;
}

.home-title {
  min-width: 0;
  max-width: 48rem;
}

.home-kicker {
  margin-bottom: 0.625rem;
  color: var(--gold);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-title h1 {
  margin-bottom: 0.625rem;
  color: #f0e8dc;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.home-title .lede {
  color: #adbdc2;
  font-size: 0.875rem;
}

.home-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.home-search .field {
  min-width: 0;
}

.home-search label {
  color: #b5c7cc;
  font-size: 0.6875rem;
  font-weight: 400;
}

.home-search input {
  min-height: 3rem;
  background: rgb(12 23 30 / 95%);
  border-color: #40535d;
  border-radius: 0.4375rem;
}

.home-search .button {
  min-height: 3rem;
  padding-inline: 1.125rem;
  color: #e0d2b5;
  border-color: #536367;
  background: #1b2d36;
  font-size: 0.8125rem;
}

.home-search .button:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]) {
  color: var(--gold-bright);
  background: var(--surface-2);
  transform: none;
}

.home-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.75rem;
  margin: 0;
  padding: 0.5rem 0 0.5rem 1.75rem;
  border-left: 1px solid #45525a;
}

.home-totals > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.25rem;
}

.home-totals dt {
  color: #a5b6bc;
  font-size: 0.625rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-totals dd {
  margin: 0;
  color: #e6e3d8;
  font-size: 1.625rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.home-totals .home-count-unavailable {
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: normal;
}

.home-play-link {
  display: grid;
  justify-self: center;
  justify-items: center;
  max-width: 100%;
  padding: 0.375rem 0.75rem;
  gap: 0.375rem;
  border-radius: var(--radius-small);
  font-size: 0.8125rem;
  text-align: center;
}

.home-play-link img {
  width: 6rem;
  height: auto;
  object-fit: contain;
}

.home-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9375rem;
}

.home-section-heading h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 400;
}

.home-overview {
  color: var(--teal);
  font-size: 0.75rem;
  text-decoration: none;
}

.home-task-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.625rem;
}

.home-task {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-items: center;
  min-height: 6rem;
  padding: 1.125rem 0.875rem;
  gap: 0.75rem;
  color: #d7e3e6;
  border: 1px solid #273b48;
  border-radius: 0.5rem;
  background: var(--surface);
  text-decoration: none;
}

.home-task:hover,
.home-task:focus-visible {
  color: var(--gold-bright);
  border-color: #55757e;
  background: var(--surface-2);
}

.home-task-copy {
  display: grid;
  gap: 0.25rem;
  overflow-wrap: anywhere;
}

.home-task-copy strong {
  font-size: 0.8125rem;
  font-weight: 600;
}

.home-task-copy small {
  color: var(--muted);
  font-size: 0.6875rem;
  line-height: 1.45;
}

.home-task-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gold);
  background: currentColor;
  mask: var(--task-icon) center / contain no-repeat;
}

.home-task:nth-child(n + 4) .home-task-icon {
  color: var(--teal);
}

.home-task--database {
  --task-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='m8 4 4 3 4-3 3 3-2 3v10H7V10L5 7l3-3Z M9.5 12h5'/%3E%3C/g%3E%3C/svg%3E");
}

.home-task--recipes {
  --task-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M6 3h10a2 2 0 0 1 2 2v16H8a2 2 0 0 1-2-2V3Z M6 17h9M10 7h4M10 11h4'/%3E%3C/g%3E%3C/svg%3E");
}

.home-task--artisan {
  --task-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 19 7.5-7.5M9.5 5.5l3-3 3 3-1.5 1.5 6 6-3 3-6-6-1.5 1.5-3-3zM3 21l3-1-2-2z'/%3E%3C/g%3E%3C/svg%3E");
}

.home-task--map {
  --task-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M3.5 6l5-2.5 7 2.5 5-2.5v14.5l-5 2.5-7-2.5-5 2.5zM8.5 3.5V18M15.5 6v14.5'/%3E%3C/g%3E%3C/svg%3E");
}

.home-task--planner {
  --task-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M5 5h14v14H5zM8 3v4M16 3v4M8 11h3M8 15h8M14 11h2'/%3E%3C/g%3E%3C/svg%3E");
}

.home-task--guides {
  --task-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M3.5 5.5c3-1 5.8-.3 8.5 2v11c-2.7-2.3-5.5-3-8.5-2zM20.5 5.5c-3-1-5.8-.3-8.5 2v11c2.7-2.3 5.5-3 8.5-2zM12 7.5v11'/%3E%3C/g%3E%3C/svg%3E");
}

.tool-row {
  display: grid;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.tool-row-title {
  font-weight: 700;
}

.tool-row-detail {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.tool-row:hover {
  color: var(--gold-bright);
  background: rgb(27 45 54 / 72%);
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.tool-row {
  grid-template-columns: minmax(9rem, 0.65fr) minmax(0, 2fr) auto;
  min-height: 3.75rem;
  padding: 0.75rem 0.625rem;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  transition:
    color 150ms ease,
    background-color 150ms ease,
    padding 150ms ease;
}

.tool-row:last-child {
  border-bottom: 0;
}

.tool-row:hover,
.tool-row:focus-visible {
  padding-inline: 0.875rem 0.375rem;
}

.tool-row-action {
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.875rem;
}

.stat {
  position: relative;
  display: grid;
  min-height: 6rem;
  align-content: center;
  padding: 1rem;
  gap: 0.25rem;
  overflow: hidden;
}

.stat::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 3rem;
  height: 1px;
  background: var(--gold);
  content: "";
  opacity: 0.45;
}

.stat strong {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat span {
  color: var(--text-soft);
  font-size: 0.8125rem;
}

.result-summary {
  margin: 0.875rem 0;
  color: var(--text-soft);
}

.result-card {
  position: relative;
  padding: 1rem;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.result-card:hover {
  border-color: var(--line-strong);
  background-color: var(--surface-2);
  box-shadow: 0 0.75rem 1.75rem rgb(0 0 0 / 12%);
}

.result-card h2 {
  margin: 0.375rem 0;
  font-size: 1.375rem;
}

.result-card h2 a {
  color: var(--text);
  text-decoration-color: rgb(216 181 119 / 35%);
}

.result-card h2 a:hover {
  color: var(--gold-bright);
  text-decoration-color: currentColor;
}

.result-card p {
  margin-bottom: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.625rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.database-grid,
.article-grid,
.build-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entity-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  padding: 1rem;
  gap: 0.875rem;
  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}

.entity-card:hover {
  border-color: var(--line-strong);
  background-color: var(--surface-2);
}

.entity-card:not(:has(.entity-card-media)) {
  grid-template-columns: 1fr;
}

.entity-card-media,
.detail-icon-frame {
  display: grid;
  flex: none;
  width: 3.75rem;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background:
    linear-gradient(145deg, rgb(216 181 119 / 5%), transparent 55%),
    var(--bg);
  box-shadow: inset 0 1px rgb(255 255 255 / 3%);
  place-items: center;
}

.entity-card-icon,
.detail-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  gap: 0.375rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.3125rem 0.6875rem;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 650;
  text-decoration: none;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
}

.chip:hover,
.chip.active,
.chip[aria-current="page"] {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: var(--surface-2);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 0.75rem;
}

.page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.page-link,
.page-current,
.page-gap {
  display: grid;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.25rem;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-variant-numeric: tabular-nums;
}

.page-link {
  color: var(--text-soft);
  border-color: var(--line);
  background: var(--surface);
  text-decoration: none;
}

.page-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: var(--surface-2);
}

.page-current {
  color: #182126;
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  font-weight: 750;
}

.page-gap {
  color: var(--muted);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  gap: 0.375rem 0.625rem;
  color: var(--muted);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.breadcrumbs a {
  color: var(--text-soft);
}

.breadcrumbs a:hover {
  color: var(--gold-bright);
}

.detail-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.detail-header > div {
  min-width: 0;
}

.detail-header h1 {
  max-width: 40ch;
}

.detail-icon-frame {
  width: 5.25rem;
  border-color: var(--line-strong);
  box-shadow:
    inset 0 1px rgb(240 215 165 / 5%),
    0 0.5rem 1.25rem rgb(0 0 0 / 15%);
}

.view-tabs {
  display: flex;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.view-tabs a {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.875rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.view-tabs a:focus-visible {
  outline-offset: -3px;
}

.view-tabs a:hover {
  color: var(--text);
  background: rgb(38 60 68 / 32%);
}

.view-tabs a.active,
.view-tabs a[aria-current="page"] {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
  background: linear-gradient(to top, rgb(216 181 119 / 8%), transparent);
}

.detail-section {
  margin: 1.5rem 0;
}

.db-actor-details,
.db-actor-source,
.entity-card .result-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.db-actor-source code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  gap: 0 1rem;
}

.property-grid > div {
  min-width: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.property-grid dt,
.meta-list dt {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.property-grid dd,
.meta-list dd {
  margin: 0;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.meta-list {
  margin: 0;
}

.meta-list > div + div {
  margin-top: 0.75rem;
}

.disclosure-note {
  margin-top: 1rem;
}

summary {
  min-height: 2.25rem;
  padding-block: 0.375rem;
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
}

summary:hover {
  color: var(--gold-bright);
}

.raw-data {
  width: 100%;
  max-height: 38rem;
  margin: 0;
  padding: 1rem;
  overflow: auto;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: #0a1116;
  box-shadow: inset 0 0.25rem 1rem rgb(0 0 0 / 20%);
  font-size: 0.8125rem;
  line-height: 1.65;
  scrollbar-color: var(--line-strong) transparent;
  tab-size: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.reference-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  gap: 1rem;
  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}

.reference-card:hover {
  border-color: var(--line-strong);
  background-color: var(--surface-2);
}

.reference-card h3 {
  margin: 0.25rem 0 0;
}

.related-links {
  margin-top: 1.25rem;
  padding: 1.125rem;
}

.account-card .meta-list > div {
  margin: 0;
}

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

caption {
  padding-bottom: 0.75rem;
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
}

th,
td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th,
th[scope="col"],
th[scope="colgroup"] {
  color: var(--text-soft);
  background: var(--surface-2);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

tbody tr {
  transition: background-color 150ms ease;
}

tbody tr:hover {
  background: rgb(38 60 68 / 28%);
}

.article-header {
  position: relative;
  width: min(100%, var(--reading));
  margin: 0 auto 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.article-header::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 7rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  content: "";
}

.article-header h1 {
  max-width: 40ch;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  margin: 0.75rem 0;
  gap: 0.375rem 1rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.article-actions {
  margin-top: 1rem;
}

.article-body {
  width: min(100%, var(--reading));
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: var(--text);
  border-color: var(--line-strong);
  background:
    linear-gradient(145deg, rgb(216 181 119 / 3%), transparent 32%),
    var(--surface);
  font-size: 1rem;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body > :last-child {
  margin-bottom: 0;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
  margin-top: 1.6em;
  color: var(--text);
}

.article-body h2 {
  padding-bottom: 0.4375rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.625rem;
}

.article-body h3 {
  font-size: 1.375rem;
}

.article-body h4 {
  font-size: 1.125rem;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body table,
.article-body pre {
  margin: 1em 0;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
}

.article-body li + li {
  margin-top: 0.3rem;
}

.article-body li::marker {
  color: var(--gold);
}

.article-body a {
  overflow-wrap: anywhere;
}

.article-body blockquote {
  margin-inline: 0;
  padding: 0.75rem 1rem;
  color: var(--text-soft);
  border-left: 3px solid var(--ember);
  background: rgb(12 19 24 / 42%);
}

.article-body blockquote > :last-child {
  margin-bottom: 0;
}

.article-body img {
  width: auto;
  max-height: 38rem;
  margin: 1.25rem auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: var(--bg);
  box-shadow: 0 0.75rem 1.75rem rgb(0 0 0 / 18%);
  object-fit: contain;
}

.article-body video,
.article-body audio {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.25rem auto;
}

.article-body video {
  max-height: 38rem;
  border: 1px solid var(--line);
  background: var(--bg);
}

.article-media-note {
  overflow-wrap: anywhere;
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

.article-media-note {
  color: var(--text-soft);
}

.article-body table {
  display: block;
  overflow-x: auto;
  border: 1px solid var(--line);
  font-size: 0.875rem;
  scrollbar-color: var(--line-strong) transparent;
}

.article-body th,
.article-body td {
  border: 1px solid var(--line);
}

.article-body pre {
  padding: 1rem;
  overflow-x: auto;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: #0a1116;
  box-shadow: inset 0 0.25rem 1rem rgb(0 0 0 / 20%);
  font-size: 0.8125rem;
  line-height: 1.65;
  scrollbar-color: var(--line-strong) transparent;
}

.article-body sup,
.article-body sub {
  line-height: 0;
}

.build-card,
.article-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.build-card:hover,
.article-card:hover {
  border-color: var(--line-strong);
  background-color: var(--surface-2);
  box-shadow: 0 0.75rem 1.75rem rgb(0 0 0 / 12%);
  transform: translateY(-1px);
}

.build-card > p,
.article-card > p {
  flex: 1;
  color: var(--text-soft);
}

.card-actions {
  margin-top: 0.875rem;
}

.owner-badge {
  color: var(--success);
  border-color: #55776d;
  background: #18332e;
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.25rem 0;
  padding: 1.125rem;
  gap: 1rem;
  border-color: var(--line-strong);
  background:
    linear-gradient(110deg, rgb(216 181 119 / 6%), transparent 38%),
    var(--surface);
}

.callout h2,
.callout p {
  margin-bottom: 0.25rem;
}

.build-meta {
  margin-bottom: 1.25rem;
}

.danger-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding: 1.125rem;
  gap: 1rem;
  border-color: #865350;
  background:
    linear-gradient(110deg, rgb(230 160 153 / 7%), transparent 45%),
    var(--surface);
}

.danger-panel h2 {
  margin-bottom: 0.25rem;
}

.danger-panel p {
  margin: 0;
  color: var(--text-soft);
}

.inline-confirm {
  display: grid;
  justify-items: end;
  gap: 0.625rem;
}

.inline-confirm .form-error {
  width: 100%;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 64rem;
  gap: 1rem;
}

.auth-form,
.account-card {
  display: grid;
  align-content: start;
  padding: 1.25rem;
  gap: 0.875rem;
  border-color: var(--line-strong);
}

.auth-form h2,
.auth-form p {
  margin-bottom: 0;
}

.auth-form .button {
  justify-self: start;
}

.account-card {
  max-width: 44rem;
}

.account-card .meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
}


dialog {
  width: min(36rem, calc(100% - 2.5rem));
  max-height: calc(100dvh - 2.5rem);
  padding: 1.375rem;
  overflow: auto;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgb(216 181 119 / 4%), transparent 35%),
    var(--surface);
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 45%);
}

dialog::backdrop {
  background: rgb(5 9 12 / 78%);
  backdrop-filter: blur(3px);
}

.dialog-header,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dialog-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  margin: 0;
}

.dialog-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.loading-state {
  display: flex;
  min-height: 8rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--muted);
}

.loading-mark {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid var(--line-strong);
  border-top-color: var(--gold-bright);
  border-radius: 50%;
  box-shadow: 0 0 0.75rem rgb(216 181 119 / 14%);
  animation: spin 750ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast-region {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  display: grid;
  width: min(24rem, calc(100% - 2.5rem));
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  padding: 0.875rem 1rem;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-small);
  background:
    linear-gradient(110deg, rgb(216 181 119 / 5%), transparent 45%),
    var(--surface-2);
  box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 30%);
  overflow-wrap: anywhere;
  pointer-events: auto;
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  margin: 0;
  border-color: #865350;
  border-left-color: var(--danger);
}

.site-footer {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgb(21 35 43 / 45%), transparent 75%),
    var(--bg);
}

.footer-inner {
  display: flex;
  width: min(calc(100% - 3rem), var(--content));
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
  padding-block: 0.875rem;
  gap: 1.5rem;
}

.footer-inner strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}


.noscript-notice {
  max-width: 42rem;
  margin-inline: auto;
  padding: 1.25rem;
}

@media (max-width: 76rem) {
  .header-inner {
    gap: 1rem;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--header-height));
    padding: 1rem 1.5rem;
    overflow-y: auto;
    border-bottom: 1px solid var(--line-strong);
    background: #101e28;
    box-shadow: var(--shadow);
  }

  .menu-open .header-navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .primary-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.375rem;
  }

  .site-header .nav-link {
    background: #192a35;
  }

  .header-database {
    grid-column: 1 / -1;
  }

  .database-quick-links {
    position: static;
    width: auto;
    margin-top: 0.375rem;
    box-shadow: none;
  }

  .site-header .header-actions {
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
  }

  .account-nav {
    flex: 1;
    justify-content: flex-end;
  }

  .home-task-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 72rem) {

  .grid,
  .stat-grid,
  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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


@media (max-width: 52rem) {
  .home-mast {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .home-totals {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 1rem 0 0;
    gap: 0.75rem;
    border-left: 0;
    border-top: 1px solid #45525a;
  }
}

@media (max-width: 44rem) {
  .header-inner,
  .site-main,
  .footer-inner {
    width: calc(100% - 2rem);
  }

  .site-main {
    padding: 1.25rem 0 2rem;
  }

  .header-navigation {
    padding: 0.75rem 1rem;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .account-nav {
    flex-basis: 100%;
    justify-content: space-between;
    padding: 0;
    border: 0;
  }

  .account-link {
    max-width: 70%;
  }

  .button,
  .menu-toggle,
  .header-logout,
  .chip,
  .page-link,
  .page-current,
  .page-gap,
  .view-tabs a,
  summary {
    min-height: 2.75rem;
  }

  .page-link,
  .page-current,
  .page-gap {
    min-width: 2.75rem;
  }

  input,
  select,
  textarea {
    min-height: 2.75rem;
    font-size: 1rem;
  }

  input[type="checkbox"],
  input[type="radio"] {
    min-height: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
  }

  .page-header-row,
  .section-heading,
  .callout,
  .danger-panel,
  .reference-card,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
  }

  .page-actions {
    flex-wrap: wrap;
  }

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

  .search-toolbar .button {
    width: 100%;
  }

  .grid,
  .stat-grid,
  .database-grid,
  .article-grid,
  .build-grid,
  .auth-grid,
  .property-grid {
    grid-template-columns: minmax(0, 1fr);
  }


  .home-totals dd {
    font-size: 1.25rem;
  }

  .home-totals dt {
    font-size: 0.5625rem;
  }

  .home-task {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    padding: 1rem 0.75rem;
  }

  .tool-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.25rem 0.75rem;
  }

  .tool-row-detail {
    grid-column: 1;
    grid-row: 2;
  }

  .tool-row-action {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .detail-header {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .detail-icon-frame {
    width: 3.75rem;
  }

  .account-card .meta-list {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .page-numbers {
    order: -1;
  }

  .article-body {
    padding: 1rem;
  }

  th,
  td {
    padding: 0.5rem;
    overflow-wrap: anywhere;
  }

  .inline-confirm {
    justify-items: stretch;
  }

}

@media (max-width: 36rem) {
  .home-mast {
    padding: 1.25rem;
  }

  .home-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .home-task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-section-heading {
    flex-wrap: wrap;
    gap: 0.375rem;
  }

  .home-overview {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
}

@media (pointer: coarse) and (min-width: 44.001rem) {
  .button,
  .menu-toggle,
  .header-logout,
  .nav-link,
  .chip,
  .page-link,
  .page-current,
  .view-tabs a,
  input,
  select,
  textarea {
    min-height: 2.75rem;
  }

  input[type="checkbox"],
  input[type="radio"] {
    min-height: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .button:hover,
  .build-card:hover,
  .article-card:hover {
    transform: none;
  }
}
