/* SendLock Team dashboard. The same tokens as the website and the extension popup. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: hsl(263 25% 10%);
  --muted: hsl(257 11% 38%);
  --line: hsl(264 24% 90%);
  --wash: hsl(267 33% 97%);
  --paper: #fff;
  --violet: hsl(271 76% 53%);
  --violet-ink: hsl(271 76% 43%);
  --amber-ink: hsl(32 90% 28%);
  --amber-wash: hsl(42 90% 94%);
  --amber-line: hsl(40 80% 80%);
  --green: hsl(142 72% 27%);
  --red: hsl(0 70% 40%);
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

h1,
h2,
p,
ul,
ol,
pre {
  margin: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 17px;
  font-weight: 650;
  margin-top: 40px;
  margin-bottom: 6px;
}
a {
  color: var(--violet-ink);
  text-underline-offset: 3px;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
main.wrap {
  padding-top: 32px;
  padding-bottom: 96px;
}
.narrow {
  max-width: 460px;
  padding-top: 48px;
}
.narrow > * + * {
  margin-top: 16px;
}
.lede {
  color: var(--muted);
  margin-top: 6px;
  max-width: 62ch;
}
.quiet {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 68ch;
}
.error {
  color: var(--red);
  font-size: 14.5px;
}
.notice {
  background: var(--amber-wash);
  border: 1px solid var(--amber-line);
  color: var(--amber-ink);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 24px;
}

/* ---------- Header ---------- */
.top {
  border-bottom: 1px solid var(--line);
}
.top__in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
}
.top__fill {
  flex: 1;
}
.top__account {
  color: var(--muted);
  font-size: 14.5px;
  overflow-wrap: anywhere;
}
.top__picker {
  max-width: 220px;
}

/* ---------- Controls ---------- */
.btn {
  background: var(--violet);
  color: #fff;
  border: 1px solid var(--violet);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-weight: 550;
  cursor: pointer;
}
.btn:hover {
  background: var(--violet-ink);
}
.btn:disabled {
  background: var(--wash);
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}
.btn--quiet {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.btn--quiet:hover {
  background: var(--wash);
}
.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--violet-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link:disabled {
  color: var(--muted);
  cursor: default;
}
input[type="email"],
input[type="number"],
select {
  border: 1px solid hsl(264 14% 72%);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: var(--paper);
  min-width: 0;
}
input[type="email"] {
  flex: 1;
  max-width: 340px;
}
input[type="number"] {
  width: 110px;
}
label {
  display: block;
  font-weight: 550;
  margin-bottom: 6px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.row--end {
  justify-content: flex-end;
  margin-top: 20px;
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  overflow-x: auto;
}
.tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 0;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.tabs button[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--violet);
}

/* ---------- People ---------- */
.tablewrap {
  /* Positioned, so the visually hidden column heading is clipped here and not by the page. */
  position: relative;
  overflow-x: auto;
  margin-top: 28px;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
  font-size: 15px;
}
th,
td {
  text-align: left;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-weight: 550;
  color: var(--muted);
  font-size: 13.5px;
}
th,
td:nth-child(3) {
  white-space: nowrap;
}
td:nth-child(2) {
  min-width: 260px;
}
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
td:last-child,
th:last-child {
  text-align: right;
  padding-right: 0;
}
.person {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}
.person:hover {
  text-decoration: underline;
}
.status--ok {
  color: var(--green);
}
.status--attention {
  color: var(--amber-ink);
  font-weight: 550;
}
.status small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 13.5px;
}
tr.detail td {
  background: var(--wash);
  padding: 14px 16px;
  text-align: left;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 24px;
  margin: 0;
}
.facts dt {
  color: var(--muted);
  font-size: 13.5px;
}
.facts dd {
  margin: 0;
}

.addrow {
  margin-top: 32px;
}
.step {
  margin-top: 8px;
}
.step > * + * {
  margin-top: 12px;
}
.step label {
  margin-top: 20px;
}
.step input {
  display: block;
  width: 100%;
  max-width: 340px;
  margin-top: 0;
}
.step input[type="number"] {
  max-width: 110px;
}
.step h2 {
  margin-top: 32px;
}
input[type="text"] {
  border: 1px solid hsl(264 14% 72%);
  border-radius: var(--radius);
  padding: 8px 10px;
  flex: 1;
  max-width: 340px;
  min-width: 0;
}
.addrow .quiet,
.addrow .error {
  margin-top: 8px;
}
.plainlist {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}
.plainlist li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.plainlist li span:first-child {
  flex: 1;
  min-width: 200px;
  overflow-wrap: anywhere;
}
.plainlist .quiet {
  font-size: 13.5px;
}

/* ---------- Rules ---------- */
.form {
  margin-top: 28px;
  display: grid;
  gap: 22px;
  max-width: 560px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  margin: 0;
  cursor: pointer;
}
.check input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--violet);
}
.check small {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
#rules-applied {
  margin-top: 28px;
}

/* ---------- Setup ---------- */
.steps {
  padding-left: 22px;
  display: grid;
  gap: 12px;
  max-width: 70ch;
}
code,
.code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13.5px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  overflow-wrap: anywhere;
}
.code {
  display: block;
  padding: 12px 14px;
  margin: 8px 0 6px;
  white-space: pre-wrap;
}
.copyline {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-top: 6px;
}
#tab-setup p + p {
  margin-top: 12px;
}

/* ---------- Dialog, toast, test sign-in ---------- */
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  max-width: 440px;
  width: calc(100% - 32px);
  color: var(--ink);
}
dialog::backdrop {
  background: hsl(263 25% 10% / 0.35);
}
dialog h2 {
  margin-top: 0;
}
dialog p {
  color: var(--muted);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14.5px;
  max-width: calc(100% - 32px);
}
.devbox {
  border: 1px dashed var(--amber-line);
  background: var(--amber-wash);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 14.5px;
}
.devbox p {
  margin-bottom: 10px;
}
/* Google draws its own button inside #google-button. Its look comes from a style block the Google
   library adds to the page, which the Content-Security-Policy admits by hash (firebase.json). If
   Google changes that block the hash stops matching, and without this rule its logo would fill
   the column. */
#google-button svg {
  width: 18px;
  height: 18px;
}
