@font-face {
  font-family: Lato;
  src: url("/assets/Lato-Regular.ttf");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f5f6f8;
  color: #18232a;
  font-family: Lato, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
summary {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
[hidden] {
  display: none !important;
}
.masthead {
  height: 100px;
  padding: 24px 4%;
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid #dee2e5;
  background: #fff;
}
.masthead img {
  width: 198px;
  height: auto;
}
.environment {
  font-size: 12px;
  letter-spacing: 0.17em;
  color: #58656d;
  border-left: 1px solid #d7dce0;
  padding-left: 30px;
}
.environment span {
  color: #bc3336;
  margin: 0 9px;
}
.masthead #logout {
  margin-left: auto;
}
main {
  max-width: 1800px;
  margin: auto;
  padding: 38px 4% 48px;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 400;
  margin-bottom: 10px;
}
h2 {
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.17em;
  color: #a92d35;
  margin-bottom: 17px;
  font-weight: bold;
}
.intro {
  color: #5a666d;
  font-size: 18px;
  margin-bottom: 0;
}
.project-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 24px;
}
.version-block {
  text-align: right;
  font-size: 14px;
  color: #5a666d;
}
.version-block p {
  margin: 10px 0 0;
}
.badge {
  display: inline-block;
  background: #fff0dc;
  color: #825417;
  border: 1px solid #e9d6b5;
  padding: 7px 13px;
  border-radius: 30px;
  font-size: 14px;
}
.badge.approved {
  background: #e5f2eb;
  color: #286143;
  border-color: #bfddcc;
}
.badge.changes_requested {
  background: #fbe9ea;
  color: #922b33;
  border-color: #ecc7cb;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  align-items: start;
  gap: 28px;
}
.preview-panel {
  border: 1px solid #d8dee3;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 17px;
  border-bottom: 1px solid #e3e7ea;
  gap: 12px;
}
.devices {
  display: flex;
  background: #eef0f3;
  padding: 4px;
  border-radius: 7px;
}
.devices button {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  font-size: 14px;
  border-radius: 5px;
  color: #58656d;
}
.devices button[aria-pressed="true"] {
  background: #fff;
  color: #18232a;
  box-shadow: 0 1px 4px #18232a18;
}
.quiet {
  border: 0;
  background: transparent;
  color: #52616a;
  padding: 6px 9px;
  font-size: 14px;
}
.quiet:hover {
  color: #ac2935;
}
.tools {
  display: flex;
  gap: 5px;
}
.preview-caption {
  padding: 11px 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #6b767e;
}
.preview-caption > span:first-child {
  letter-spacing: 0.1em;
  font-weight: bold;
  color: #8b363d;
}
.preview-stage {
  background: #dfe4e9;
  padding: 24px 12px;
  display: flex;
  justify-content: center;
  overflow: auto;
  height: 760px;
}
.preview-stage iframe {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  border: 0;
  background: #fff;
  box-shadow: 0 8px 25px #2634401c;
  border-radius: 3px;
}
.preview-stage[data-device="tablet"] iframe {
  width: 768px;
}
.preview-stage[data-device="mobile"] iframe {
  width: 390px;
}
.preview-panel.expanded {
  position: fixed;
  inset: 15px;
  z-index: 10;
  box-shadow: 0 0 0 30px #18232ab3;
  display: flex;
  flex-direction: column;
}
.expanded .preview-stage {
  height: auto;
  flex: 1;
}
.preview-foot {
  padding: 13px 18px;
  font-size: 12px;
  letter-spacing: 0.07em;
  color: #933941;
  display: flex;
  gap: 12px;
}
.preview-foot span {
  letter-spacing: 0;
  color: #66727a;
}
.review-panel {
  background: white;
  border: 1px solid #dce1e5;
  border-radius: 12px;
  padding: 25px;
}
.review-panel > p:not(.eyebrow) {
  color: #5a666d;
}
.review-panel p {
  font-size: 15px;
}
.review-panel details {
  font-size: 14px;
  border-bottom: 1px solid #e4e7ea;
  padding-bottom: 17px;
  margin: 0 0 20px;
  color: #59666d;
}
.review-panel details p {
  margin: 10px 0 0;
}
.review-panel summary {
  cursor: pointer;
  color: #273b46;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
legend {
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: bold;
}
.decision-options {
  display: grid;
  gap: 9px;
  margin-bottom: 22px;
}
.decision {
  display: flex;
  gap: 9px;
  border: 1px solid #d8dfe4;
  border-radius: 7px;
  padding: 13px 10px;
  cursor: pointer;
}
.decision:has(input:checked) {
  border-color: #ac333f;
  background: #fff7f7;
}
.decision input {
  accent-color: #aa2938;
  margin-top: 5px;
}
.decision strong {
  font-size: 15px;
  display: block;
}
.decision small {
  display: block;
  font-size: 13px;
  color: #66737b;
  margin-top: 3px;
}
label:not(.decision) {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 7px;
}
input:not([type="radio"]):not([type="checkbox"]),
textarea {
  border: 1px solid #cbd3da;
  background: #fff;
  border-radius: 6px;
  padding: 10px 11px;
  width: 100%;
  min-width: 0;
  color: #18232a;
}
textarea {
  resize: vertical;
}
.identity {
  display: grid;
  gap: 14px;
  margin: 16px 0 20px;
}
.primary {
  background: #aa2d3b;
  color: white;
  border: 1px solid #aa2d3b;
  border-radius: 6px;
  padding: 12px 20px;
  font-weight: bold;
}
.primary:hover {
  background: #902432;
}
.secondary {
  background: white;
  border: 1px solid #cbd3da;
  padding: 12px 20px;
  border-radius: 6px;
}
.submit {
  width: 100%;
}
label.confirmation {
  display: flex;
  align-items: start;
  gap: 8px;
  font-weight: 400;
  margin: 15px 0;
}
.confirmation input {
  margin-top: 4px;
  accent-color: #aa2d3b;
}
#feedback {
  margin: 12px 0 0;
}
#feedback.error,
#login-error {
  color: #a12736;
}
.privacy {
  font-size: 12px !important;
  color: #748087 !important;
  margin: 15px 0 0;
}
.history {
  padding: 32px 0;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 30px;
}
.history h2 {
  font-size: 26px;
}
.event {
  border-left: 2px solid #cbd3da;
  padding: 0 0 24px 20px;
}
.event:last-child {
  padding-bottom: 0;
}
.event p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 10px 0;
  color: #4e606a;
}
.event small {
  font-size: 13px;
  color: #66737b;
}
.event strong {
  font-size: 16px;
}
.muted {
  color: #748087;
  font-size: 14px;
}
.login {
  max-width: 1000px;
  padding-top: 100px;
  padding-bottom: 100px;
}
.login h1 {
  font-size: clamp(42px, 5vw, 68px);
  margin-bottom: 24px;
}
.login .intro {
  margin-bottom: 35px;
}
.login form {
  max-width: 530px;
  margin-bottom: 25px;
}
.password-row {
  display: flex;
  gap: 10px;
}
.password-row button {
  white-space: nowrap;
}
footer {
  border-top: 1px solid #dce1e5;
  padding: 25px 4%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #69757e;
  font-size: 13px;
}
footer > span:last-child {
  font-size: 11px;
  letter-spacing: 0.1em;
}
.admin-card {
  background: #fff;
  border: 1px solid #dce1e5;
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 25px;
}
.admin-card .event {
  margin-top: 22px;
}
a {
  color: #a42d39;
}
@media (min-width: 1600px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 410px;
  }
  .preview-stage {
    height: 850px;
  }
}
@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .review-panel {
    max-width: none;
  }
  .identity {
    grid-template-columns: 1fr 1fr;
  }
  .preview-stage {
    height: 680px;
  }
  .preview-stage[data-device="tablet"] iframe {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .masthead {
    height: 80px;
    padding: 18px 5%;
    gap: 15px;
  }
  .masthead img {
    width: 145px;
  }
  .environment {
    font-size: 10px;
    padding-left: 15px;
    letter-spacing: 0.08em;
    max-width: 120px;
  }
  .project-heading {
    align-items: start;
    flex-direction: column;
    gap: 17px;
  }
  .version-block {
    text-align: left;
  }
  .preview-toolbar {
    padding: 10px 8px;
    gap: 4px;
  }
  .devices button {
    padding: 6px 9px;
  }
  .quiet {
    padding: 6px;
    font-size: 13px;
  }
  .preview-caption {
    font-size: 11px;
  }
  .preview-caption span:last-child {
    display: none;
  }
  .preview-stage {
    height: 620px;
    padding: 12px 5px;
  }
  .preview-stage[data-device="mobile"] iframe {
    width: 100%;
    max-width: 390px;
  }
  .preview-foot {
    flex-direction: column;
    gap: 3px;
  }
  .review-panel {
    padding: 21px;
  }
  .history {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .identity {
    grid-template-columns: 1fr;
  }
  .login {
    padding-top: 65px;
  }
  .password-row {
    flex-direction: column;
  }
  footer {
    flex-direction: column;
    gap: 10px;
  }
  .masthead #logout {
    font-size: 12px;
  }
}

.preview-stage {
  position: relative;
  overflow: hidden;
}
.preview-stage iframe {
  position: absolute;
  top: 24px;
  transform-origin: top left;
}

/* Original TLA artwork: preserve its ladybird and full stacked lockup. */
.masthead {height:120px;padding-top:16px;padding-bottom:16px;}
.masthead img {width:170px;height:auto;max-height:88px;object-fit:contain;display:block;}
@media(max-width:600px){.masthead{height:100px;padding-top:12px;padding-bottom:12px;}.masthead img{width:145px;max-height:76px;}}
