* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #0f1115;
  color: #e8eaed;
}
.wrap { max-width: 720px; margin: 40px auto; padding: 0 16px; }
.card {
  background: #171a21;
  border: 1px solid #2a2f3a;
  border-radius: 16px;
  padding: 28px;
}
h1 { margin: 0 0 8px; font-size: 28px; }
.sub { margin: 0 0 20px; color: #9aa3b2; }
label { display: block; margin: 14px 0 6px; color: #c5cad3; font-size: 14px; }
input[type="url"], input[type="text"], input[type="file"] {
  width: 100%;
  background: #101318;
  color: #e8eaed;
  border: 1px solid #313846;
  border-radius: 10px;
  padding: 12px 14px;
}
input.wide { min-height: 52px; font-size: 18px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  background: #101318;
  border: 1px solid #313846;
  border-radius: 999px;
  padding: 8px 12px;
}
button {
  margin-top: 20px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  background: #4f8cff;
  color: white;
  font-size: 16px;
  cursor: pointer;
}
.fail { background: #3a1717; color: #ffb4b4; padding: 10px 12px; border-radius: 8px; }
.ok { color: #9fe7b0; }
.jobs { margin-top: 20px; display: grid; gap: 8px; }
.job {
  display: flex;
  justify-content: space-between;
  color: inherit;
  text-decoration: none;
  background: #171a21;
  border: 1px solid #2a2f3a;
  border-radius: 12px;
  padding: 12px 14px;
}
.status { font-size: 12px; text-transform: uppercase; }
.status.uploaded, .status.ready, .status.draft { color: #9fe7b0; }
.status.failed { color: #ffb4b4; }
.status.running, .status.queued, .status.pending { color: #f5d67b; }
.status.partial { color: #f5d67b; }
.logs { color: #c5cad3; }
.back a { color: #9aa3b2; }
.chan { border-top: 1px solid #2a2f3a; padding: 12px 0; }
.head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.connects { display: flex; align-items: center; gap: 10px; }
.fb-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #1877f2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.35);
}
.fb-icon.connected { width: 28px; height: 28px; font-size: 16px; border-radius: 8px; }
.fb-chip { display: flex; align-items: center; gap: 8px; background: #101318; border: 1px solid #313846; border-radius: 999px; padding: 6px 10px; }
.fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: auto;
  min-width: 148px;
  background: #1877f2;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.35);
}
.ask { background: #152238; color: #cfe3ff; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.linkish { margin: 0; width: auto; background: transparent; color: #9aa3b2; padding: 0; font-size: 12px; }
.pages { display: grid; gap: 10px; }
.page {
  width: 100%;
  text-align: left;
  background: #101318;
  border: 1px solid #313846;
  color: #e8eaed;
  display: grid;
  gap: 4px;
}
.page span { color: #9aa3b2; font-size: 12px; }
code { color: #9fe7b0; word-break: break-all; }
.arch-link { color: #7fb0ff; text-decoration: none; border-bottom: 1px dotted #7fb0ff; }
.job strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 12px; }
.fb-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
@media (max-width: 640px) {
  .wrap { margin: 16px auto; padding: 0 12px; }
  .card { padding: 18px; border-radius: 12px; }
  h1 { font-size: 22px; }
  .head { flex-direction: column; align-items: stretch; }
  .connects { width: 100%; }
  .fb-btn { width: 100%; min-height: 48px; }
  .fb-chip { flex-wrap: wrap; width: 100%; }
  .fb-chip span { max-width: none; }
  .row { flex-direction: column; }
  .choice { width: 100%; min-height: 44px; }
  input[type="url"], input[type="text"], input[type="file"], input.wide {
    font-size: 16px;
    min-height: 48px;
  }
  button { min-height: 48px; }
  .job { gap: 8px; align-items: flex-start; }
  .job strong { white-space: normal; }
}
