@font-face {
  font-family: Barlow;
  src: url(/barlow-condensed-black.ttf);
}
@font-face {
  font-family: DM;
  src: url(/dm-sans-400.ttf);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #201e36;
  background: #f5f3ed;
  font:
    16px/1.42 DM,
    system-ui,
    sans-serif;
}
header,
main,
footer {
  margin: auto;
  width: min(1160px, 92%);
}
header {
  padding: 20px 0;
  border-bottom: 1px solid #cecac2;
}
.logo,
.signature {
  font: 30px Barlow;
  color: inherit;
  text-decoration: none;
}
.logo span {
  color: #2b26e7;
}
main {
  padding: 32px 0 64px;
}
h1,
h2,
h3 {
  font-family: Barlow;
  margin: 0.2em 0;
  line-height: 1.02;
}
h1 {
  font-size: clamp(48px, 7vw, 84px);
}
h2 {
  font-size: 36px;
}
h3 {
  font-size: 24px;
}
.eyebrow,
small {
  font: 700 11px DM;
  letter-spacing: 0.1em;
}
.eyebrow {
  margin: 10px 0;
}
.paper,
.box,
fieldset {
  background: #fffdf9;
  border: 1px solid #d2cec6;
  border-radius: 17px;
  padding: 22px;
  margin: 14px 0;
}
.paper {
  max-width: 560px;
  margin: 8vh auto;
  padding: 36px;
}
label {
  display: grid;
  gap: 5px;
  font-size: 14px;
  margin: 10px 0;
}
input,
textarea,
select {
  width: 100%;
  font: inherit;
  background: white;
  color: #201e36;
  border: 1px solid #aaa5ad;
  border-radius: 8px;
  padding: 10px;
}
button,
.button {
  display: inline-block;
  cursor: pointer;
  color: white;
  border: 0;
  background: #2b26e7;
  padding: 10px 15px;
  border-radius: 9px;
  font: 700 14px DM;
  text-decoration: none;
}
button:hover,
.button:hover {
  filter: brightness(0.9);
}
button:disabled {
  opacity: 0.5;
}
a {
  color: #3028cb;
}
.secondary {
  background: #e8e5f5;
  color: #221e48;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}
.editgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
}
.preview {
  position: sticky;
  top: 15px;
  align-self: start;
}
.profile {
  padding: clamp(22px, 5vw, 58px);
  width: min(100%, 720px);
  min-height: 90vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.identity {
  background: #121128d9;
  padding: 28px;
  border-radius: 24px;
}
.identity h1 {
  font-size: clamp(42px, 7vw, 82px);
  overflow-wrap: anywhere;
}
.identity p {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.crest {
  height: 80px;
  width: 80px;
  display: grid;
  place-items: center;
  background: #f7f5ec;
  color: #201b4e;
  border-radius: 22px;
  font: 44px Barlow;
}
.crest img,
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  min-height: 110px;
  border-radius: 16px;
  padding: 18px;
  background: #fffdf4;
  color: #171430;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  overflow: hidden;
}
.tile strong {
  display: block;
  font: clamp(23px, 4vw, 38px)/1.05 Barlow;
  overflow-wrap: anywhere;
}
.tile small {
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.hero,
.image {
  grid-column: span 2;
}
.hero {
  background: #c9f2dc;
}
.image {
  flex-wrap: wrap;
}
.tile img {
  height: 150px;
  width: 100%;
}
.signature {
  margin-top: auto;
  text-shadow: 0 1px 5px #000;
}
.signature span {
  font: 12px DM;
}
.preview .profile {
  min-height: 550px;
  border-radius: 20px;
  padding: 20px;
}
.preview .identity h1 {
  font-size: 42px;
}
.preview .tile strong {
  font-size: 26px;
}
footer {
  text-align: center;
  padding: 20px;
}
#msg {
  position: sticky;
  bottom: 5px;
  background: #17144e;
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  z-index: 3;
}
#msg:empty {
  display: none;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: all;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check input {
  width: auto;
}
.cardrow {
  border-top: 1px solid #dedbd2;
  padding: 14px 0;
}
.swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.swatches button {
  border: 2px solid transparent;
  border-radius: 50%;
  height: 38px;
  width: 38px;
  padding: 0;
}
.swatches [aria-pressed="true"] {
  outline: 2px solid #292638;
  outline-offset: 2px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #008bb2;
  outline-offset: 2px;
}
.admincard {
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .editgrid {
    grid-template-columns: 1fr;
  }
  .preview {
    position: static;
    grid-row: 1;
  }
  .preview .profile {
    min-height: 200px;
  }
  .preview .crest {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  .preview .identity {
    padding: 15px;
  }
  .preview .profile {
    gap: 10px;
  }
  .profile {
    min-height: 92svh;
  }
  .paper {
    width: 92%;
  }
  .tiles {
    gap: 8px;
  }
  .tile {
    padding: 14px;
  }
}

@font-face {
  font-family: DM;
  src: url(/dm-sans-500.ttf);
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url(/dm-sans-700.ttf);
  font-weight: 700;
  font-display: swap;
}
h1,
h2,
h3,
.identity h1,
.preview .identity h1,
.tile strong,
.preview .tile strong,
.crest {
  font-family: DM, system-ui, sans-serif;
}
h1 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.05em;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.1rem;
}
.paper,
.box,
dialog {
  box-shadow: 0 14px 42px #211d3e0b;
}
.paper p {
  line-height: 1.6;
}
.paper button,
.paper a.button {
  margin: 4px 0;
}
.paper strong {
  overflow-wrap: anywhere;
}
.studiohead,
.rowtitle,
.tabs,
.socials,
.tilebody,
.photoedit,
.headchoices {
  display: flex;
  gap: 12px;
  align-items: center;
}
.studiohead {
  justify-content: space-between;
}
.tabs {
  gap: 6px;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}
.tabs button,
.headchoices button,
.platformgrid button {
  background: white;
  color: #292638;
  border: 1px solid #d5d2db;
}
.tabs [aria-pressed="true"],
.headchoices [aria-pressed="true"],
.platformgrid [aria-pressed="true"] {
  color: #3426c9;
  border-color: currentColor;
  background: #eeedff;
  box-shadow: inset 0 0 0 1px;
}
.platformgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 8px;
}
.platformgrid button {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 86px;
}
.brandicon {
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  vertical-align: middle;
  text-align: center;
}
.platformgrid .brandicon {
  width: 26px;
  height: 26px;
}
.platformgrid span {
  pointer-events: none;
}
input,
textarea,
select {
  font-size: 16px;
}
input[type="color"] {
  min-height: 46px;
}
.box {
  min-width: 0;
  align-self: start;
}
.rowtitle > div {
  min-width: 0;
}
.rowtitle small {
  display: block;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.cardrow,
.normalized {
  overflow-wrap: anywhere;
}
.actions button {
  min-height: 42px;
}
.cardrow .actions button {
  background: #f1eff6;
  color: #302950;
}
.end {
  margin-top: 24px;
}
.myqr {
  width: 145px;
  border-radius: 10px;
}
.mobile-toggle,
.camera {
  display: none;
}
.profile,
.preview .profile {
  width: min(100%, 510px);
  gap: 1rem;
  padding: 20px;
  min-height: 640px;
}
.profile .identity {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 26px 18px;
  background: #181833d9;
}
.identity .crest,
.preview .crest {
  margin: 0 auto 12px;
  width: 70px;
  height: 70px;
  border-radius: 100%;
  font: 700 24px DM;
}
.identity h1,
.preview .identity h1 {
  font-size: 1.68rem;
  letter-spacing: -0.04em;
  line-height: 1.18;
}
.identity p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0.5rem 0;
}
.socials {
  justify-content: center;
}
.socials a {
  color: white;
  padding: 6px;
}
.head-editorial .crest {
  margin-left: 0;
}
.profile .head-editorial {
  text-align: left;
}
.head-editorial .socials {
  justify-content: start;
}
.banner {
  height: 86px;
  background: linear-gradient(115deg, #4032ed, #8bc7fb);
  background-size: cover;
  background-position: center;
  margin: -26px -18px -20px;
}
.head-cover .crest {
  position: relative;
  border: 3px solid white;
}
.profile .tile {
  background: var(--button);
  color: var(--ink);
  align-items: center;
  min-height: 74px;
  padding: 13px;
}
.tilebody {
  min-width: 0;
  gap: 10px;
}
.tilebody .brandicon {
  flex-shrink: 0;
}
.tile strong,
.preview .tile strong {
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 700;
}
.tile small {
  font-size: 0.75rem;
}
.layout-list .tiles {
  grid-template-columns: 1fr;
}
.layout-list .tile {
  grid-column: auto;
}
.shape-pill .tile {
  border-radius: 32px;
}
.shape-square .tile {
  border-radius: 3px;
}
.signature {
  background: #161526;
  color: #fff;
  align-self: center;
  padding: 8px 14px;
  border-radius: 30px;
  font: 500 0.8rem DM;
  text-shadow: none;
}
.signature b {
  font: 1.05rem Barlow;
}
dialog {
  width: min(470px, 94vw);
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid #ddd;
  border-radius: 18px;
  padding: 24px;
  color: inherit;
}
dialog::backdrop {
  background: #17152999;
}
.close {
  float: right;
}
dialog canvas {
  width: min(100%, 240px);
  height: auto;
  border-radius: 50%;
  margin: auto;
}
dialog canvas:not([hidden]) {
  display: block;
}
progress {
  accent-color: #3527d6;
  max-width: 100%;
}
.photoedit img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
}
.headchoices {
  flex-wrap: wrap;
}
.mini {
  width: 55px;
  height: 36px;
  background: #eceaf8;
  border-radius: 5px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  margin: auto auto 4px;
}
.mini i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #58539c;
}
.mini b {
  height: 3px;
  width: 19px;
  background: #58539c;
}
.mini.cover {
  background: linear-gradient(#9a97cf 40%, #eceaf8 40%);
}
.mini.editorial {
  justify-content: start;
  padding-left: 5px;
}
.notice {
  background: #fff3d0;
  padding: 12px;
  border-radius: 10px;
}
@media (max-width: 640px) {
  .mobile-toggle,
  .camera {
    display: block;
  }
  .editgrid .preview {
    display: none;
  }
  .show-preview .preview {
    display: block;
  }
  .show-preview #controls {
    display: none;
  }
  .profile,
  .preview .profile {
    min-height: 70svh;
  }
  .tabs button {
    flex: 1;
    padding: 10px 5px;
    font-size: 13px;
  }
  .paper {
    margin: 4vh auto;
    padding: 22px;
  }
  .editgrid {
    gap: 0;
  }
  .headchoices {
    gap: 4px;
  }
  .headchoices button {
    flex: 1;
  }
  .box {
    padding: 16px;
  }

  dialog {
    padding: 18px;
  }
  .photoedit {
    flex-wrap: wrap;
  }
}

body > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
body > .profile {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(18px, 4vw, 44px) max(18px, calc((100% - 560px) / 2));
}
.profile .tile {
  padding-inline: 20px;
}
.tilebody > span {
  min-width: 0;
}
.socials {
  flex-wrap: wrap;
}
@media (min-width: 641px) {
  .editgrid {
    align-items: start;
  }
  .editgrid > .preview {
    display: block;
    min-width: 0;
  }
  .preview #live {
    max-height: calc(100dvh - 54px);
    overflow: auto;
    border-radius: 20px;
    margin-top: 8px;
  }
  .preview .profile {
    width: 100%;
    min-height: min(580px, calc(100dvh - 54px));
  }
}
