/* Login and Settings pages — same look as the Sleek quote calculator's. */
*, ::before, ::after { box-sizing: border-box; border: 0 solid; margin: 0; padding: 0; }
html { color-scheme: only light; line-height: 1.5; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: #000; background: #fff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}
button, input, select { font: inherit; letter-spacing: inherit; color: inherit; background-color: transparent; border-radius: 0; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: inherit; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
[hidden] { display: none !important; }

.text-xs { font-size: .75rem; line-height: calc(1 / .75); }
.text-sm { font-size: .875rem; line-height: calc(1.25 / .875); }
.text-xl { font-size: 1.25rem; line-height: calc(1.75 / 1.25); }
.text-2xl { font-size: 1.5rem; line-height: calc(2 / 1.5); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.muted { opacity: .6; }
.err { color: oklch(57.7% .245 27.325); }
.warn { color: oklch(55.5% .163 48.998); margin-top: .25rem; }
.stack > * + * { margin-top: 1rem; }
.stack-sm > * + * { margin-top: .5rem; }

.field { display: block; font-size: .875rem; line-height: calc(1.25 / .875); }
.input {
  width: 100%; min-width: 0; border: 1px solid currentColor; border-radius: .5rem; padding: .5rem .75rem;
}
.field .input { margin-top: .25rem; }

.btn-primary {
  padding: .5rem 1rem; border-radius: .5rem; background: #000; color: #fff;
}
.btn-primary.sm { padding: .25rem .75rem; font-size: .875rem; line-height: calc(1.25 / .875); }
.btn-outline {
  padding: .25rem .75rem; border-radius: .5rem; border: 1px solid currentColor; font-size: .875rem; line-height: calc(1.25 / .875);
  display: inline-block;
}
.btn-outline.danger { color: oklch(57.7% .245 27.325); }
.btn-primary:disabled, .btn-outline:disabled { opacity: .5; }

/* Login */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  background: rgba(0, 0, 0, .05);
}
.login-card {
  width: 100%; max-width: 24rem; border: 1px solid currentColor; border-radius: 1rem; padding: 1.5rem; background: #fff;
  box-shadow: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;
}
.login-card .btn-primary { width: 100%; }

/* Settings */
.settings { min-height: 100vh; padding: 1.5rem; max-width: 48rem; margin: 0 auto; }
.settings > * + * { margin-top: 1.5rem; }
.settings header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.panel { border: 1px solid currentColor; border-radius: 1rem; padding: 1.25rem; }
.panel > * + * { margin-top: 1rem; }
.user-list { list-style: none; border: 1px solid currentColor; border-radius: .75rem; }
.user-list > li + li { border-top: 1px solid currentColor; }
.user-list > li { padding: .75rem; }
.user-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.user-row .who { flex: 1; min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { margin-left: .5rem; font-size: .75rem; line-height: calc(1 / .75); padding: .125rem .375rem; border-radius: .25rem; border: 1px solid currentColor; font-weight: 400; }
.badge.admin { background: #000; color: #fff; border-color: #000; }
.badge.supervisor { background: oklch(54.6% .245 262.881); color: #fff; border-color: oklch(54.6% .245 262.881); }
.you { margin-left: .5rem; font-size: .75rem; opacity: .6; font-weight: 400; }
.grid { display: grid; grid-template-columns: 1fr; gap: .5rem; }
@media (min-width: 40rem) {
  .grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.row-actions { display: flex; gap: .5rem; }
