/* Plevako: the same type, neutrals and control geometry as APMO and the console. */
@font-face {
  font-family: "Roboto Flex";
  src: url("/assets/roboto-flex-ui.woff2") format("woff2");
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-display: swap;
}
:root {
  font-family: "Roboto Flex", Arial, sans-serif;
  color: #18181b;
  background: #fafafa;
  font-size: 15px;
  font-synthesis: none;
  --ink: #18181b;
  --muted: #62626e;
  --line: #e4e4e7;
  --soft: #f4f4f5;
  --paper: #fff;
  --radius: 10px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.48;
}
[hidden] {
  display: none !important;
}
.topbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px max(24px, calc((100% - 1240px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  display: block;
  flex: none;
}
.brand span {
  border-left: 1px solid var(--line);
  padding-left: 16px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
#account {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
#identity {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
}
main {
  width: min(1240px, calc(100% - 64px));
  flex: 1;
  margin: 0 auto;
  padding: 30px 0 72px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 670;
  letter-spacing: -0.042em;
  line-height: 1.08;
}
h2 {
  font-size: 22px;
  font-weight: 660;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 16px;
  font-weight: 650;
}
p {
  color: var(--muted);
}
.eyebrow {
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 11px;
}
button,
.external {
  line-height: 1.2;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 9px 15px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
button:hover {
  background: #38383e;
}
button:disabled {
  opacity: 0.58;
  cursor: wait;
}
.quiet,
.external {
  background: var(--paper);
  color: var(--ink);
  border-color: #d4d4d8;
}
.quiet:hover,
.external:hover {
  background: var(--soft);
}
:focus-visible {
  outline: 2px solid #50505a;
  outline-offset: 3px;
}
label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 620;
  font-size: 13px;
}
input,
select {
  display: block;
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 450;
  padding: 10px 12px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  min-height: 40px;
}
.login {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 7vw, 90px);
  width: min(100%, 990px);
  min-height: min(610px, calc(100dvh - 190px));
  margin: 0 auto;
}
.login-intro h1 {
  margin: 12px 0 18px;
  font-size: clamp(39px, 5.8vw, 70px);
}
.login-intro p {
  max-width: 390px;
  font-size: 17px;
}
.login-card {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 18px 54px #18181b0a;
}
.login-card > p {
  margin: 7px 0 24px;
}
.login form {
  display: grid;
  gap: 16px;
}
.login form button {
  justify-content: space-between;
  margin-top: 3px;
}
.login-card > .hint {
  margin-top: 18px;
}
#login-error {
  color: #8c2928;
  font-size: 13px;
}
#notice:empty,
#login-error:empty {
  display: none;
}
#notice {
  background: #fff8e8;
  color: #70541e;
  border: 1px solid #eadaba;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin: 12px 0 24px;
}
.heading h1 {
  margin: 11px 0 10px;
}
nav {
  display: flex;
  gap: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
nav button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 2px 13px;
}
nav button:hover {
  background: transparent;
  color: var(--ink);
}
nav .selected {
  border-bottom-color: var(--ink);
  color: var(--ink);
}
.search {
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.grow {
  flex: 1;
}
.hint {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 0;
}
.scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin: 16px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
  background: #f7f7f8;
}
td button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafafa;
}
.section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 15px;
  min-width: 0;
}
.section h3 {
  margin-bottom: 10px;
}
pre {
  font:
    13px/1.65 ui-monospace,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--soft);
  padding: 14px;
  max-height: 460px;
  overflow: auto;
  border-radius: 7px;
}
.text {
  font:
    16px/1.72 "Roboto Flex",
    Arial,
    sans-serif;
}
.links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 13px;
}
.links a {
  color: var(--ink);
  text-underline-offset: 3px;
}
dialog {
  width: min(1020px, calc(100% - 32px));
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  color: var(--ink);
  box-shadow: 0 24px 70px #18181b25;
}
dialog::backdrop {
  background: #18181b66;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.dialog-head h2 {
  overflow-wrap: anywhere;
}
#metrics-at {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0;
}
footer {
  padding: 18px max(24px, calc((100% - 1240px) / 2));
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
@media (max-width: 760px) {
  .topbar {
    padding: 10px 16px;
  }
  .brand span {
    display: none;
  }
  #identity {
    max-width: 118px;
  }
  main {
    width: calc(100% - 32px);
    padding: 22px 0 42px;
  }
  .login {
    grid-template-columns: minmax(0, 1fr);
    gap: 23px;
    min-height: auto;
    padding: 19px 0;
  }
  .login-intro p {
    font-size: 15px;
  }
  .heading,
  .search {
    flex-direction: column;
    align-items: stretch;
  }
  .heading .external {
    align-self: flex-start;
  }
  nav {
    gap: 14px;
    overflow: auto;
  }
  nav button {
    font-size: 13px;
  }
  th,
  td {
    padding: 9px 11px;
  }
  dialog {
    padding: 15px;
  }
  footer {
    padding: 16px;
    flex-wrap: wrap;
  }
}
