:root {
  color: #17231d;
  background: #edf0ec;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100dvh;
}

button,
a {
  font: inherit;
}

.toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 14px 9px 18px;
  color: #f8fbf8;
  background: #16231c;
  border-bottom: 1px solid #2d3b33;
  box-shadow: 0 2px 12px rgb(15 25 19 / 16%);
}

.identity,
.actions {
  display: flex;
  align-items: center;
}

.identity {
  min-width: 0;
  gap: 11px;
}

.mark {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  color: #16231c;
  background: #d8ff6b;
  border-radius: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
}

.eyebrow,
h1 {
  margin: 0;
}

.eyebrow {
  color: #9eafa5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.25;
  text-transform: uppercase;
}

h1 {
  margin-top: 1px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 620;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actions {
  gap: 8px;
}

.setup-button {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 6px;
  padding: 7px 9px;
  color: #bdc9c1;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.setup-button:hover {
  color: #fff;
  background: #27372e;
}

.setup-button:focus-visible {
  outline: 3px solid #d8ff6b;
  outline-offset: 2px;
}

.connection-dot {
  width: 7px;
  height: 7px;
  background: #aee948;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgb(174 233 72 / 12%);
}

.connection-dot.blocked {
  background: #ffba66;
  box-shadow: 0 0 0 3px rgb(255 186 102 / 14%);
}

.connection-dot.checking {
  background: #9eafa5;
  box-shadow: 0 0 0 3px rgb(158 175 165 / 14%);
}

.icon-button,
.text-button {
  min-height: 36px;
  border: 1px solid #3b4c42;
  border-radius: 8px;
  color: #f7faf8;
  background: transparent;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.icon-button:hover,
.text-button:hover {
  background: #27372e;
  border-color: #53655a;
}

.icon-button:focus-visible,
.text-button:focus-visible {
  outline: 3px solid #d8ff6b;
  outline-offset: 2px;
}

.icon-button {
  display: grid;
  width: 38px;
  padding: 0;
  place-items: center;
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.text-button.primary {
  color: #17231d;
  background: #d8ff6b;
  border-color: #d8ff6b;
}

.text-button.primary:hover {
  background: #e4ff98;
  border-color: #e4ff98;
}

.frame-shell {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #fff;
}

.setup-panel {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: min(430px, calc(100% - 28px));
  padding: 22px;
  overflow-y: auto;
  color: #243129;
  background: #f8faf6;
  border: 1px solid #d9dfd8;
  border-radius: 12px;
  box-shadow: 0 20px 55px rgb(19 34 25 / 20%);
}

.setup-panel[hidden] {
  display: none;
}

.panel-heading,
.section-heading,
.panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow.dark {
  color: #68776e;
}

h2,
h3 {
  margin: 0;
}

h2 {
  margin-top: 3px;
  color: #17231d;
  font-size: 22px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 13px;
  letter-spacing: 0.01em;
}

.close-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0 0 2px;
  place-items: center;
  color: #58675e;
  background: transparent;
  border: 1px solid #d3dad4;
  border-radius: 8px;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.close-button:hover {
  color: #17231d;
  background: #edf1ec;
}

.status-summary {
  display: flex;
  gap: 12px;
  margin: 20px 0 24px;
  padding: 14px;
  background: #fff2e3;
  border: 1px solid #f0d2ad;
  border-radius: 9px;
}

.status-summary.ready {
  background: #edf8dc;
  border-color: #cde6a7;
}

.status-summary.checking {
  background: #eef1ee;
  border-color: #d8ded9;
}

.summary-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  color: #6a3a00;
  background: #ffd39d;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.ready .summary-icon {
  color: #2b4b09;
  background: #ccec9d;
}

.checking .summary-icon {
  color: #536158;
  background: #dce2dd;
}

.status-summary strong {
  display: block;
  margin-top: 1px;
  font-size: 14px;
}

.status-summary p {
  margin: 3px 0 0;
  color: #655b50;
  font-size: 12px;
  line-height: 1.45;
}

.status-summary.ready p {
  color: #536442;
}

.issue-count {
  display: inline-flex;
  min-width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  color: #6a3a00;
  background: #ffe3c2;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 24px;
}

.check-item {
  position: relative;
  padding: 12px 12px 12px 38px;
  background: #fff;
  border: 1px solid #dfe4df;
  border-radius: 8px;
}

.check-item::before {
  position: absolute;
  top: 13px;
  left: 13px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  content: "!";
  color: #704100;
  background: #ffd79f;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.check-item.success::before {
  content: "✓";
  color: #315509;
  background: #d5efac;
}

.check-item strong {
  display: block;
  font-size: 13px;
}

.check-item p {
  margin: 3px 0 0;
  color: #657169;
  font-size: 12px;
  line-height: 1.45;
}

.copy-button {
  padding: 3px 8px;
  color: #415047;
  background: transparent;
  border: 1px solid #ccd4ce;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.policy-code {
  margin: 10px 0 8px;
  padding: 13px;
  overflow-x: auto;
  color: #e8f2e9;
  background: #17231d;
  border-radius: 8px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.policy-note {
  margin: 0 0 20px;
  color: #657169;
  font-size: 11px;
  line-height: 1.5;
}

.policy-note code {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.current-headers {
  padding: 11px 0;
  border-top: 1px solid #dfe4df;
  border-bottom: 1px solid #dfe4df;
}

.current-headers summary {
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.current-headers dl {
  display: grid;
  gap: 12px;
  margin: 13px 0 2px;
}

.current-headers dt {
  margin-bottom: 3px;
  color: #6a776f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.current-headers dd {
  max-height: 95px;
  margin: 0;
  padding: 8px;
  overflow: auto;
  color: #3f4b44;
  background: #edf1ed;
  border-radius: 6px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.45;
  word-break: break-word;
}

.panel-actions {
  margin-top: 16px;
}

.recheck-button {
  min-height: 35px;
  padding: 0 12px;
  color: #f7faf8;
  background: #26372d;
  border: 1px solid #26372d;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.recheck-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.panel-actions a {
  color: #44544a;
  font-size: 12px;
  font-weight: 600;
}

iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.no-script {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  margin: 0;
  padding: 12px 14px;
  color: #fff;
  background: #16231c;
  border-radius: 8px;
  font-size: 13px;
}

.no-script a {
  color: #d8ff6b;
}

@media (max-width: 680px) {
  .toolbar {
    min-height: 58px;
    padding: 8px 10px 8px 12px;
  }

  #full-screen {
    display: none;
  }

  .setup-button {
    width: 36px;
    justify-content: center;
    margin-right: 0;
    padding-inline: 0;
  }

  #setup-label {
    display: none;
  }

  .mark {
    width: 34px;
    height: 34px;
  }

  .text-button {
    padding-inline: 10px;
  }
}

@media (max-width: 520px) {
  .setup-panel {
    inset: 0;
    width: 100%;
    border: 0;
    border-radius: 0;
  }
}

@media (max-width: 430px) {
  .eyebrow,
  .icon-button {
    display: none;
  }

  .identity {
    gap: 8px;
  }

  h1 {
    font-size: 14px;
  }
}
