@font-face {
  font-family: Jary;
  src: url("/font.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 700;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f7f4ed;
  color: #202020;
  font:
    15px Jary,
    Arial,
    sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dcd8d0;
  border-radius: 4px;
  background: white;
  padding: 9px 14px;
  color: inherit;
  min-height: 40px;
}
button:hover {
  border-color: #652ded;
  background: #f2edff;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button svg {
  width: 18px;
  height: 18px;
}
button.primary {
  background: #602de9;
  color: #fff;
  border-color: #602de9;
}
button.danger {
  color: #ae293a;
}
a {
  color: #602de9;
}
header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  border-bottom: 1px solid #dedbd4;
  gap: 16px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: #202020;
}
.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.brand b {
  font-size: 23px;
  white-space: nowrap;
}
.brand span {
  margin-left: 18px;
  padding-left: 20px;
  border-left: 1px solid #ddd;
  font-size: 14px;
  color: #646464;
}
.account {
  display: flex;
  gap: 12px;
  align-items: center;
}
.account span {
  font-size: 12px;
  color: #555;
}
main {
  max-width: 1320px;
  padding: 32px;
  margin: auto;
}
h1 {
  font-size: 30px;
  margin: 0 0 6px;
  line-height: 1.2;
}
h2 {
  font-size: 21px;
  margin: 0 0 18px;
}
p {
  margin: 8px 0 18px;
}
.muted {
  color: #666;
}
.login {
  max-width: 460px;
  margin: 72px auto;
}
.login .mark {
  width: 60px;
  margin-bottom: 24px;
}
.login form {
  margin-top: 32px;
}
.login button {
  width: 100%;
  margin-top: 16px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
}
input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbc8c0;
  border-radius: 4px;
  background: white;
  color: #222;
  min-height: 42px;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.nav {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.nav button {
  border: 0;
  background: transparent;
  border-radius: 0;
}
.nav .active {
  color: #602de9;
  box-shadow: 0 2px #602de9;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}
.toolbar input {
  flex: 2;
  min-width: 0;
}
.toolbar select {
  flex: 1;
  min-width: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  border: 1px solid #dfdbd2;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-preview {
  height: 135px;
  background: #eeeaf6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-preview svg {
  width: 50px;
  height: 50px;
  color: #613ee4;
}
.card-preview.pdf {
  background: #f9ebe8;
}
.card-preview.pdf svg {
  color: #bc5344;
}
.card-preview.image {
  background: #e7f2ed;
}
.card-preview.image svg {
  color: #2d7861;
}
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card h2 {
  font-size: 19px;
  margin: 8px 0 12px;
}
.card p {
  font-size: 14px;
  color: #666;
}
.card small {
  color: #666;
}
.card-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 16px;
}
.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #68606c;
}
.tags span {
  background: #f3f1f6;
  padding: 2px 7px;
  border-radius: 3px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid #d8d4cb;
  margin: 26px 0 34px;
}
.metrics div {
  padding: 20px;
  border-right: 1px solid #d8d4cb;
}
.metrics div:last-child {
  border: 0;
}
.metrics strong {
  display: block;
  font-size: 34px;
}
.metrics small {
  color: #666;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: #fff;
  font-size: 14px;
}
th {
  color: #686868;
  font-size: 12px;
  background: #f0ede6;
  padding: 13px;
  text-align: left;
}
td {
  padding: 14px;
  border-bottom: 1px solid #e6e3dd;
  max-width: 350px;
  overflow-wrap: anywhere;
}
td.actions {
  white-space: nowrap;
}
td.actions button {
  padding: 7px;
  min-height: 34px;
  margin-left: 5px;
}
td small {
  display: block;
  color: #777;
}
.state {
  color: #28664b;
}
.state.revoked,
.state.failed {
  color: #ae293a;
}
.state.invited {
  color: #997216;
}
.empty {
  padding: 70px 20px;
  text-align: center;
  color: #666;
  border-block: 1px solid #ddd;
}
dialog {
  border: 1px solid #dedad2;
  border-radius: 8px;
  width: min(720px, calc(100% - 32px));
  padding: 28px;
  max-height: 90vh;
  overflow: auto;
  color: inherit;
  background: #faf9f6;
}
dialog::backdrop {
  background: #0007;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.dialog-head h2 {
  margin: 0;
}
.dialog-head button {
  padding: 6px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 24px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
}
.check label {
  margin: 0;
  font-weight: 400;
}
.versions {
  margin-top: 25px;
  border-top: 1px solid #ddd;
  padding-top: 20px;
}
.version {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
  border-bottom: 1px solid #ddd;
}
.version small {
  display: block;
  color: #777;
}
iframe.preview {
  width: 100%;
  height: 70vh;
  border: 1px solid #ddd;
  margin-top: 20px;
  background: white;
}
.image-preview {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin: 20px auto;
  object-fit: contain;
}
#editor.wide {
  width: min(1200px, calc(100% - 24px));
}
#notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 480px;
  background: #242129;
  color: white;
  padding: 16px 22px;
  border-radius: 5px;
  z-index: 100;
  box-shadow: 0 5px 25px #0002;
}
#notice.error {
  background: #872234;
}
:focus-visible {
  outline: 3px solid #9977ec;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  header {
    padding: 0 18px;
  }
  .brand span {
    display: none;
  }
  .account span {
    display: none;
  }
  main {
    padding: 24px 18px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input {
    flex-basis: 100%;
  }
  .toolbar select {
    flex-basis: 40%;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metrics div:nth-child(2) {
    border-right: 0;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 26px;
  }
}
@media (max-width: 500px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .nav {
    gap: 0;
  }
  .nav button {
    padding: 8px;
  }
  .page-head {
    flex-wrap: wrap;
  }
  dialog {
    padding: 20px;
  }
  .metrics strong {
    font-size: 28px;
  }
  .brand b {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
