* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  background:
    linear-gradient(120deg, transparent 0 68%, rgba(0, 0, 0, .04) 68% 74%, transparent 74%),
    linear-gradient(60deg, transparent 0 58%, rgba(0, 0, 0, .035) 58% 64%, transparent 64%),
    #f4f4f4;
}

.topbar {
  height: 66px;
  background: #fff;
  border-bottom: 1px solid #d8d8d8;
  display: grid;
  grid-template-columns: 92px 1fr 120px;
  align-items: center;
  padding: 0 18px;
  gap: 18px;
}

.brand-mark,
.logo-card {
  color: #1a1a1a;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  position: relative;
}

.brand-mark::before,
.logo-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 24px;
  top: -12px;
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 54px solid #f5df18;
}

.brand-mark span,
.logo-card span {
  color: #777;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #666;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
}

nav a::after {
  content: "⌄";
  font-size: 12px;
  margin-left: 6px;
  color: #777;
}

nav a:first-child::after,
nav a:nth-child(8)::after,
nav a:nth-child(9)::after,
nav a:nth-child(10)::after {
  content: "";
}

.user {
  justify-self: end;
  color: #666;
}

main {
  padding: 10px 36px 120px;
}

.access-panel {
  background: #fff;
  border: 1px solid #247abd;
  border-radius: 4px;
  display: grid;
  grid-template-columns: 360px 330px 330px;
  align-items: center;
  gap: 28px;
  padding: 12px 28px;
}

.logo-card {
  width: 120px;
  height: 54px;
  display: grid;
  place-items: center;
  background: #fafafa;
  border-radius: 3px;
  z-index: 0;
}

label {
  display: grid;
  gap: 5px;
  font-size: 16px;
}

strong {
  color: #d71920;
}

select,
input {
  height: 38px;
  border: 1px solid #b9b9b9;
  border-radius: 4px;
  background: #fff;
  padding: 0 10px;
  font-size: 16px;
  color: #444;
}

h1 {
  margin: 28px 0 22px;
  font-size: 30px;
  line-height: 1.1;
}

.tabs {
  border-bottom: 1px solid #d4d4d4;
}

.tabs button {
  height: 54px;
  min-width: 92px;
  border: 1px solid #d4d4d4;
  border-bottom: 0;
  background: #fff;
  border-radius: 4px 4px 0 0;
  color: #555;
  font-size: 16px;
}

.save {
  margin: 24px 0;
  height: 44px;
  background: #337fb8;
  border: 1px solid #286fa4;
  border-radius: 4px;
  color: #fff;
  padding: 0 18px;
  font-weight: 700;
  font-size: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.box {
  background: #fff;
  border: 1px solid #247abd;
  border-radius: 4px;
  overflow: hidden;
}

.box h2 {
  margin: 0;
  padding: 14px 18px;
  background: #337fb8;
  color: #fff;
  font-size: 20px;
}

.box-body {
  padding: 22px 18px 28px;
  display: grid;
  gap: 18px;
  min-height: 280px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  align-items: end;
}

.two p {
  margin: 0;
}

.lookup {
  display: grid;
  grid-template-columns: 1fr 58px;
}

.lookup input {
  border-radius: 4px 0 0 4px;
}

.lookup button {
  border: 1px solid #286fa4;
  background: #337fb8;
  color: #fff;
  border-radius: 0 4px 4px 0;
  font-weight: 700;
}

footer {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(1280px, calc(100% - 72px));
  min-height: 88px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px 6px 0 0;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr .7fr;
  gap: 28px;
  align-items: center;
  padding: 18px 28px;
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 92px 1fr;
  }

  .user {
    display: none;
  }

  .access-panel,
  .form-grid,
  footer {
    grid-template-columns: 1fr;
  }

  footer {
    position: static;
    transform: none;
    width: auto;
    margin: 24px 36px;
  }
}

@media (max-width: 720px) {
  main {
    padding: 10px 16px 32px;
  }

  nav {
    gap: 14px;
  }

  .access-panel {
    padding: 12px;
  }

  .form-grid {
    gap: 18px;
  }
}
