* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #14211b;
  background: #f6f7f3;
  font:
    15px Geist,
    Arial,
    sans-serif;
}
header {
  height: 60px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 900;
  font-size: 26px;
  color: #14211b;
  text-decoration: none;
}
.brand img {
  width: 29px;
}
.brand small {
  font-size: 13px;
  color: #19704b;
}
.space {
  flex: 1;
}
button,
input,
select,
textarea,
summary,
.btn {
  font: inherit;
}
button,
.btn,
summary {
  cursor: pointer;
}
button,
.btn {
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 8px;
  color: inherit;
  text-decoration: none;
}
button:hover,
.btn:hover,
summary:hover {
  background: #e8eee7;
}
button:active,
.btn:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.primary {
  background: #14211b;
  color: white;
  border-radius: 28px;
  font-weight: 700;
  padding: 12px 20px;
}
.primary:hover {
  background: #19704b;
}
input,
select,
textarea {
  padding: 9px;
  border: 1px solid #cbd3c9;
  border-radius: 5px;
  max-width: 100%;
  background: white;
  color: inherit;
}
input[type="color"] {
  height: 44px;
  width: 90px;
  padding: 4px;
}
summary {
  list-style: none;
  padding: 8px;
}
details {
  position: relative;
}
.menu {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 5;
  background: white;
  box-shadow: 0 4px 24px #14211b20;
  border: 1px solid #d8ddd2;
  border-radius: 10px;
  padding: 12px;
  min-width: 160px;
}
.menu button {
  display: block;
  width: 100%;
  text-align: left;
}
.layout {
  display: flex;
  height: calc(100dvh - 60px);
}
aside {
  width: clamp(185px, 15vw, 290px);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
aside hr {
  border: 0;
  border-top: 1px solid #d8ddd2;
  width: 100%;
}
aside strong {
  font-size: 28px;
}
aside small {
  color: #56655e;
}
aside section {
  margin-top: auto;
}
progress {
  accent-color: #19704b;
  width: 100%;
}
main {
  background: #fff;
  border-radius: 20px 0 0 0;
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 24px clamp(15px, 3vw, 52px);
}
.wrap {
  max-width: 1210px;
  margin: auto;
}
h1 {
  font-size: 25px;
  margin: 5px 0 20px;
}
h2 {
  font-size: 19px;
}
h3 {
  font-size: 14px;
}
.row,
.bar,
.card,
.tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bar {
  margin: 22px 0;
  flex-wrap: wrap;
}
.card,
.panel {
  border: 1px solid #d8ddd2;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 1px 4px #14211b09;
}
.card {
  margin: 12px 0;
  min-height: 141px;
  position: relative;
}
.card:hover {
  border-color: #afbfaf;
}
.qr img {
  width: 108px;
  display: block;
}
.card .pick {
  position: absolute;
  top: 9px;
  left: 9px;
  opacity: 0;
}
.card:hover .pick,
.pick:checked,
.card:focus-within .pick {
  opacity: 1;
}
.info {
  min-width: 0;
  flex: 1;
}
.info > * {
  margin: 5px 0;
}
.info a {
  color: #506259;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
  max-width: min(280px, 44vw);
}
.status {
  background: #dff9e8;
  padding: 3px 6px;
  border-radius: 4px;
}
.paused {
  background: #f4e6ce;
}
.actions {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: space-between;
}
.actions b {
  font-size: 22px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.grid .card {
  flex-direction: column;
  align-items: flex-start;
}
.grid .actions {
  gap: 15px;
}
.empty {
  text-align: center;
  padding: 70px 20px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.tiles button {
  border: 1px solid #d8ddd2;
  padding: 18px;
  text-align: left;
}
.tiles button[aria-pressed="true"] {
  outline: 2px solid #19704b;
}
.editor {
  max-width: 840px;
  margin: auto;
}
.editor .panel {
  margin: 18px 0;
}
.stack {
  display: grid;
  gap: 14px;
}
.stack label {
  display: grid;
  gap: 6px;
}
.formrow {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.preview {
  width: 200px;
}
.login {
  margin: 15vh auto;
  max-width: 390px;
  padding: 34px;
}
.chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 150px;
  overflow: auto;
  border-bottom: 1px solid #aaa;
}
.chart div {
  min-width: 7px;
  max-width: 48px;
  flex: 1;
  background: #19704b;
}
.tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 12px;
}
.scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
td,
th {
  text-align: left;
  padding: 7px;
  border-bottom: 1px solid #edf0ea;
  font-size: 13px;
}
dialog {
  border: 1px solid #d8ddd2;
  padding: 24px;
  border-radius: 15px;
  width: min(420px, 96vw);
}
dialog::backdrop {
  background: #14211b60;
}
#toast:not(:empty) {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: #14211b;
  border-radius: 8px;
  padding: 12px 18px;
}
.hidden {
  display: none !important;
}
@media (max-width: 760px) {
  aside {
    width: 145px;
    padding: 12px;
  }
  .card {
    flex-wrap: wrap;
  }
  .qr img {
    width: 65px;
  }
  .actions {
    width: 100%;
    flex-direction: row;
  }
  .bar {
    gap: 5px;
  }
  main {
    padding: 14px;
  }
  .layout:has(.editor) aside {
    display: none;
  }
}
@media (max-width: 520px) {
  aside {
    display: none;
  }
  aside.open {
    display: flex;
    position: absolute;
    z-index: 6;
    background: #f6f7f3;
    height: 88vh;
    width: 220px;
  }
}
.landing {
  max-width: 540px;
  margin: 8vh auto;
  height: auto;
}
.landing h1 {
  margin-top: 20px;
}
.landing a {
  color: #19704b;
  overflow-wrap: anywhere;
}
.menu > a {
  display: block;
  white-space: nowrap;
}
.accountnav {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #d8ddd2;
  margin: 16px 0;
}
.landing img,
.landing video {
  max-width: 100%;
}
aside.subpage {
  display: none;
}
.editor label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 8px;
}
.editor .stack label > input[type="checkbox"] {
  width: auto;
}
.preview {
  max-width: 100%;
}
.tools > button,
.qr,
.actions > button {
  position: relative;
}
.tools > button:hover::after,
.qr:hover::after,
.actions > button:hover::after {
  content: attr(title);
  position: absolute;
  right: 0;
  bottom: 100%;
  width: max-content;
  max-width: 240px;
  z-index: 3;
  font-size: 12px;
  padding: 6px 9px;
  background: #14211b;
  color: white;
  border-radius: 5px;
  pointer-events: none;
}
.brand small {
  font-weight: 600;
}
.landing .cover {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  margin-bottom: 12px;
}
.landing a {
  color: var(--accent, #19704b);
}
.landing .primary {
  background: var(--accent, #14211b);
}
#content details summary {
  font-weight: 700;
  margin-bottom: 10px;
}
dialog {
  max-height: 85dvh;
  overflow-y: auto;
}
.tiles button {
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 84px;
}
.tiles small {
  font-size: 13px;
  color: #526358;
}
.wizard .wizardPreview {
  display: grid;
  gap: 12px;
  align-content: start;
  text-align: center;
}
.wizardPreview .preview {
  width: 100%;
  max-width: 290px;
  margin: auto;
}
.samplephone {
  border: 7px solid #14211b;
  border-radius: 30px;
  min-height: 290px;
  padding: 15px;
  max-width: 210px;
  margin: 12px auto;
  background: #f7f5ed;
}
.samplephone img {
  width: 45px;
  margin: 28px auto 10px;
}
.samplephone .notch {
  width: 65px;
  height: 8px;
  background: #14211b;
  margin: -12px auto 0;
  border-radius: 0 0 6px 6px;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choices button {
  border: 1px solid #d8ddd2;
  min-width: 48px;
  min-height: 44px;
}
.choices button[aria-checked="true"] {
  border: 2px solid #19704b;
  background: #edf6ea;
}
.wizard [hidden] {
  display: none !important;
}
@media (min-width: 920px) {
  .wizard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(235px, 320px);
    gap: 8px 26px;
    max-width: 1150px;
    align-items: start;
  }
  .wizard > * {
    grid-column: 1;
  }
  .wizard > .wizardPreview {
    grid-column: 2;
    grid-row: 2 / span 7;
    position: sticky;
    top: 12px;
  }
  .wizard > #nexttype {
    justify-self: end;
  }
  .wizard > button:first-child {
    justify-self: start;
  }
}
