*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { font-size: 14px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f8f9fa;
  color: #202124;
  line-height: 1.5;
}
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: #f1f3f4;
}
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 44px 40px;
  text-align: center;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
}
.app-kicker {
  margin-bottom: 6px;
  color: #1a73e8;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.login-card h1 {
  margin-bottom: 6px;
  color: #202124;
  font-size: 24px;
  font-weight: 600;
}
.login-subtitle {
  margin-bottom: 30px;
  color: #5f6368;
  font-size: 15px;
}
.login-message {
  min-height: 20px;
  margin-top: 18px;
  color: #5f6368;
  font-size: 13px;
}
.login-message.error {
  padding: 12px 16px;
  color: #c5221f;
  background: #fce8e6;
  border-radius: 6px;
}
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid #dadce0;
}
.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-title {
  color: #1a73e8;
  font-size: 18px;
  font-weight: 600;
}
.header-sep { color: #dadce0; }
.header-org,
.user-email {
  color: #5f6368;
  font-size: 13px;
}
.main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}
.card {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 51px;
  padding: 14px 20px;
  border-bottom: 1px solid #e8eaed;
}
.card-header h2 {
  color: #202124;
  font-size: 14px;
  font-weight: 600;
}
.card-actions {
  display: flex;
  gap: 8px;
}
.card-body { padding: 16px 20px; }
.card-body-flush { padding: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.btn-login {
  min-height: 42px;
  padding: 0 22px;
  color: #3c4043;
  background: #fff;
  border: 1px solid #dadce0;
}
.btn-login:hover:not(:disabled) {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.btn-small {
  min-height: 28px;
  padding: 0 12px;
  font-size: 12px;
}
.btn-outline {
  color: #3c4043;
  background: #fff;
  border: 1px solid #dadce0;
}
.btn-outline:hover:not(:disabled) { background: #f1f3f4; }
.btn-primary {
  padding: 0 16px;
  color: #fff;
  background: #1a73e8;
}
.btn-primary:hover:not(:disabled) { background: #1557b0; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.metric {
  min-height: 104px;
  padding: 14px;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  background: #fbfcfd;
}
.metric-label {
  display: block;
  margin-bottom: 6px;
  color: #5f6368;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.metric strong {
  display: block;
  margin-bottom: 4px;
  color: #202124;
  font-size: 16px;
}
.metric span:last-child {
  color: #5f6368;
  font-size: 13px;
}
.status-list {
  display: flex;
  flex-direction: column;
}
.status-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 0;
  border-bottom: 1px solid #e8eaed;
}
.status-row:last-child { border-bottom: 0; }
.status-row strong {
  display: block;
  font-size: 13px;
}
.status-row span {
  color: #5f6368;
  font-size: 13px;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.status-dot.ok { background: #137333; }
.status-dot.running { background: #1a73e8; }
.status-dot.warn { background: #f9ab00; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.badge-blue { color: #1a73e8; background: #e8f0fe; }
.badge-green { color: #137333; background: #e6f4ea; }
.badge-yellow { color: #b06000; background: #fef7e0; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  padding: 10px 16px;
  color: #5f6368;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  background: #f8f9fa;
  border-bottom: 1px solid #e8eaed;
}
.data-table td {
  padding: 12px 16px;
  color: #3c4043;
  border-bottom: 1px solid #e8eaed;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: #f8f9fa; }
@media (max-width: 760px) {
  .header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
  }
  .header-left,
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
  .metric-grid { grid-template-columns: 1fr; }
  .card-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .data-table { min-width: 720px; }
  .card-body-flush { overflow-x: auto; }
}
