:root {
  color-scheme: light;
  font-family: "Segoe UI", Tahoma, sans-serif;
  --teal: #0c695d;
  --teal-dark: #075147;
  --ink: #20312d;
  --muted: #71817c;
  --line: #dce7e3;
  --pale: #f0f7f4;
}

* { box-sizing: border-box; }
body { width: 340px; margin: 0; background: #f7faf9; color: var(--ink); }
.popup { padding: 17px; }
.brand-row { display: block; text-align: right; }
.brand-logo { display: block; width: 184px; height: auto; margin-left: auto; }
.brand-row small { display: block; margin-top: -2px; color: var(--muted); font-size: 10px; }
.intro { margin: 13px 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
button { width: 100%; min-height: 37px; border: 1px solid transparent; border-radius: 8px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
.primary { background: var(--teal); color: #fff; }
.primary:hover { background: var(--teal-dark); }
.secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.secondary:hover { background: var(--pale); border-color: #b9d3cb; color: var(--teal-dark); }
.status { min-height: 20px; margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.status.success { color: var(--teal-dark); }
.status.error { color: #a34c56; }
.status.loading { color: #a68135; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 7px 0; }
.stats span { padding: 6px 4px; border-radius: 6px; background: var(--pale); color: var(--muted); font-size: 10px; text-align: center; }
.stats b { display: block; margin-bottom: 1px; color: var(--teal-dark); font-size: 13px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 7px; }
details { margin-top: 13px; border-top: 1px solid var(--line); padding-top: 10px; color: var(--muted); font-size: 11px; }
summary { color: var(--teal-dark); cursor: pointer; font-weight: 600; }
ol { margin: 8px 0 0; padding-inline-start: 20px; line-height: 1.8; }
.popup-footer { display: grid; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.popup-footer-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 10px; text-decoration: none; }
.popup-footer-item:hover { border-color: #b9d3cb; background: var(--pale); }
.popup-footer-item strong { overflow: hidden; color: var(--teal-dark); font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
