* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f7f8fa;
  color: #23394c;
  font:
    14px/1.7 "Inter",
    system-ui,
    sans-serif;
}
.sandbox-header {
  max-width: 1380px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 40px;
  border-bottom: 1px solid #e3e9f0;
}
.sandbox-header > div {
  display: flex;
  align-items: center;
  gap: 20px;
}
.sandbox-header-label {
  font-size: 13px;
  letter-spacing: 0;
  color: #69737b;
  font-weight: 400;
  margin-left: 5px;
}
.sandbox-label {
  color: #67737c;
  font-size: 12px;
}
.sandbox-header .af-button {
  padding: 7px 12px;
  font-size: 12px;
}
.sandbox-main {
  max-width: 1300px;
  margin: auto;
  padding: 0 40px;
}
.intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 100px;
  padding: 65px 0 60px;
  align-items: center;
}
.intro h1 {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -1.6px;
  line-height: 1.15;
  margin: 22px 0;
}
.intro h1 span {
  color: #586da8;
}
.intro > div > p:not(.af-eyebrow) {
  font-size: 13px;
  color: #66737e;
  max-width: 405px;
}
.sandbox-start {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 25px;
  flex-wrap: wrap;
}
.sandbox-start > span {
  font-size: 11px;
  color: #667179;
}
.sandbox-start .af-button {
  font-size: 13px;
}
.intro #notice {
  font-size: 11px;
  margin-top: 15px;
  color: #67717a;
}
.sandbox-guide {
  background: #eef2f8;
  border: 1px solid #e2e9f1;
  border-radius: 10px;
  padding: 25px 28px;
}
.sandbox-guide > p {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #697381;
  margin-bottom: 23px;
}
.sandbox-guide ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 22px;
}
.sandbox-guide li {
  display: flex;
  gap: 17px;
  align-items: flex-start;
}
.sandbox-guide li > span {
  font: 11px monospace;
  color: #646f7c;
  padding-top: 3px;
}
.sandbox-guide strong {
  font-size: 13px;
  font-weight: 500;
  color: #5c7285;
  display: block;
}
.sandbox-guide small {
  display: block;
  font-size: 12px;
  color: #69717b;
  margin-top: 4px;
  line-height: 1.8;
}
.workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  scroll-margin-top: 20px;
}
.workspace[hidden] {
  display: none;
}
.workspace-toolbar {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 4px;
  font-size: 12px;
  color: #67737e;
}
.workspace-toolbar p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sandbox-session-dot {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #6aab8b;
}
.panel {
  min-width: 0;
  background: #fff;
  border: 1px solid #e0e8f0;
  border-radius: 11px;
  padding: 24px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.panel-kicker {
  color: #69737d;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 10px;
  margin: 0 0 8px;
}
.panel h2 {
  font-size: 18px;
  letter-spacing: -0.6px;
  font-weight: 500;
  margin: 0;
  color: #4b657a;
}
.panel-label {
  font-size: 10px;
  color: #64717b;
  background: #f2f5f9;
  padding: 4px 7px;
  border-radius: 4px;
}
.panel-heading .af-button {
  font-size: 11px;
  padding: 6px 9px;
  color: #62727f;
}
.suggestions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.suggestions button {
  font-size: 11px;
  padding: 6px 10px;
  color: #657384;
  background: #f5f7fb;
  border: 1px solid #e5ebf3;
  border-radius: 6px;
}
.suggestions button:hover {
  background: #eaf0fc;
  color: #4e70b9;
}
#messages {
  height: 340px;
  overflow: auto;
  padding: 15px 0 21px;
}
#messages:empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
#messages:empty::before {
  content: "Your conversation starts here.";
  font-size: 13px;
  color: #686f76;
}
.message {
  padding: 12px 15px;
  background: #f4f7fa;
  color: #607383;
  border-radius: 9px 9px 9px 2px;
  margin: 15px 24px 15px 0;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.customer {
  background: #edf2ff;
  color: #5c719d;
  margin-left: 35px;
  margin-right: 0;
  border-radius: 9px 9px 2px 9px;
}
.message strong {
  display: block;
  font-size: 10px;
  font-weight: 550;
  color: #67717b;
  margin-bottom: 7px;
}
.message.customer strong {
  color: #677187;
}
label {
  display: block;
  font-size: 12px;
  color: #62717f;
  margin: 0 0 7px;
}
textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid #e0e7f0;
  background: #fcfdff;
  color: #607487;
  padding: 12px;
  border-radius: 7px;
  font:
    11px/1.7 "Inter",
    system-ui,
    sans-serif;
  resize: vertical;
}
textarea::placeholder {
  color: #676f76;
}
textarea:focus {
  outline: 2px solid #b5c5ed;
  outline-offset: 2px;
}
.chat-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.chat-actions label {
  font-size: 11px;
  margin-bottom: 6px;
}
.chat-actions small {
  display: block;
  font-size: 10px;
  color: #676f76;
  margin-top: 5px;
}
#image {
  max-width: 215px;
  width: 100%;
  color: #67737e;
  font-size: 11px;
}
#image::file-selector-button {
  font:
    11px "Inter",
    system-ui,
    sans-serif;
  border: 1px solid #e1e7f0;
  border-radius: 4px;
  color: #62717f;
  background: #f7f9fc;
  padding: 5px 7px;
  margin-right: 6px;
}
.chat-actions .af-button {
  font-size: 12px;
  padding: 9px 12px;
  white-space: nowrap;
  margin-top: 17px;
}
.sample-photos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  font-size: 11px;
  color: #66717a;
}
.sample-photos a {
  color: #5c6f8c;
  text-decoration: none;
}
.hint {
  font-size: 11px;
  color: #67737b;
  line-height: 1.9;
  margin-top: 15px;
}
.hint strong {
  font-weight: 500;
  color: #607284;
}
#tabs {
  display: flex;
  gap: 3px;
  border-bottom: 1px solid #e6ecf3;
  margin: 0 -2px 15px;
}
#tabs button {
  font:
    12px "Inter",
    system-ui,
    sans-serif;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 9px 13px;
  color: #69737b;
}
#tabs button[aria-pressed="true"] {
  color: #556ea2;
  border-bottom-color: #7294d6;
}
#merchant {
  height: 385px;
  overflow: auto;
  padding: 0 5px 5px 0;
}
.record {
  padding: 13px 3px;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
  color: #627484;
}
.catalog-record {
  display: flex;
  align-items: center;
  gap: 12px;
}
.catalog-photo {
  height: 48px;
  width: 41px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 5px;
  background: #eff3f8;
  flex-shrink: 0;
}
.catalog-placeholder {
  height: 45px;
  width: 41px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #666e78;
  background: #f0f4f9;
  border-radius: 5px;
  flex-shrink: 0;
}
.record-title {
  font-size: 13px;
  font-weight: 500;
  color: #5d7387;
  display: block;
}
.record-subtitle {
  font-size: 11px;
  color: #667078;
  display: block;
  margin-top: 5px;
}
.catalog-record .record-price {
  margin-left: auto;
  white-space: nowrap;
  text-align: right;
  color: #5f7387;
  font-size: 12px;
}
.record-price small {
  display: block;
  font-size: 10px;
  color: #647169;
  margin-top: 5px;
}
.record-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.record-state {
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #63717c;
}
.record details {
  margin-top: 9px;
}
.record summary {
  font-size: 11px;
  color: #637280;
  cursor: pointer;
}
.record pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 11px/1.8 monospace;
  padding: 12px;
  background: #f6f8fc;
  border-radius: 6px;
  color: #647381;
  margin-top: 8px;
}
.record-response {
  font-size: 12px;
  line-height: 1.8;
  color: #627380;
  margin: 8px 0 0;
}
.merchant-empty {
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #676f76;
  text-align: center;
  padding: 30px;
}
#reply {
  border-top: 1px solid #e5ebf3;
  padding-top: 20px;
  margin-top: 15px;
}
.merchant-reply-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.merchant-reply-actions .af-button {
  font-size: 11px;
  padding: 9px 12px;
}
.sandbox-footer {
  max-width: 1220px;
  margin: 55px auto 0;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #e1e8f1;
  font-size: 11px;
  color: #67717a;
}
.af-button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
@media (max-width: 850px) {
  .sandbox-header {
    padding: 18px 22px;
  }
  .sandbox-header-label,
  .sandbox-label {
    display: none;
  }
  .sandbox-main {
    padding: 0 22px;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0;
  }
  .intro h1 {
    font-size: 31px;
  }
  .sandbox-guide {
    padding: 20px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .workspace-toolbar {
    flex-direction: column;
    gap: 8px;
  }
  .panel {
    padding: 20px;
  }
  .panel-label {
    font-size: 10px;
  }
  .panel h2 {
    font-size: 16px;
  }
  .sandbox-footer {
    margin: 35px 22px 0;
    flex-direction: column;
    gap: 9px;
  }
  .chat-actions {
    flex-wrap: wrap;
  }
  .chat-actions .af-button {
    margin-top: 4px;
  }
  #messages {
    height: 300px;
  }
}
