@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Text";
  src: url("/fonts/dm-serif-text.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Text";
  src: url("/fonts/dm-serif-text-italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #183b2d;
  --muted: #626e63;
  --paper: #f8f8f1;
  --line: #dbded2;
  --green: #1a533e;
  --serif: "DM Serif Text", Georgia, "Times New Roman", serif;
  font-family:
    "DM Sans",
    "Avenir Next",
    Avenir,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid #d2873e;
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
button,
i {
  vertical-align: middle;
}
i[data-icon] {
  display: inline-flex;
  align-items: center;
  font-style: normal;
}
button svg,
i svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
button {
  touch-action: manipulation;
}
header {
  border-bottom: 1px solid var(--line);
  background: #fdfcf7;
}
.nav-wrap,
main,
footer {
  width: min(1280px, calc(100% - 8.8vw));
  margin: auto;
}
.nav-wrap {
  height: 73px;
  display: flex;
  align-items: center;
  gap: 5vw;
}
.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  font: 700 clamp(22px, 2.3vw, 32px)/1 var(--serif);
  letter-spacing: -1.5px;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  width: 40px;
  height: 40px;
  margin-right: 8px;
}
.brand span {
  font-style: italic;
  font-weight: 500;
}
.nav-wrap nav {
  height: 100%;
  display: flex;
  gap: 27px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  font-weight: 550;
  font-size: 0.91rem;
  color: #546258;
  padding: 0 1px;
}
.nav-link:hover,
.browse:hover,
footer button:hover {
  color: #a85c30;
}
.nav-link.active {
  color: var(--green);
}
.nav-link.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #b97b49;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fdfdf8;
}
.settings {
  margin-left: auto;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 29px 0 24px;
}
.intro h1,
.section-heading h2,
dialog h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.048em;
  margin: 0;
}
.intro h1 {
  font-size: clamp(2.1rem, 3.9vw, 3.55rem);
  line-height: 1.1;
}
.intro p {
  color: var(--muted);
  margin: 7px 0 0;
  font-size: 0.97rem;
}
.intro-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 9px;
  background: #edeee5;
  gap: 2px;
}
.seg button {
  padding: 7px 13px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
}
.seg .on {
  background: #fffefa;
  color: var(--green);
  box-shadow: 0 1px 4px #183b2d22;
}
.primary {
  color: #fffdf0;
  background: var(--green);
  border: 1px solid #144736;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 17px;
  font-size: 0.94rem;
  font-weight: 600;
  box-shadow: 0 2px 3px #183b2d15;
}
.primary:hover {
  background: #246b4f;
}
.table {
  --felt: #23634d;
  --felt-edge: #174a39;
  --toolbar: #194e3b;
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  color: #f8f7e9;
  background:
    radial-gradient(ellipse at 46% 30%, #ffffff0b, transparent 70%),
    linear-gradient(110deg, var(--felt), var(--felt) 66%, var(--felt-edge));
  border-radius: 16px;
  border: 1px solid #174b38;
  box-shadow:
    0 6px 15px #12342317,
    0 1px 3px #12342318;
  overflow: hidden;
}
.table:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.6' d='M0 0h160v160H0z'/%3E%3C/svg%3E");
}
.table.blue {
  --felt: #345871;
  --felt-edge: #253f53;
  --toolbar: #26465a;
}
.table.plum {
  --felt: #654359;
  --felt-edge: #493244;
  --toolbar: #4e3446;
}
.tablebar {
  min-height: 48px;
  padding: 6px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #072c1b2e;
  border-bottom: 1px solid #ffffff1f;
}
.table-menu,
.counters,
.counters > div,
.controls,
.control-set,
.control-set button {
  display: flex;
  align-items: center;
}
.table-menu {
  gap: 8px;
  color: #f1efe3;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 0;
}
.table-menu svg:last-child {
  width: 14px;
}
.table-menu i:first-child svg {
  width: 19px;
}
.counters {
  gap: 19px;
  font-size: 0.85rem;
}
.counters > div {
  gap: 6px;
}
.counters > div + div {
  border-left: 1px solid #ffffff31;
  padding-left: 19px;
}
.counters svg {
  width: 16px;
  color: #e3d3a1;
}
.metric-label {
  color: #e1e8dc;
}
.counters b {
  font-weight: 650;
  min-width: 1ch;
  font-variant-numeric: tabular-nums;
}
.field {
  --cw: min(10.4cqw, 105px);
  --ch: calc(var(--cw) * 1.36);
  --back-step: clamp(10px, 1.4cqw, 16px);
  --face-step: clamp(18px, 2.3cqw, 27px);
  max-width: 1110px;
  width: 90%;
  margin: auto;
  padding: 22px 0 28px;
  user-select: none;
  -webkit-user-select: none;
}
.grid {
  display: grid;
  grid-template-columns: repeat(var(--columns, 7), minmax(0, 1fr));
  justify-items: center;
  align-items: start;
}
.top-row {
  margin-bottom: 22px;
}
.pile-wrap {
  width: var(--cw);
  position: relative;
}
.pile-label {
  display: block;
  white-space: nowrap;
  color: #d4e1cf;
  font-size: 0.65rem;
  line-height: 1;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.top-row .pile-wrap {
  align-self: end;
}
.pile {
  position: relative;
  width: var(--cw);
  min-height: var(--ch);
  border-radius: 7px;
}
.slot {
  width: var(--cw);
  height: var(--ch);
  border: 1.5px dashed #e8f0d34d;
  background: #09342112;
  border-radius: 7px;
  display: flex;
  justify-content: center;
  align-items: center;
  font: normal calc(var(--cw) * 0.46)/1 var(--serif);
  color: #dcf0d041;
}
.tableau .empty {
  border-color: #e8f0d32b;
}
.card {
  display: block;
  position: absolute;
  left: 0;
  width: var(--cw);
  height: var(--ch);
  padding: 0;
  color: #242d28;
  border: 1px solid #d5d5c7;
  border-radius: 7px;
  box-shadow: 0 2px 3px #0c291f35;
  background: #fffcf2;
  touch-action: manipulation;
  overflow: hidden;
  text-align: left;
}
.card.red {
  color: #b84c34;
}
.card.back {
  background: #b76346 url("/art/back.svg") center/100% 100% no-repeat;
  border: 3px solid #fff6dd;
}
.card.stock {
  box-shadow:
    0 2px 0 #dfd3b8,
    0 3px 0 #6e735f,
    0 5px 0 #e1d6bf,
    0 6px 3px #0a281f77;
}
.card.selected,
.pile.selected {
  outline: 3px solid #ffc969;
  outline-offset: 1px;
}
.marked {
  filter: drop-shadow(0 0 4px #ffdc7b);
  outline: 3px solid #ffc969 !important;
  outline-offset: 2px;
}
.corner {
  position: absolute;
  left: 6%;
  top: 4%;
  font: 600 calc(var(--cw) * 0.218)/0.9 var(--serif);
  display: flex;
  flex-direction: column;
  align-items: center;
  letter-spacing: -0.06em;
}
.corner small {
  font-size: 0.72em;
  line-height: 1.03;
  letter-spacing: 0;
}
.corner.bottom {
  top: auto;
  left: auto;
  right: 6%;
  bottom: 4%;
  transform: rotate(180deg);
}
.pips {
  position: absolute;
  inset: 13% 22%;
  display: block;
}
.pip {
  position: absolute;
  font: normal calc(var(--cw) * 0.275)/1 var(--serif);
  transform: translate(-50%, -50%);
}
.pip.invert {
  transform: translate(-50%, -50%) rotate(180deg);
}
.pips.ace .pip {
  font-size: calc(var(--cw) * 0.58);
}
.court {
  position: absolute;
  left: 20%;
  top: 12%;
  width: 60%;
  height: 76%;
  object-fit: contain;
}
.stock-count {
  position: absolute;
  right: -5px;
  bottom: -7px;
  pointer-events: none;
  border-radius: 20px;
  background: #e9dfc2;
  color: #26432e;
  border: 2px solid var(--felt);
  padding: 1px 5px;
  font-size: 0.67rem;
  font-weight: 700;
}
.controls {
  background: var(--toolbar);
  border-top: 1px solid #ffffff1e;
  min-height: 53px;
  padding: 6px 22px;
  gap: 16px;
  justify-content: space-between;
}
.control-set {
  gap: 16px;
}
.control-set button {
  gap: 7px;
  color: #fff9e9;
  padding: 7px 4px;
  font-size: 0.87rem;
  font-weight: 550;
}
.control-set button:hover {
  color: #f3ce89;
}
.control-set button svg {
  width: 17px;
}
.control-set.right {
  margin-left: auto;
}
.full {
  border-left: 1px solid #ffffff31;
  padding-left: 16px !important;
}
.controls #status {
  font-size: 0.8rem;
  color: #f5e5b5;
}
.table:fullscreen,
.table.expanded {
  overflow: auto;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.table.expanded {
  position: fixed;
  inset: 0;
  z-index: 8;
}
.table:fullscreen .field,
.table.expanded .field {
  flex: 1;
  align-content: center;
}
.collection {
  margin-top: 28px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.section-heading h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
}
.browse {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #38563e;
  font-size: 0.87rem;
  font-weight: 600;
}
.browse svg {
  width: 15px;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 0 14px 0 0;
  text-align: left;
  background: #fffdf6;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 9px #143e2a16;
}
.feature-text {
  display: grid;
  gap: 5px;
  flex: 1;
}
.feature strong {
  font: 500 clamp(1.1rem, 1.55vw, 1.45rem)/1 var(--serif);
  letter-spacing: -0.035em;
}
.feature small {
  color: var(--muted);
  font-size: 0.78rem;
}
.feature > svg {
  width: 14px;
  color: #7a897b;
}
.mini {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  flex: 0 0 31%;
  min-height: 98px;
  align-self: stretch;
  background-color: #e6e9d6;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0 5px,
    #76865b15 5px 6px
  );
}
.mini.blue {
  background-color: #e0e9e6;
}
.mini.gold {
  background-color: #f2e4c9;
}
.mini span {
  position: absolute;
  top: 20%;
  left: calc(50% - 20px);
  display: flex;
  flex-direction: column;
  width: 39px;
  height: 57px;
  background: #fffbed;
  border: 1px solid #848a6d;
  border-radius: 3px;
  box-shadow: 1px 3px 3px #314c332a;
  font: 700 12px/0.9 var(--serif);
  padding: 4px 3px;
  transform-origin: 50% 95%;
}
.mini span:after {
  content: attr(data-pip);
  font: normal 22px/1 var(--serif);
  align-self: center;
  margin-top: 3px;
}
.mini span:nth-child(1) {
  transform: translateX(-12px) rotate(-20deg);
}
.mini span:nth-child(2) {
  transform: rotate(-3deg);
}
.mini span:nth-child(3) {
  transform: translateX(12px) rotate(13deg);
}
.mini .red {
  color: #b45137;
}
.mini.gold span:first-child {
  transform: translate(-10px, 7px) rotate(-13deg);
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding: 21px 0 28px;
  display: flex;
  justify-content: space-between;
  color: #647368;
  font-size: 0.84rem;
}
footer span {
  font-family: var(--serif);
}
dialog {
  background: #fcfbf4;
  color: var(--ink);
  border: 1px solid #d9d8ca;
  border-radius: 17px;
  padding: 26px;
  width: min(95vw, 535px);
  max-height: 85dvh;
  box-shadow: 0 15px 75px #0c251e40;
}
dialog::backdrop {
  background: #102b2080;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}
dialog h2 {
  font-size: 2.05rem;
}
dialog h3 {
  font: 500 1.4rem var(--serif);
  margin: 20px 0 8px;
}
dialog p,
dialog li {
  font-size: 0.99rem;
  line-height: 1.55;
  color: #4d5e52;
}
dialog .icon-btn {
  flex: none;
}
dialog .options {
  display: grid;
  gap: 8px;
}
.choice {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: #fffef9;
}
.choice:hover {
  background: #eaf0e4;
}
.choice small {
  font-size: 0.8rem;
  color: var(--muted);
}
.library-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.library-list button {
  font-size: 0.9rem;
}
.library-search,
dialog select,
dialog input[type="text"] {
  padding: 9px 12px;
  border: 1px solid #bcc7b9;
  border-radius: 7px;
  background: #fffef9;
  color: var(--ink);
  width: 100%;
  margin-bottom: 12px;
}
.setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
}
.setting select,
.setting input[type="text"] {
  width: 55%;
  margin: 0;
}
.setting input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table td,
.data-table th {
  text-align: left;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line);
}
.data-table th {
  font-weight: 600;
}
.dialog-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 18px;
}
.secondary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
}
.stat-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.stat-list div {
  background: #edf0e4;
  padding: 13px 10px;
  border-radius: 8px;
  display: grid;
  gap: 5px;
}
.stat-list strong {
  font: 500 1.6rem var(--serif);
}
.stat-list small {
  color: var(--muted);
}
.formation {
  position: relative;
  width: 100%;
}
.formation > .pile {
  position: absolute;
}
.wide-field {
  --cw: min(7.8cqw, 79px);
}
.cells-row {
  display: flex;
  gap: 5px;
  align-items: end;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 15px;
}
.cells-row .pile-wrap {
  width: var(--cw);
}
.cells-row .pile-wrap:first-child {
  margin-right: 2px;
}
.no-motion * {
  transition: none !important;
  animation: none !important;
}
@media (min-width: 1550px) {
  .intro {
    padding: 34px 0 29px;
  }
  .field {
    padding: 26px 0 35px;
  }
}
@media (max-width: 950px) {
  .nav-wrap,
  main,
  footer {
    width: 93%;
  }
  .nav-wrap {
    gap: 4vw;
  }
  .nav-wrap nav {
    gap: 18px;
  }
  .field {
    width: 94%;
    --cw: 11.5cqw;
  }
  .wide-field {
    --cw: 8.2cqw;
  }
  .features {
    gap: 10px;
  }
  .feature {
    gap: 10px;
    padding-right: 8px;
  }
  .mini {
    min-height: 86px;
  }
  .feature small {
    font-size: 0.72rem;
  }
  .metric-label {
    display: none;
  }
}
@media (max-width: 690px) {
  .nav-wrap {
    height: 58px;
    gap: 12px;
  }
  .brand {
    font-size: 24px;
    letter-spacing: -1.3px;
  }
  .brand img {
    width: 32px;
    height: 32px;
    margin-right: 4px;
  }
  .nav-wrap nav {
    margin-left: auto;
    gap: 8px;
  }
  .nav-link {
    width: 31px;
    justify-content: center;
  }
  .nav-link span {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .settings {
    margin-left: 0;
    width: 32px;
    height: 32px;
  }
  .intro {
    align-items: start;
    flex-wrap: wrap;
    gap: 13px;
    padding: 21px 0 16px;
  }
  .intro h1 {
    font-size: 2.35rem;
  }
  .intro p {
    font-size: 0.87rem;
  }
  .intro-actions {
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }
  .intro-actions:has(#mode-switch:empty) {
    justify-content: flex-end;
  }
  .primary {
    padding: 8px 12px;
  }
  .seg button {
    padding: 5px 12px;
  }
  .table {
    border-radius: 11px;
  }
  .tablebar {
    min-height: 40px;
    padding: 5px 11px;
  }
  .counters {
    gap: 9px;
    font-size: 0.79rem;
  }
  .counters > div + div {
    padding-left: 8px;
  }
  .counters > div {
    gap: 4px;
  }
  .counters svg {
    width: 14px;
  }
  .table-menu {
    font-size: 0.8rem;
    gap: 4px;
  }
  .field {
    width: 97%;
    --cw: 12.55cqw;
    --back-step: clamp(9px, 1.9cqw, 13px);
    --face-step: clamp(16px, 3cqw, 22px);
    padding-top: 15px;
    padding-bottom: 25px;
  }
  .wide-field {
    --cw: 8.95cqw;
  }
  .pile-label {
    font-size: 0.53rem;
    letter-spacing: 0.055em;
    margin-bottom: 7px;
  }
  .card,
  .slot,
  .pile {
    border-radius: 4px;
  }
  .card.back {
    border-width: 2px;
  }
  .corner {
    font-size: calc(var(--cw) * 0.26);
  }
  .corner.bottom {
    display: none;
  }
  .top-row {
    margin-bottom: 18px;
  }
  .controls {
    padding: 5px 8px;
    min-height: 43px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .control-set {
    gap: 9px;
  }
  .control-set button {
    gap: 4px;
    font-size: 0.76rem;
  }
  .control-set button svg {
    width: 15px;
  }
  .full {
    padding-left: 8px !important;
  }
  .controls #status:not(:empty) {
    order: 3;
    width: 100%;
    padding: 0 4px 4px;
  }
  .collection {
    margin-top: 23px;
  }
  .section-heading h2 {
    font-size: 1.55rem;
  }
  .browse {
    font-size: 0.76rem;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .feature {
    gap: 20px;
  }
  .mini {
    flex-basis: 26%;
    min-height: 75px;
  }
  .mini span {
    top: 9%;
    scale: 0.9;
  }
  .feature strong {
    font-size: 1.23rem;
  }
  .feature small {
    font-size: 0.8rem;
  }
  .feature > svg {
    margin-right: 8px;
  }
  .cells-row {
    gap: 2px;
  }
  .stat-list {
    gap: 4px;
  }
  .library-list {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 19px;
  }
}
.field.extra-wide {
  --cw: 5.95cqw;
}
.field.crescent .tableau {
  row-gap: 18px;
}
.pips {
  inset: 16% 24%;
}
.pips.ace {
  inset: 13% 22%;
}
.shuffle-row {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.shuffle-row .secondary {
  color: white;
  border-color: #ffffff54;
}
.field.extra-wide .tableau {
  row-gap: 5px;
}
@media (min-width: 691px) and (max-height: 820px) {
  .nav-wrap {
    height: 60px;
  }
  .intro {
    padding: 18px 0;
  }
  .intro h1 {
    font-size: clamp(2.1rem, 3.3vw, 2.9rem);
  }
  .tablebar {
    min-height: 40px;
  }
  .field {
    --cw: min(10cqw, 12vh);
    --back-step: clamp(9px, 1.5vh, 13px);
    padding: 16px 0 20px;
  }
  .wide-field {
    --cw: min(8cqw, 10.5vh);
  }
  .field.extra-wide {
    --cw: min(5.95cqw, 9vh);
  }
  .top-row {
    margin-bottom: 17px;
  }
  .controls {
    min-height: 45px;
  }
  .collection {
    margin-top: 22px;
  }
  .mini {
    min-height: 80px;
  }
  .mini span {
    top: 14%;
  }
}
.feature,
.choice {
  color: inherit;
  text-decoration: none;
}
.control-set button[hidden] {
  display: none;
}
#redo svg {
  transform: scaleX(-1);
}
.library-list a {
  font-size: 0.9rem;
}

.corner,
.pip,
.slot {
  font-family: Georgia, "Times New Roman", serif;
}
.brand {
  font-weight: 400;
}
.intro h1,
.section-heading h2,
.dialog-head h2 {
  letter-spacing: -0.042em;
}
.account-name,
.account-foot {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.account-name {
  margin: 0.35rem 0 1rem;
}
.account-name input[type="text"] {
  margin: 0;
}
.account-foot {
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.85rem;
}
.account-foot a {
  color: var(--green);
}
#account-status:empty {
  display: none;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
#profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.87rem;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 950px) {
  #profile-link span {
    display: none;
  }
  .nav-tools {
    gap: 7px;
  }
}
@media (max-width: 690px) {
  .nav-wrap {
    gap: 6px;
  }
  .nav-tools {
    margin-left: 0;
  }
  #profile-link {
    width: 30px;
    justify-content: center;
  }
}
@media (max-width: 375px) {
  .nav-wrap nav {
    gap: 2px;
  }
  .nav-tools {
    gap: 1px;
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 26px;
    height: 26px;
  }
}

footer,
.footer-links,
.account-foot {
  flex-wrap: wrap;
}
footer {
  align-items: center;
  gap: 12px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-links a,
.legal-page a {
  color: var(--green);
  text-underline-offset: 0.18em;
}
.legal-page {
  max-width: 72ch;
  padding-block: 2rem 4rem;
  font-size: 1rem;
  line-height: 1.65;
}
.legal-page h1,
.legal-page h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.18;
}
.legal-page h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  margin: 1.5rem 0 0.25rem;
}
.legal-page h2 {
  font-size: 1.65rem;
  margin: 2rem 0 0.55rem;
}
.legal-page .updated {
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.legal-page p,
.legal-page ul {
  margin: 0.6rem 0;
}
.legal-page address {
  font-style: normal;
}
.legal-page li + li {
  margin-top: 0.4rem;
}
.legal-page nav {
  margin-top: 2rem;
}
