:root {
  font-family: Arial, sans-serif;
  color: #171717;
  background: #f6f6f6;
  font-synthesis: none;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

header a {
  color: white;
    font-size: 22px;
}
footer span {
  font-size: 22px;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}

header {
  border-bottom: 1px solid #dedede;
  background: #000;
  padding: 18px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.account-layout {
  max-width: 1150px;
  margin: 44px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 40px;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.account-nav a,
.account-nav button {
  padding: 13px 15px;
  border-radius: 7px;
  text-decoration: none;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.account-nav a:hover,
.account-nav button:hover {
  background: #e7e7e7;
}

.account-nav [aria-current="page"] {
  background: #111;
  color: #fff;
}

main {
  min-width: 0;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #686868;
  margin: 0 0 12px;
}

h1 {
  font-size: 32px;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}

h2 {
  font-size: 21px;
  margin: 0 0 18px;
}

.intro {
  color: #626262;
  line-height: 1.6;
  margin: 0 0 28px;
}

.card {
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 12px;
  padding: 28px;
  margin: 0 0 22px;
}

.form {
  max-width: 560px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 20px;
}

.field label {
  font-weight: 600;
  font-size: 14px;
}

.field input {
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 12px;
  background: white;
  width: 100%;
}

.field small {
  color: #666;
  font-size: 12px;
  line-height: 1.5;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  line-height: 1.5;
  font-size: 14px;
}

.check input {
  margin-top: 4px;
  flex: none;
  accent-color: #111;
}

button,
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  border: 1px solid #111;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
}

button:hover,
.button:hover {
  background: #333;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.secondary {
  background: #fff;
  color: #111;
}

.secondary:hover {
  background: #eee;
}

.danger {
  background: #972727;
  border-color: #972727;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.message {
  padding: 15px 18px;
  line-height: 1.5;
  border: 1px solid #b8cbbb;
  border-radius: 7px;
  background: #f0f6f0;
  margin: 18px 0;
}

.message[data-error="true"] {
  background: #fff0f0;
  border-color: #bf7474;
  color: #7c2020;
}

.message:empty {
  display: none;
}

[aria-invalid="true"] {
  border: 2px solid #a72c2c !important;
}

.error-text {
  color: #922020;
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

dl {
  margin: 0;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
}

dt {
  color: #666;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

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

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid #e6e6e6;
  text-align: left;
  white-space: nowrap;
}

th {
  color: #666;
  font-weight: 600;
}

.badge {
  display: inline-block;
  border-radius: 5px;
  padding: 5px 8px;
  background: #ededed;
  font-size: 12px;
}

.muted {
  color: #666;
}

.fine {
  font-size: 13px;
  line-height: 1.6;
}

footer {
  max-width: 1150px;
  margin: 40px auto;
  padding: 24px;
  border-top: 1px solid #dedede;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: #666;
}

:focus-visible {
  outline: 3px solid #666;
  outline-offset: 3px;
}

@media (max-width: 750px) {
  header {
    align-items: flex-start;
  }

  header nav {
    max-width: 150px;
    gap: 12px;
  }

  .account-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 24px auto;
    padding: 0 16px;
  }

  .account-nav {
    flex-direction: row;
    overflow: auto;
    gap: 5px;
    padding-bottom: 8px;
  }

  .account-nav > * {
    white-space: nowrap;
  }

  .card {
    padding: 21px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 28px;
  }

  dl {
    grid-template-columns: 110px 1fr;
  }
}
