* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #171717;
  background: #f7f4ef;
}

main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.portal-shell {
  width: min(100%, 720px);
}

h1 {
  margin: 0 0 12px;
  font-size: 48px;
  line-height: 1;
}

p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.client-list {
  margin-top: 40px;
}

.client-list h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.client-list ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.client-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #ded8cd;
  border-radius: 8px;
  background: #fff;
}

.client-list span {
  color: #666;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: #171717;
  text-decoration: none;
  font-weight: 700;
}

.back-link:hover {
  text-decoration: underline;
}

.client-meta {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  padding: 20px;
  border: 1px solid #ded8cd;
  border-radius: 8px;
  background: #fff;
}

.client-meta p {
  font-size: 16px;
}

.client-account-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
  color: #666;
}

.client-account-summary span {
  font-size: 16px;
  line-height: 1.5;
}

.client-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.site-list {
  margin-top: 40px;
}

.site-list h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.site-list ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #ded8cd;
  border-radius: 8px;
  background: #fff;
}

.site-list span {
  color: #666;
}

.site-list small {
  display: block;
  margin-top: 4px;
  color: #666;
  font-size: 14px;
  font-weight: 700;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  max-width: 420px;
}

.auth-form p {
  display: grid;
  gap: 8px;
  font-size: 16px;
}

.auth-form label {
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ded8cd;
  border-radius: 8px;
  font: inherit;
}

.auth-form button {
  width: fit-content;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #171717;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.form-message {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
}

.form-message-error {
  border: 1px solid #efb5a9;
  color: #7a1f12;
  background: #fff2ee;
}

.form-message-success {
  border: 1px solid #b8d8ae;
  color: #234417;
  background: #edf7e9;
}

.message-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-support {
  margin-top: 24px;
  font-size: 16px;
}

.auth-support a {
  color: #171717;
  font-weight: 800;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
}

.site-logo {
  color: #171717;
  font-weight: 800;
  text-decoration: none;
}

.site-header form {
  margin: 0;
}

.site-header button {
  padding: 10px 14px;
  border: 1px solid #ded8cd;
  border-radius: 8px;
  color: #171717;
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.eyebrow {
  margin: 0 0 12px;
  color: #666;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  color: #171717;
  background: #e7f0df;
  font-size: 14px;
  font-weight: 800;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.button-link,
.stacked-form button {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #171717;
  border-radius: 8px;
  color: #fff;
  background: #171717;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-link-secondary {
  border-color: #ded8cd;
  color: #171717;
  background: #fff;
}

.stacked-form {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.form-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid #ded8cd;
  border-radius: 8px;
  background: #fff;
}

.form-panel h2 {
  margin: 0;
  font-size: 24px;
}

.form-panel p {
  display: grid;
  gap: 8px;
  font-size: 16px;
}

.file-upload-group {
  display: grid;
  gap: 8px;
}

.form-panel label {
  font-weight: 800;
}

.form-panel input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ded8cd;
  border-radius: 8px;
  font: inherit;
}

.form-panel select,
.form-panel textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ded8cd;
  border-radius: 8px;
  font: inherit;
}

.form-panel input[type='checkbox'] {
  width: auto;
  justify-self: start;
}

.form-help {
  color: #666;
  font-size: 15px;
}

.workflow-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 20px;
  border: 1px solid #ded8cd;
  border-radius: 8px;
  background: #fff;
}

.workflow-panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.workflow-panel p {
  font-size: 16px;
}

.workflow-panel .eyebrow {
  margin-bottom: 8px;
}

.workflow-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.choice-group {
  display: grid;
  gap: 12px;
}

.choice-group > label {
  font-weight: 800;
}

.choice-group ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.choice-group li label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.choice-group input {
  width: auto;
}

.choice-group input:disabled + label,
.choice-group li:has(input:disabled) {
  opacity: 0.55;
}

.asset-list {
  margin-top: 40px;
  padding: 20px;
  border: 1px solid #ded8cd;
  border-radius: 8px;
  background: #fff;
}

.asset-list h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.asset-list ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.asset-list a {
  color: #171717;
  font-weight: 800;
}

.errorlist {
  margin: 0;
  padding: 0;
  color: #7a1f12;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 620px) {
  .workflow-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .workflow-actions {
    justify-content: flex-start;
  }
}
