/* UTA Control — one small stylesheet, no framework.
   This sets the visual tone the other UTA apps will eventually align to:
   system fonts, a few tokens, generous spacing, fine on a phone. */

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #1b232e;
  --muted: #5d6b7a;
  --line: #dfe4ea;
  --brand: #10559a;
  --brand-ink: #ffffff;
  --ok: #1a7f4b;
  --warn: #b3261e;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181d;
    --surface: #1d232b;
    --ink: #e8ecf1;
    --muted: #97a3b0;
    --line: #2c353f;
    --brand: #4c8fd6;
    --brand-ink: #0d1420;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.bar {
  max-width: 960px; margin: 0 auto; padding: .8rem 1rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brand { font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.brand span { color: var(--brand); }
nav { display: flex; gap: 1rem; margin-left: auto; align-items: center; }
.who { color: var(--muted); font-size: .9rem; }

main { max-width: 960px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
h1 { font-size: 1.45rem; margin: 1rem 0 .4rem; }
.sub { color: var(--muted); margin: 0 0 1.4rem; }

/* Launcher cards */
.cards {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  color: var(--ink);
}
a.card:hover {
  text-decoration: none;
  border-color: var(--brand);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.card h2 { margin: 0 0 .25rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }
.card .go { display: inline-block; margin-top: .7rem; color: var(--brand);
            font-size: .9rem; font-weight: 600; }
.card.soon { opacity: .65; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .12rem .55rem; border-radius: 999px;
  background: var(--line); color: var(--muted); margin-top: .7rem;
}

/* Forms */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem; max-width: 430px;
}
.panel.center { margin: 8vh auto 0; }
label { display: block; font-size: .9rem; color: var(--muted);
        margin: .9rem 0 .25rem; }
input[type=text], input[type=password], select {
  width: 100%; padding: .6rem .7rem; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--brand); border-color: transparent; }
button, .btn {
  display: inline-block; margin-top: 1.1rem; padding: .6rem 1.2rem;
  font-size: 1rem; font-weight: 600; border: 0; border-radius: 8px;
  background: var(--brand); color: var(--brand-ink); cursor: pointer;
}
button.quiet, .btn.quiet { background: transparent; color: var(--brand);
                           border: 1px solid var(--line); }
.error {
  background: color-mix(in srgb, var(--warn) 10%, var(--surface));
  border: 1px solid var(--warn); color: var(--ink);
  border-radius: 8px; padding: .7rem .9rem; margin: 1rem 0 0;
}
.notice {
  background: color-mix(in srgb, var(--ok) 10%, var(--surface));
  border: 1px solid var(--ok);
  border-radius: 8px; padding: .7rem .9rem; margin: 0 0 1rem;
}

/* Tables (People, Audit) */
.tools { display: flex; gap: .6rem; flex-wrap: wrap; align-items: end;
         margin: 0 0 1rem; }
.tools input, .tools select { width: auto; }
.tablewrap { overflow-x: auto; background: var(--surface);
             border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .6rem .9rem;
         border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: .82rem;
     text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.off { color: var(--muted); text-decoration: line-through; }
.pill { font-size: .78rem; padding: .1rem .5rem; border-radius: 999px;
        background: var(--line); }
.pager { margin: 1rem 0; color: var(--muted); }
.actions form { display: inline; }
.actions button { margin: 0 0 0 .4rem; padding: .25rem .6rem;
                  font-size: .82rem; }
