body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background: #f4f5f7;
  color: #1a1a1a;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #1d3557;
  color: white;
}

header h1 { font-size: 1.2rem; margin: 0; }

#user-bar { display: flex; gap: 0.75rem; align-items: center; }
#user-bar button { background: transparent; border: 1px solid white; color: white; padding: 0.3rem 0.7rem; border-radius: 4px; cursor: pointer; }

main { max-width: 900px; margin: 1.5rem auto; padding: 0 1rem; }

.tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.tab-btn { padding: 0.5rem 1rem; border: none; background: #e0e2e6; border-radius: 6px 6px 0 0; cursor: pointer; }
.tab-btn.active { background: white; font-weight: 600; }
.tab-panel.hidden { display: none; }

.card {
  background: white;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

label { display: block; margin-bottom: 0.75rem; font-size: 0.9rem; }
input, select { display: block; width: 100%; padding: 0.4rem; margin-top: 0.25rem; box-sizing: border-box; }
fieldset { border: none; padding: 0; margin: 0.5rem 0; }
fieldset label { display: inline-block; margin-right: 1rem; }

button {
  background: #1d3557;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }

table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; }
th, td { text-align: left; padding: 0.4rem 0.6rem; border-bottom: 1px solid #eee; font-size: 0.9rem; }

.error { color: #c0392b; }
.hidden { display: none; }
