.account-panel {
  max-width: 820px;
}

.account-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  padding: 22px;
}

.account-field {
  min-width: 0;
}

.account-field small {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.account-separator {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.account-separator::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.account-current-password {
  grid-column: 1 / 2;
}

.account-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.login-links {
  margin-top: 18px;
  text-align: center;
}

.login-links a {
  color: var(--blue);
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

.button {
  min-width: 80px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.nav-icon {
  display: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

input:not([type="hidden"]):not([type="checkbox"]),
select {
  height: 42px;
  min-width: 200px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0 38px 0 11px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

.login-card input,
.account-form input {
  min-width: 0;
}

.filters .button,
.form-grid > .form-action .button,
.account-actions .button,
.login-card > .button {
  height: 42px;
}

@media (max-width: 720px) {
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    height: 66px;
    min-height: 66px;
    padding: 0;
    flex-direction: row;
    align-items: stretch;
    overflow: visible;
    box-shadow: 0 1px 4px rgba(17, 24, 39, .2);
  }

  .sidebar .brand {
    width: 76px;
    height: 66px;
    flex: 0 0 76px;
    padding: 10px 6px;
    border-right: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1.05;
  }

  .sidebar .brand span {
    font-size: 8px;
    letter-spacing: .18em;
  }

  .sidebar nav {
    display: flex;
    flex: 1;
    min-width: 0;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar nav a {
    position: relative;
    display: flex;
    flex: 0 0 84px;
    min-width: 84px;
    min-height: 66px;
    padding: 8px 6px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    font-size: 10px;
    line-height: 1.25;
    border-radius: 0;
  }

  .sidebar nav a.active::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 0;
    left: 10px;
    height: 4px;
    background: #60a5fa;
  }

  .logout-form {
    flex: 0 0 76px;
    width: 76px;
    margin: 0;
    padding: 0;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, .1);
  }

  .logout-form > span {
    display: none;
  }

  .logout-form button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
    min-height: 66px;
    padding: 8px 5px;
    font-size: 10px;
  }

  .nav-icon {
    display: block;
    flex: 0 0 20px;
  }

  .main {
    margin-left: 0;
    padding: 18px;
  }

  input:not([type="hidden"]):not([type="checkbox"]),
  select {
    min-width: 0;
  }

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

  .account-separator,
  .account-current-password,
  .account-actions {
    grid-column: 1;
  }

  .account-actions .button {
    width: 100%;
  }
}
