:root {
  color-scheme: dark;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: linear-gradient(rgb(18, 18, 18) 0%, rgb(11, 11, 11) 100%);
  color: rgba(255, 255, 255, 0.92);
}

.wrap {
  box-sizing: border-box;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 18px 40px;
}

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

/* Outer KeyPilot popover titlebar owns title + close when embedded. */
.kp-popover-embed .header,
.header[hidden] {
  display: none !important;
}

h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.2px;
}

.sub {
  margin: 6px 0 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.layout-banner {
  margin: 0 0 4px 0;
  min-height: 0;
}

.layout-label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 140, 0, 0.35);
  background: rgba(255, 140, 0, 0.10);
  color: rgba(255, 210, 150, 0.95);
  font-size: 11px;
  letter-spacing: 0.2px;
  vertical-align: middle;
}

.layout-label[hidden] {
  display: none !important;
}

.p-follow {
  margin-top: 10px;
}

.header-actions {
  display: flex;
  gap: 10px;
}

/* Always visible under the outer popover titlebar (header is hidden when embedded). */
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px 0;
}

.btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
}

.btn:hover {
  border-color: rgba(255,255,255,0.28);
}

.btn-secondary {
  border-color: rgba(255,140,0,0.35);
}

.btn-launch {
  border-color: rgba(255, 140, 0, 0.55);
  background: linear-gradient(180deg, rgba(255, 140, 0, 0.22) 0%, rgba(255, 140, 0, 0.10) 100%);
  color: rgba(255, 230, 200, 0.98);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.btn-launch:hover {
  border-color: rgba(255, 160, 40, 0.75);
  background: linear-gradient(180deg, rgba(255, 140, 0, 0.32) 0%, rgba(255, 140, 0, 0.16) 100%);
}

.card {
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(20,20,20,0.6);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  padding: 14px 14px 12px;
}

.card h2 {
  margin: 0 0 10px 0;
  font-size: 15px;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.86);
}

.list li {
  margin: 8px 0;
}

kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid #3a3a3a;
  border-bottom-color: #2a2a2a;
  border-radius: 4px;
  background: linear-gradient(180deg, #2b2b2b 0%, #1a1a1a 100%);
  color: #f1f1f1;
}

.p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.80);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}


