:root {
  color-scheme: light;
  --ink: #15251d;
  --muted: #68746d;
  --line: #d5ded8;
  --paper: #f5f7f3;
  --card: rgba(255, 255, 255, 0.9);
  --green: #2f7a55;
  --green-dark: #20583c;
  --green-soft: #e3efe8;
  --amber: #b87819;
  --red: #b4443d;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(94, 145, 111, 0.18), transparent 33rem),
    linear-gradient(145deg, #edf3ed, var(--paper) 52%, #e9efe9);
}

button,
input {
  font: inherit;
}

.shell {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
  padding: 28px 0;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(100%, 430px);
  padding: 34px;
  border: 1px solid rgba(71, 103, 83, 0.2);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 24px 70px rgba(28, 58, 40, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: var(--green);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.brand-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -0.045em;
  line-height: 1;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.google-wrap {
  min-height: 44px;
  margin-top: 28px;
}

.message {
  min-height: 22px;
  margin: 16px 0 0;
  color: var(--red);
  font-size: 14px;
}

.fine-print {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.status-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 24px 0;
  place-items: center;
  border-radius: 50%;
  color: var(--amber);
  background: #fbf0d7;
  font-size: 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.topbar .brand {
  margin: 0;
}

.logout {
  color: var(--green-dark);
  font-size: 14px;
}

.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 18px 55px rgba(28, 58, 40, 0.08);
}

.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.panel-head h1 {
  font-size: 32px;
}

.device-list {
  display: grid;
  gap: 12px;
}

.device {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.device h2 {
  margin: 0 0 7px;
  font-size: 17px;
}

.device-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted);
  font-size: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.pill.pending {
  color: #774c0d;
  background: #fbf0d7;
}

.pill.revoked {
  color: #7d2926;
  background: #f7dfdd;
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 9px 13px;
  color: white;
  background: var(--green);
  cursor: pointer;
  font-weight: 700;
}

.btn:hover {
  background: var(--green-dark);
}

.btn.danger {
  background: var(--red);
}

.empty {
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 640px) {
  .card {
    padding: 28px 24px;
  }

  .device {
    grid-template-columns: 1fr;
  }

  .actions {
    justify-content: flex-start;
  }
}
