* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f5f7;
  color: #1f2430;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1f2430;
  color: #fff;
  padding: 14px 24px;
}
.topbar a { color: #fff; text-decoration: none; margin-right: 16px; font-size: 14px; opacity: 0.85; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar .brand { font-weight: 600; font-size: 16px; }
.container { max-width: 900px; margin: 32px auto; padding: 0 20px; }
.card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}
h1 { font-size: 22px; margin-top: 0; }
h2 { font-size: 17px; margin-top: 0; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; margin-top: 12px; }
input, select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #d4d7dd;
  border-radius: 6px;
  font-size: 14px;
}
button {
  background: #3454d1;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 16px;
}
button:hover { background: #2a43ab; }
button.secondary { background: #6b7280; }
button.danger { background: #d23b3b; padding: 6px 10px; margin-top: 0; }
.error { color: #d23b3b; font-size: 13px; margin-top: 10px; min-height: 16px; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #eceef1; font-size: 14px; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 10px; }
.report-tile {
  display: block;
  width: 100%;
  background: #eef1ff;
  border: 1px solid #d6deff;
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  color: #1f2430;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.1s ease;
}
.report-tile:hover { transform: translateY(-2px); border-color: #3454d1; }
.iframe-wrap {
  position: relative;
  width: 100%;
  padding-top: 60%; /* 5:3 aspect ratio, adjust as needed */
  margin-top: 10px;
  border: 1px solid #eceef1;
  border-radius: 8px;
  overflow: hidden;
}
.iframe-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #e7e9ee; }
.pill.admin { background: #fde8c9; color: #92600b; }
.row-actions { display: flex; gap: 8px; }
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { width: 360px; }
.hidden { display: none !important; }