.status-card.warning {
  background: #fff8e8;
  border-color: #ead8a5;
}

.status-card.warning .status-icon {
  background: #ffe7a3;
  color: #745300;
}

.quality-card {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #dce4de;
  border-radius: 10px;
  background: #fafcf9;
}

.quality-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.quality-heading b {
  font-size: 11px;
}

.quality-heading span {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.quality-card ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 8px;
  padding: 0;
  list-style: none;
}

.quality-card li {
  position: relative;
  padding-left: 18px;
  color: #52615a;
  font-size: 10px;
  line-height: 1.4;
}

.quality-card li::before {
  position: absolute;
  top: 0;
  left: 0;
  font-weight: 900;
}

.quality-card li.pass::before {
  color: #20824d;
  content: "✓";
}

.quality-card li.warn::before {
  display: grid;
  width: 13px;
  height: 13px;
  place-items: center;
  border-radius: 50%;
  background: #ffe7a3;
  color: #745300;
  content: "!";
  font-size: 8px;
}

.quality-card > p {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid #e7ece8;
  color: #6c7872;
  font-size: 9px;
  line-height: 1.5;
}

.compact-control {
  margin-top: 8px;
  margin-bottom: 10px;
  padding-bottom: 14px;
}

.cloud-cleanup {
  width: 100%;
  margin-top: 8px;
}

.cloud-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}

.export-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.partner-card {
  border-color: #b9d6c4;
  background: linear-gradient(145deg, #ffffff, #f4faef);
}

.partner-card .button {
  margin-top: auto;
  text-decoration: none;
}

.partner-card .button:disabled {
  cursor: not-allowed;
  opacity: .5;
  transform: none;
  filter: none;
}

.partner-card > small {
  margin-top: 9px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}

.partner-fallback {
  margin-top: 9px;
  color: var(--green);
  font-size: 10px;
  font-weight: 750;
  text-align: center;
}

.partner-steps {
  margin: 0 0 18px;
  padding-left: 18px;
  color: #53615b;
  font-size: 10px;
  line-height: 1.6;
}

.partner-steps b {
  color: var(--ink);
}

.partner-steps code {
  overflow-wrap: anywhere;
  color: var(--green);
  font-size: 9px;
  font-weight: 750;
}

.country-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.country-picker select {
  min-height: 44px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  text-transform: none;
}

.country-notice {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 0 16px;
  padding: 13px 15px;
  border: 1px solid #dfc9a7;
  border-radius: 12px;
  background: #fff8e8;
  color: var(--ink);
}

.country-notice b {
  font-size: 12px;
}

.country-notice span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.country-notice a {
  color: var(--green);
  font-weight: 800;
}

body[data-market="us"] .canvas-wrap canvas {
  aspect-ratio: 1;
}

.download-dialog {
  width: min(430px, calc(100vw - 28px));
  border: 0;
  border-radius: 20px;
  padding: 30px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(41, 37, 33, .28);
  text-align: center;
}

.download-dialog::backdrop {
  background: rgba(41, 37, 33, .58);
  backdrop-filter: blur(3px);
}

.download-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f1e7df;
  color: var(--ink);
  font-size: 24px;
}

.download-check {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--green);
  font-size: 25px;
  font-weight: 900;
}

.download-dialog h2 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 500;
}

.download-dialog p,
.download-dialog small {
  color: var(--muted);
  line-height: 1.55;
}

.download-dialog p {
  margin: 0 0 10px;
  font-size: 13px;
}

.download-dialog code {
  display: block;
  margin: 0 0 20px;
  overflow-wrap: anywhere;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.download-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.download-dialog small {
  display: block;
  margin-top: 13px;
  font-size: 10px;
}

@media (max-width: 480px) {
  .download-dialog {
    padding: 28px 20px 22px;
  }

  .download-dialog-actions {
    grid-template-columns: 1fr;
  }
}

.site-legal {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.info-bubble {
  position: relative;
}

.info-bubble summary {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid #c9d2cc;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.info-bubble summary::-webkit-details-marker {
  display: none;
}

.info-bubble summary:focus-visible {
  outline: 3px solid rgba(217, 255, 120, .85);
  outline-offset: 2px;
}

.info-bubble-content {
  position: absolute;
  right: -8px;
  bottom: calc(100% + 10px);
  z-index: 12;
  width: min(270px, calc(100vw - 28px));
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(41, 37, 33, .17);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

.info-bubble-content::after {
  position: absolute;
  right: 12px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  content: '';
  transform: rotate(45deg);
}

.info-bubble-content p {
  margin: 4px 0 9px;
  color: var(--muted);
}

.info-bubble-content a {
  color: var(--green);
  font-weight: 750;
  text-underline-offset: 3px;
}
