:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #d9dde5;
  --accent: #2456d6;
  --accent-ink: #ffffff;
  --danger: #b42318;
  --ok: #067647;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11141b;
    --card: #1a1f2a;
    --ink: #e8ebf2;
    --muted: #a3abbb;
    --line: #2e3545;
    --accent: #6b93ff;
    --accent-ink: #0b0f18;
    --danger: #ff8a80;
    --ok: #6fd3a2;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 16px;
}
main {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
}
h1 { font-size: 1.35rem; margin: 0 0 4px; }
.sub { color: var(--muted); margin: 0 0 20px; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=password] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button {
  width: 100%;
  margin-top: 20px;
  padding: 11px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button.link {
  width: auto;
  margin: 0;
  padding: 0;
  background: none;
  color: var(--accent);
  font-weight: 500;
}
.choice { margin: 0; }
.choice button { text-align: left; margin-top: 10px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.choice button small { display: block; color: var(--muted); font-weight: 400; }
.notice { padding: 10px 12px; border-radius: 8px; margin: 0 0 12px; border: 1px solid var(--line); }
.notice.error { color: var(--danger); border-color: var(--danger); }
.notice.ok { color: var(--ok); border-color: var(--ok); }
.links { margin-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
a { color: var(--accent); }
dl { margin: 0; }
dt { color: var(--muted); font-size: .9rem; margin-top: 12px; }
dd { margin: 2px 0 0; }
ul { padding-left: 20px; }

/* Team administration */
main.wide { max-width: 880px; }
h2 { font-size: 1.05rem; margin: 28px 0 8px; }
input[type=email], input.copy {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
input.copy { margin: 0 0 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
fieldset.roles { border: 1px solid var(--line); border-radius: 8px; margin: 14px 0 0; padding: 8px 12px 12px; }
fieldset.roles legend { font-weight: 600; padding: 0 4px; }
label.check { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-weight: 500; margin: 8px 0 0; }
label.check small { flex-basis: 100%; color: var(--muted); font-weight: 400; padding-left: 24px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: .9rem; }
td small { color: var(--muted); }
.tag { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; color: var(--muted); }
details summary { cursor: pointer; color: var(--accent); }
details form { margin-top: 8px; }
button.secondary { width: auto; margin-top: 10px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
button.danger { width: auto; margin-top: 10px; background: none; color: var(--danger); border: 1px solid var(--danger); }
a.button {
  display: block;
  margin-top: 20px;
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
ul.places { list-style: none; padding: 0; margin: 0; }
ul.places a { display: block; padding: 12px; margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
ul.places span { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Suite: brand bar, app launcher, app picker */
body { display: flex; flex-direction: column; align-items: center; gap: 16px; }
main { margin-block: auto; }
.brandbar { width: 100%; max-width: 880px; display: flex; align-items: center; justify-content: space-between; }
.brandmark { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brandlink { font-size: .95rem; }
.org-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.orgs { display: flex; flex-wrap: wrap; gap: 6px; }
.orgs a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; }
.orgs a.current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
ul.tiles { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.tile .open { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; flex: 1; }
a.open:hover strong, a.open:focus-visible strong { color: var(--accent); }
.tile small { color: var(--muted); }
.tile .team { font-size: .9rem; }
.tile form button { width: 100%; }
fieldset.apps { border: 1px solid var(--line); border-radius: 8px; margin: 16px 0 0; padding: 8px 12px 12px; }
fieldset.apps legend { font-weight: 600; padding: 0 4px; }
label.app-pick { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; margin: 10px 0 0; }
label.app-pick input { margin-top: 6px; }
label.app-pick span { display: flex; flex-direction: column; }
label.app-pick small { color: var(--muted); font-weight: 400; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 24px; }
.fine { font-size: .9rem; margin-top: 14px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
