:root {
  color-scheme: light;
  --bg: #f3f6fb;
  --card: #ffffff;
  --line: #d7deea;
  --text: #1a2637;
  --muted: #5c6b81;
  --ok: #d7f4de;
  --error: #ffd9d9;
  --warn: #fff1c8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(180deg, #edf2f9 0%, var(--bg) 100%);
  color: var(--text);
}

.wrap {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.topbar nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

a {
  color: #0f5cbf;
  text-decoration: none;
}

main.wrap {
  padding: 24px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.narrow {
  max-width: 480px;
}

.stack {
  display: grid;
  gap: 10px;
}

input,
select,
textarea,
button {
  font: inherit;
  padding: 10px;
}

button {
  cursor: pointer;
}

.alert {
  padding: 10px;
  border-radius: 8px;
}

.alert.ok {
  background: var(--ok);
}

.alert.error {
  background: var(--error);
}

.alert.warn {
  background: var(--warn);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.inline {
  display: inline;
}

.inline-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.button-like {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #f4f8ff;
  color: var(--text);
}

.pending-item,
.trusted-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fbfdff;
}

.pending-item header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: #eef4ff;
}

.badge.pending {
  background: #fff4d7;
}

.badge.approved {
  background: #d7f4de;
}

.badge.denied,
.badge.high_risk_denied,
.badge.expired {
  background: #ffd9d9;
}

.checkline {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.env-snippet {
  width: 100%;
  font-family: Consolas, "Courier New", monospace;
  padding: 10px;
}

.flat-list {
  margin: 0;
  padding-left: 18px;
}
