/* JWC Shield — single panel. Colours, type and card follow Shopify Polaris so it sits natively in the admin. */
:root {
  --bg: #f1f1f1;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --border: #e3e3e3;
  --border-2: #ebebeb;
  --text: #303030;
  --text-2: #616161;
  --text-3: #b5b5b5;
  --success-bg: #cdfee1;
  --success-text: #0c5132;
  --success: #29845a;
  --font: Inter, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 20px;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
}
h1, p, dl, dd { margin: 0; }
ui-title-bar { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 12.5px; }

.page { max-width: 640px; margin: 0 auto; padding: 32px 24px 40px; }
body.is-embedded .page { padding-top: 16px; }

.card { position: relative; background: var(--surface); border-radius: 12px; box-shadow: 0 1px 0 0 rgba(26, 26, 26, 0.07); }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 0 rgba(204, 204, 204, 0.5), inset 0 -1px 0 0 rgba(0, 0, 0, 0.17),
    inset 1px 0 0 0 rgba(0, 0, 0, 0.13), inset -1px 0 0 0 rgba(0, 0, 0, 0.13);
}

.card__hd { display: flex; align-items: center; gap: 12px; padding: 16px; }
.app-icon { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.app-title { flex: 1; min-width: 0; }
.app-title h1 { font-size: 14px; line-height: 20px; font-weight: 650; }
.app-title p { color: var(--text-2); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 8px; flex: none;
  background: var(--success-bg); color: var(--success-text); font-size: 12px; line-height: 16px; font-weight: 550;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(41, 132, 90, 0.5); } 70%, 100% { box-shadow: 0 0 0 5px rgba(41, 132, 90, 0); } }

.row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border-2); }
.row dt { color: var(--text-2); }
.row dd { min-width: 0; overflow-wrap: anywhere; }

.key {
  display: inline-flex; align-items: center; max-width: 100%; padding: 5px 10px; border-radius: 8px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border);
  font-family: var(--mono); font-size: 12.5px; line-height: 18px; white-space: nowrap;
}
.key__dots { color: var(--text-3); letter-spacing: 1px; overflow: hidden; min-width: 0; }
.key__last { color: var(--text); font-weight: 650; margin-left: 1px; }
.key__lock { width: 14px; height: 14px; margin-left: 10px; flex: none; fill: none; stroke: var(--text-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.card__ft { display: flex; gap: 8px; align-items: flex-start; padding: 12px 16px; border-top: 1px solid var(--border-2); color: var(--text-2); }
.card__ft svg { width: 16px; height: 16px; margin-top: 2px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

@media (max-width: 479px) {
  .page { padding: 16px 16px 32px; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .key__dots { letter-spacing: 0.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
}
