:root {
  /* Salesforce colors pulled from https://help.salesforce.com */
  --color-sf-dark: #022d60;
  --color-sf-light: #0176d4;
  --color-sf-logo: #0f9dda;
  --color-off-white: #f8fafc;
  --color-off-black: #181c20;
  --color-sf-button: #0270d2;
  --color-sf-button-hover: #00559f;
}
body {
  background: var(--color-off-white);
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
}
.site-header {
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 12px #0001;
  margin-bottom: 1.5em;
  padding: 1.5em 2em 1em 2em;
}
.site-header .title {
  color: var(--color-sf-logo);
  font-size: 1.7em;
  margin: 0;
}
.header-flex {
  display: flex;
  align-items: baseline;
  gap: 1.5em;
}
.header-flex .title {
  margin: 0;
}
.header-flex .subtitle {
  color: black;
  font-size: 1.05em;
  font-weight: 400;
  opacity: 0.7;
  margin-left: 0.5em;
  white-space: normal;
}
.header-flex .title a {
  color: var(--color-sf-logo) !important;
  text-decoration: none !important;
  font-weight: inherit;
  font-size: inherit;
  transition: color 0.1s, text-decoration 0.1s;
}
.header-flex .title a:hover,
.header-flex .title a:focus {
  color: var(--color-sf-light) !important;
  text-decoration: underline !important;
}
@media (max-width: 700px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3em;
  }
  .header-flex .subtitle {
    margin-left: 0;
    font-size: 0.98em;
  }
}
.main-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2em;
  margin: 0 auto;
  max-width: 1100px;
  min-height: 400px;
}
.panel {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px #0001;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 320px;
  padding: 2em 2.5em 2em 2.5em;
}
.left-panel {
  grid-column: 1;
  grid-row: 1;
}
.right-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.bottom-panel {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px #0001;
  margin: 2em auto 0 auto;
  max-width: 1100px;
  padding: 1.5em 2em;
}
p.description {
  margin: 3.5em 0 0 0;
}
label {
  color: var(--color-sf-dark);
  font-weight: 600;
  display: block;
  margin-top: 1em;
  margin-bottom: 0.3em;
}
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="file"] {
  border: 1px solid #bcd;
  border-radius: 5px;
  font-size: 1em;
  margin-bottom: 0.5em;
  padding: 0.5em;
  width: 100%;
}
button {
  background: var(--color-sf-button);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  margin-top: 1em;
  padding: 0.7em 1.5em;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover {
  background: var(--color-sf-button-hover);
}
.inline-icon {
  display: inline-block;
  vertical-align: middle;
  width: 1em;
  height: 1em;
}
.tooltip {
  color: black;
  font-size: smaller;
  vertical-align: super;
  cursor: help;
}
.error {
  color: red !important;
}
.hidden {
  display: none !important;
}
#formActions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5em;
  grid-column: 1;
  grid-row: 2;
}
#formActions button {
  margin-top: 0;
  margin-right: 1em;
}
#formActions .button-row {
  display: flex;
  flex-direction: row;
  gap: 1em;
  width: 100%;
}
#formActions p.description {
  margin: 3em 0 0 0;
  font-size: 0.98em;
  color: var(--color-sf-dark);
}
#fileList {
  color: var(--color-sf-dark);
  margin-top: 1em;
  word-break: keep-all;
}
#fileList ul {
  display: block;
  list-style: none;
  overflow-x: visible;
  padding: 0 0 0 0.2em;
  margin: 0.1em 0 0 0;
  white-space: nowrap;
}
#fileList ul.required-files {
  margin-bottom: 0.5em;
}
#fileList li {
  display: flex;
  align-items: center;
  gap: 0.5em;
  max-width: 100%;
  overflow: auto;
  text-overflow: ellipsis;
  white-space: pre;
}
#output {
  color: var(--color-sf-dark);
  font-size: 0.98em;
  margin-top: 1em;
  padding: 0.5em;
  background: #f0f4f8;
  border-radius: 5px;
  box-shadow: 0 1px 4px #0002;
}
#downloadButton {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: #28a745;
}
#console-log {
  background: var(--color-off-black);
  color: #e0e0e0;
  font-family: "Fira Mono", "Consolas", "Menlo", monospace;
  font-size: 0.98em;
  border-radius: 6px;
  box-shadow: 0 1px 4px #0002;
  margin-top: 0;
  margin-bottom: 0;
  min-height: 2em;
  max-height: 16em;
  padding: 1em 1.2em;
  overflow-y: auto;
  white-space: pre-wrap;
}
@media (max-width: 900px) {
  .main-layout {
    display: flex;
    flex-direction: column;
    gap: 1em;
  }
  .panel, .left-panel, .right-panel, .bottom-panel {
    max-width: 100%;
    min-width: 0;
  }
  .left-panel {
    min-width: 0;
  }
  #formActions {
    grid-column: auto;
    grid-row: auto;
  }
}
