/*
	Author: Yan Metelitsa (noCliche)
	Author URI: nocliche.dev, yanmet.com
*/
/** Fonts */
/** Sizes */
/** Margins */
/** Colors */
/** Shadows */
/** Animations */
/** Desktop */
/** Settings */
* {
  scroll-behavior: smooth;
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
}
*::-webkit-scrollbar {
  width: 0;
  height: 0;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: transparent;
}

html {
  background-image: url(img/bg/bg-mobile.jpg);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  -webkit-tap-highlight-color: transparent;
  font-family: "Mulish", sans-serif;
  color: #525978;
  content: "0.9.05";
}
@media (min-width: 768px) {
  html {
    background-image: url(img/bg/bg-desktop.jpg);
  }
}
@media print {
  html {
    background: none;
  }
}

body {
  min-height: calc(100vh - 60px - 60px);
  margin: 60px auto 60px auto;
}
@media (min-width: 768px) {
  body {
    width: 768px;
  }
}
@media print {
  body {
    margin: 0;
  }
}

/* Remove print margins */
@page {
  margin: 0mm;
}
/*
 *	Media
 */
@media print {
  .not-print {
    display: none !important;
  }
}

/**
 *	Common elements
 */
@media print {
  input::-moz-placeholder {
    color: transparent;
  }
  input::placeholder {
    color: transparent;
  }
}

input.focus {
  transition: background-color ease 0.05s, border-color ease 0.05s;
}
input.focus:focus {
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.loading {
  background-color: #fff;
  width: 100%;
  height: 5px;
  border-radius: 5px;
}
.loading-line {
  background-color: #C06066;
  width: var(--value);
  height: 100%;
  border-radius: 5px;
  transition: width ease 0.1s;
}

.load-area {
  position: relative;
  transition: transform ease 0.25s;
}
.load-area::after {
  content: "";
  background-image: url(img/icons/loading.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 28px;
  height: 28px;
  opacity: 0;
  position: absolute;
  top: calc(50% - 14px);
  left: calc(50% - 14px);
  animation: ease 1s infinite load, 0.25s ease 0.15s fade-out forwards;
  transition: opacity ease 0.25s;
}
.load-area > * {
  transition: opacity ease 0.25s, visibility ease 0.25s;
}
.load-area.unload {
  position: fixed;
  top: 60px;
  right: 0;
  left: 0;
  bottom: 60px;
  transform: translateY(5px);
}
.load-area.unload > * {
  opacity: 0;
  visibility: hidden;
}
.load-area:not(.unload)::after {
  opacity: 0;
  visibility: hidden;
}

.breadcrumbs {
  padding: 0 0 15px 0;
  display: flex;
  gap: 14px;
}
.breadcrumbs a, .breadcrumbs span {
  position: relative;
  font-size: 14px;
  color: #2E3444;
}
.breadcrumbs a:not(:first-child)::before, .breadcrumbs span:not(:first-child)::before {
  content: "- ";
  position: absolute;
  left: -10px;
}

.zoom-button {
  cursor: pointer;
  transition: transform ease 0.05s;
}
.zoom-button:hover, .zoom-button.hover {
  transform: scale(1.015);
}

.push-button {
  transition: transform ease 0.05s;
}
.push-button:active {
  transform: scale(0.995);
}

.main-grid {
  display: grid;
  grid-template-columns: repeat(2, calc(50% - 15px / 2));
  gap: 15px;
  /** Grid item */
}
.main-grid__item {
  background-color: rgba(255, 255, 255, 0.4);
  padding: calc(15px * 3 / 4);
  border-radius: 6px;
  /**border: 1px solid #84668B33;*/
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.075);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  /** New */
  /** Empty */
  /** Hidden */
}
.main-grid__item.new {
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  /** Colors */
  /** Elements */
}
.main-grid__item.new.red {
  background-color: #C06066;
  aspect-ratio: 1;
}
.main-grid__item.new.orange {
  background-color: #E9AB71;
  aspect-ratio: 1;
}
.main-grid__item.new.transparent {
  background-color: transparent;
  border: 2px dashed #CECECE;
  box-shadow: none;
}
.main-grid__item.new header.hidden,
.main-grid__item.new footer.hidden {
  visibility: hidden;
}
.main-grid__item.new picture:not(.center) {
  transform: translateY(calc(-15px / 1.5));
}
.main-grid__item.new picture img {
  width: 40px;
}
.main-grid__item.new > span {
  font-weight: 500;
  font-size: 14px;
  color: #fff;
}
.main-grid__item.table-tile, .main-grid__item.passport-tile {
  aspect-ratio: 1;
  border-width: 2px;
}
.main-grid__item.table-tile.selected, .main-grid__item.passport-tile.selected {
  border-color: #C06066;
}
.main-grid__item.empty {
  background-color: transparent;
  padding: 15px;
  border: none;
  cursor: unset;
  aspect-ratio: unset;
  grid-column: 1/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-grid__item.empty span {
  font-size: 16px;
  text-align: center;
}
.main-grid__item.hidden {
  display: none;
}
.main-grid__item.white {
  background-color: #fff;
}
@media print {
  .main-grid__item header,
  .main-grid__item footer {
    background-color: transparent !important;
  }
}
.main-grid__item .title {
  margin: 0;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: 0.02em;
  color: #525978;
}
.main-grid__item .date {
  font-weight: 300;
  font-size: 16px;
  color: #84668B;
}
@media print {
  .main-grid__item {
    border: 2px solid rgba(0, 0, 0, 0.1254901961) !important;
    box-shadow: none;
  }
}

@media (min-width: 768px) {
  .tables__items,
  .passports__items {
    grid-template-columns: repeat(4, 1fr);
  }
}

.table-header,
.passport-header {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: calc(15px / 2);
}
.table-header > img,
.passport-header > img {
  cursor: pointer;
}
.table-header input,
.passport-header input {
  padding: 6px 10px;
  flex: 1;
  font-family: "Mulish";
  font-weight: 500;
  font-size: 20px;
  color: #525978;
}

@media print {
  .table-library-items {
    width: 210mm !important;
    height: 297mm !important;
    padding: 6mm 0;
    gap: 6mm;
  }
  .table-library-items .main-grid__item {
    width: 55mm;
    height: 65mm;
    align-self: center;
  }
  .table-library-items .main-grid__item.new {
    opacity: 0;
  }
  .table-library-items .main-grid__item:nth-child(even) {
    justify-self: flex-start;
  }
  .table-library-items .main-grid__item:nth-child(odd) {
    justify-self: flex-end;
  }
  .table-library-items .main-grid__item header {
    padding-top: 2mm;
  }
  .table-library-items .main-grid__item header input {
    font-size: 6mm !important;
  }
  .table-library-items .main-grid__item picture {
    padding: 0;
  }
  .table-library-items .main-grid__item picture img {
    width: 90%;
    height: auto;
  }
  .table-library-items[print-mode="2"] .main-grid__item {
    width: 88mm;
    height: 105mm;
  }
  .table-library-items[print-mode="2"] .main-grid__item:not(:nth-child(-n+2)) {
    display: none;
  }
  .table-library-items[print-mode="4"] .main-grid__item {
    width: 88mm;
    height: 105mm;
  }
  .table-library-items[print-mode="4"] .main-grid__item:not(:nth-child(-n+4)) {
    display: none;
  }
  .table-library-items[print-mode="4"] .main-grid__item:not(:nth-child(n+3)) {
    align-self: flex-end;
  }
  .table-library-items[print-mode="4"] .main-grid__item:not(:nth-child(-n+2)) {
    align-self: flex-start;
  }
  .table-library-items[print-mode="6"] .main-grid__item {
    width: 72mm;
    height: 86mm;
  }
  .table-library-items[print-mode="6"] .main-grid__item:not(:nth-child(-n+6)) {
    display: none;
  }
}
@media print and (orientation: landscape) {
  .table-library-items {
    background-color: red;
  }
}

.passport-data {
  display: flex;
  flex-direction: column;
  gap: 15px;
  /** Category */
  /** About */
}
@media (min-width: 768px) {
  .passport-data {
    width: 50%;
    margin-right: auto;
    margin-left: auto;
  }
}
.passport-data__section {
  margin-top: 5px;
  /** Category title */
  /** New category */
}
.passport-data__section > header {
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: calc(15px / 3);
}
.passport-data__section > header img {
  cursor: pointer;
}
.passport-data__section > header h3 {
  width: 0;
  margin: 0;
  flex: 1;
  font-family: "Comfortaa";
  font-weight: 700;
  font-size: 22px;
  color: #2E3444;
}
.passport-data__section > header h3 input {
  width: 100%;
  padding: 8px 12px;
  font-family: "Comfortaa";
  font-weight: 700;
  font-size: 18px;
  color: #2E3444;
}
.passport-data__section.new {
  background-color: rgba(255, 255, 255, 0.4);
  padding: 15px 0;
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(15px / 1.5);
}
.passport-data__section.new span {
  font-weight: 400;
  font-size: 16px;
  color: #84668B;
}
.passport-data__about {
  display: grid;
  grid-template-columns: repeat(2, calc(50% - 15px / 2));
  gap: 15px;
  /** Photo */
  /** Name and age */
  /* Text */
}
.passport-data__about-photo {
  background-color: #fff;
  border-radius: 100%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7.5px;
  -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
}
.passport-data__about-photo[style] {
  background-image: var(--photo);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.passport-data__about-photo[style] > * {
  display: none;
}
.passport-data__about-photo span {
  font-weight: 400;
  font-size: 16px;
  line-height: 18px;
  text-align: center;
  color: #84668B;
}
.passport-data__about-photo input {
  display: none;
}
.passport-data__about-person {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(15px / 1.5);
}
.passport-data__about-person-item {
  display: flex;
  align-items: center;
  gap: calc(15px / 2);
}
.passport-data__about-person-item img {
  cursor: pointer;
}
.passport-data__about-person-item input {
  width: 100%;
  padding: 6px 10px;
  font-weight: 600;
  font-size: 20px;
  color: #525978;
}
.passport-data__about-text {
  width: 100%;
  margin-top: 15px;
  font-size: 18px;
  color: #525978;
  resize: vertical;
}

.passport-categories {
  display: flex;
  flex-direction: column;
  gap: calc(15px * 1.5);
}
.passport-categories:empty {
  display: none;
}

.search-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.change-data-item header,
.change-data-item footer {
  background-color: #52597810;
  margin: calc(-1px - 15px / 2) calc(-1px - 15px * 3 / 4);
  border-radius: 6px;
}
.change-data-item header input,
.change-data-item footer input {
  background: none;
  padding: calc(15px / 2) calc(15px * 3 / 4) !important;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}
.change-data-item header {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.change-data-item picture {
  padding: 10px 0;
  padding-bottom: 0;
  box-sizing: content-box;
}
.change-data-item footer {
  margin-top: 3.75px;
  margin-bottom: calc(0px - 15px * 3 / 4);
  border-top-right-radius: 0;
  border-top-left-radius: 0;
}
.change-data-item footer input::-moz-placeholder {
  color: #52597890;
}
.change-data-item footer input::placeholder {
  color: #52597890;
}

.replace-skin {
  position: relative;
}
.replace-skin::after {
  content: attr(replace-text);
  background-image: url(img/bg/replace-skin.svg);
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  padding-top: 42px;
  position: absolute;
  top: -1px;
  right: -1px;
  bottom: -1px;
  left: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 17px;
  color: #C06066;
  z-index: 1;
}

.bottom-popup {
  background-color: rgba(0, 0, 0, 0.4);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition: opacity ease 0.1s;
  z-index: 99;
}
.bottom-popup:not(.active) {
  opacity: 0;
  visibility: hidden;
}
.bottom-popup__box {
  background-color: #fff;
  margin: 15px;
  padding: 25px;
  border-radius: 6px 6px 0 0;
  transition: transform ease 0.1s;
}
.bottom-popup__box-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bottom-popup__box-content * {
  margin: 0;
}
.bottom-popup:not(.active) .bottom-popup__box {
  transform: translateY(20px);
}
@media (min-width: 768px) {
  .bottom-popup.donate {
    justify-content: center;
  }
}
.bottom-popup.donate .bottom-popup__box {
  background-color: transparent;
  width: calc(100% - 30px);
  padding: 0;
}
@media (min-width: 768px) {
  .bottom-popup.donate .bottom-popup__box {
    width: 400px;
  }
}
.bottom-popup.install .bottom-popup__box {
  margin: 15px 15px 0 15px;
}

/**
 *	Main elements
 */
/** Main header */
.main-header {
  background: radial-gradient(100% 135% at 50% 13%, #84668B 0%, #635785 100%);
  border-radius: 0px 0px 10px 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.075);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  /** Buttons */
  /** Title */
  /** Menu */
}
@media (min-width: 768px) {
  .main-header {
    width: 768px;
    left: calc((100vw - 768px) / 2);
  }
}
.main-header__top {
  height: 60px;
  padding: 0 10px;
  align-items: center;
  justify-content: space-between;
}
.main-header__lang {
  background-color: #84668B;
  margin-right: auto;
  margin-left: 15px;
  padding: 8px 14px;
  border-radius: 100vw;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
}
.main-header__lang:hover {
  background-color: #635785;
}
.main-header:not(.menu-open) .main-header__lang {
  display: none;
}
.main-header__button {
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color ease 0.05s;
}
.main-header__button:hover {
  background-color: #84668B;
}
.main-header__button img {
  width: 30px;
  height: 30px;
}
.main-header:not(.menu-open) .main-header__button.menu-button img:first-child {
  display: block;
}
.main-header:not(.menu-open) .main-header__button.menu-button img:last-child {
  display: none;
}
.main-header.menu-open .main-header__button.menu-button img:first-child {
  display: none;
}
.main-header.menu-open .main-header__button.menu-button img:last-child {
  display: block;
}
.main-header__title {
  gap: 15px;
}
.main-header__title span {
  font-family: "Comfortaa", cursive;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}
.main-header.menu-open .main-header__title {
  display: none;
}
.main-header__menu {
  width: 90%;
  margin: calc(-60px / 3) auto 0 auto;
  margin-top: 0;
  padding: 0 0 25px 0;
}
.main-header__menu-item {
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
}
.main-header__menu-item[disabled] {
  display: none;
}
.main-header__menu-item:hover {
  background-color: #84668B;
}
.main-header__menu-item img {
  width: 28px;
  height: 28px;
}
.main-header__menu-item span {
  font-weight: 400;
  font-size: 1.25rem;
  color: #fff;
}
.main-header:not(.menu-open) .main-header__menu {
  display: none;
}

/** Main main */
.main-main {
  padding: 15px;
  /** Page */
}
@media (min-width: 768px) {
  .main-main {
    padding-right: 0;
    padding-left: 0;
  }
}
@media print {
  .main-main {
    padding: 0;
  }
}
.main-main__page {
  /** Error */
}
.main-main__page.error {
  min-height: calc(100vh - 60px - 60px - 15px * 2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.main-main__page.error h1 {
  font-size: 64px;
  margin: 0;
  text-align: center;
}
.main-main__page.error span {
  max-width: 50vw;
  display: block;
  text-align: center;
}

/** Messages */
.messages-box {
  padding-bottom: calc(60px + 15px);
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  /** Message */
}
@media (min-width: 768px) {
  .messages-box {
    padding-bottom: 15px;
  }
}
.messages-box__item {
  background-color: #fff;
  margin: 0 15px;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.075);
  display: flex;
  flex-direction: column;
  gap: calc(15px / 2);
  transition: transform ease 0.25s, opacity ease 0.25s;
}
@media (min-width: 768px) {
  .messages-box__item {
    width: calc((100vw - 768px) / 2 - 30px);
  }
}
.messages-box__item.alert {
  background: linear-gradient(275deg, #E9AB71 -2%, #EF9A75 85%);
}
.messages-box__item.alert * {
  color: #fff;
}
.messages-box__item h4 {
  margin: 0;
  font-size: 15px;
}
.messages-box__item h4:empty {
  display: none;
}
.messages-box__item section p {
  margin: 0;
}

/** Main navigation */
.main-nav {
  background: #fff;
  height: 60px;
  border-radius: 10px 10px 0px 0px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.075);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  overflow: hidden;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  /** Button */
}
@media (min-width: 768px) {
  .main-nav {
    width: 768px;
    left: calc((100vw - 768px) / 2);
  }
}
.main-nav__item {
  height: 100%;
  cursor: pointer;
  flex: 1;
  gap: 8px;
  text-decoration: none;
  transition: opacity ease 0.05s;
  /** Active / unactive */
  /** Icon */
  /** Label */
}
.main-nav__item:not(.active) {
  opacity: 0.3;
  pointer-events: none;
}
.main-nav__item:active, .main-nav__item.pressed {
  background-color: #84668B;
}
.main-nav__item:active img, .main-nav__item.pressed img {
  filter: brightness(100);
}
.main-nav__item:active span, .main-nav__item.pressed span {
  color: #fff;
}
.main-nav__item-img-box {
  position: relative;
}
.main-nav__item-img-box span {
  background-color: #84668B;
  border-radius: 100%;
  width: 18px;
  height: 18px;
  position: absolute;
  top: calc((100% - 18px) / 2);
  left: calc((100% - 18px) / 2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Mulish";
  font-weight: 600;
  font-size: 11px;
  color: #fff;
  transition: opacity ease 0.05s;
}
.main-nav__item-img-box span.hidden {
  opacity: 0;
}
.main-nav__item > span {
  font-weight: 700;
  font-size: 14px;
  color: #84668B;
}
.main-nav__item:nth-child(2) {
  background: linear-gradient(275deg, #E9AB71 -2%, #EF9A75 85%);
}
.main-nav__item:nth-child(2) img {
  filter: brightness(100);
}
.main-nav__item:nth-child(2) span {
  color: #fff;
}

/** Items edit panel */
.items-edit-panel {
  padding: 0 15px;
  padding-bottom: calc(15px / 1.5 + 60px);
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 2;
  transition: padding ease 0.25s, opacity ease 0.25s;
}
.items-edit-panel:not(.active) {
  padding: 0;
  opacity: 0;
}
.items-edit-panel__item {
  background-color: #84668B;
  padding: calc(15px / 1.5);
  border-radius: 100%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7.5px;
  transition: transform ease 0.25s;
}
.items-edit-panel__item.red {
  background-color: #C06066;
}
.items-edit-panel__item img {
  filter: brightness(100);
}
.items-edit-panel__item span {
  display: none;
}

/* Print panel */
.print-panel {
  position: fixed;
  right: 0;
  bottom: 75px;
  left: 66.6666666667vw;
  opacity: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
  transition: opacity ease 0.25s, transform ease 0.25s;
}
@media (min-width: 768px) {
  .print-panel {
    right: calc((100vw - 768px) / 2);
    left: calc((100vw - 768px) / 2 + 768px / 3 * 2);
  }
}
@media print {
  .print-panel {
    display: none;
  }
}
.print-panel:not(.active) {
  transform: translateY(100vw);
  opacity: 0;
}
.print-panel__item {
  background-color: #C06066;
  width: 50px;
  height: 50px;
  border-radius: 100%;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

/**
 *	Pages
 */
/** Desktop */
.desktop {
  display: flex;
  flex-direction: column;
  gap: 35px;
  /** Header */
  /** Sections */
}
.desktop__header h2 {
  margin: 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.5rem;
  text-align: center;
  color: #2E3444;
}
.desktop__header p {
  margin: 0;
  line-height: 125%;
  text-align: center;
  color: #525978;
}
.desktop__header a {
  font-weight: 600;
  color: #84668B;
}
.desktop__sections {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
@media (min-width: 768px) {
  .desktop__sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}
.desktop__sections-item {
  padding: 35px 25px;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.075);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.desktop__sections-item h3 {
  margin: 0;
  font-size: 1.45rem;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
  color: #fff;
}
.desktop__sections-item.red {
  background: linear-gradient(275deg, #C07160 -10%, #C06066 60%);
}
.desktop__sections-item.orange {
  background: linear-gradient(275deg, #E9AB71 -2%, #EF9A75 85%);
}
.desktop__sections-item.blue {
  background: linear-gradient(275deg, #5F577E -7%, #525978 70%);
}
.desktop__sections-item.white {
  background: radial-gradient(100% 135% at 50% 13%, #84668B 0%, #635785 100%);
  padding: 25px;
}
.desktop__sections-item.white h3 {
  font-size: 1.25rem;
}
.desktop__sections-item.white img {
  display: none;
}

/** Tables */
@media (min-width: 768px) {
  .tables .library__items {
    width: 50%;
    margin-right: auto;
    margin-left: auto;
  }
}

/** Passport */
@media print {
  .passports {
    width: 210mm;
    /* Header */
    /* Parent */
    /* About data */
    /* Categories */
  }
  .passports .main-grid__item {
    width: 100%;
    height: 68mm;
    gap: 0;
  }
  .passports .main-grid__item.new {
    display: none;
  }
  .passports .main-grid__item picture {
    aspect-ratio: unset;
  }
  .passports .main-grid__item picture img {
    width: 35mm;
    height: 35mm;
  }
  .passports .main-grid__item footer {
    flex: 1;
  }
  .passports .main-grid__item footer input,
  .passports .main-grid__item footer textarea {
    height: 100%;
  }
  .passports .main-grid__item footer input::-moz-placeholder, .passports .main-grid__item footer textarea::-moz-placeholder {
    color: transparent;
  }
  .passports .main-grid__item footer input::placeholder,
  .passports .main-grid__item footer textarea::placeholder {
    color: transparent;
  }
  .passports .passport-header {
    width: 110mm;
    height: 17mm;
    margin: auto;
  }
  .passports .passport-header input {
    text-align: center;
    box-shadow: none;
  }
  .passports .passport-data {
    width: auto;
    margin: unset;
    align-items: center;
    gap: 0;
  }
  .passports .passport-data__about-photo {
    width: 50mm;
    height: 50mm;
    border: 2px solid rgba(0, 0, 0, 0.1254901961) !important;
    box-shadow: none;
  }
  .passports .passport-data__about-photo img, .passports .passport-data__about-photo span {
    display: none;
  }
  .passports .passport-data__about-text {
    width: 110mm;
    height: 50mm;
    box-shadow: none;
    resize: none;
    flex: unset !important;
  }
  .passports .passport-data__about-text::-moz-placeholder {
    color: transparent;
  }
  .passports .passport-data__about-text::placeholder {
    color: transparent;
  }
  .passports .passport-data__about input {
    border: 2px solid rgba(0, 0, 0, 0.1254901961) !important;
    box-shadow: none;
    text-align: center;
  }
  .passports .passport-data__section:first-child {
    width: 110mm;
    height: 112mm;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2mm;
  }
  .passports .passport-data__section:first-child > header,
  .passports .passport-data__section:first-child > div,
  .passports .passport-data__section:first-child > textarea {
    width: 110mm;
  }
  .passports .passport-data__section:first-child > textarea {
    border: 2px solid rgba(0, 0, 0, 0.1254901961) !important;
    flex: 1;
  }
  .passports .library__items {
    width: 110mm;
    height: 69mm;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
  .passports .passport-categories {
    gap: 0;
  }
  .passports .passport-categories .passport-data__section {
    height: 99mm;
    gap: 2mm;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .passports .passport-categories .passport-data__section:not(:has(.main-grid__item:not(.new))) {
    display: none;
  }
  .passports .passport-categories .passport-data__section header input {
    box-shadow: none;
    text-align: center;
  }
}

/** Library */
.library {
  /** Search */
  /** Item */
  /** Viewer */
}
.library__header {
  padding-bottom: 15px;
}
.library__search {
  height: 56px;
  display: flex;
  gap: 15px;
  position: relative;
  /** Favorite and Uploads */
  /** Filter button */
  /** Filters */
}
.library__search > img {
  position: absolute;
  top: calc(50% - 12px);
  left: 12px;
  pointer-events: none;
  z-index: 1;
}
.library__search-category-button {
  padding-right: 13.0434782609px;
  padding-left: 13.0434782609px;
  border: none;
  display: none;
  align-items: center;
  gap: 7.5px;
  text-decoration: none;
}
@media (min-width: 768px) {
  .library__search-category-button {
    display: flex;
  }
}
.library__search-category-button.orange {
  background: linear-gradient(275deg, #E9AB71 -2%, #EF9A75 85%);
}
.library__search-category-button.blue {
  background: linear-gradient(275deg, #5F577E -7%, #525978 70%);
}
.library__search-category-button span {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}
.library__search input {
  background-image: url(img/icons/search.svg);
  background-position: 11px 13px;
  background-repeat: no-repeat;
  width: 0;
  flex: 1;
  padding-top: unset;
  padding-bottom: unset;
  padding-left: 48px;
}
.library__search.filter-mode .library__search-filters {
  box-shadow: none;
}
.library__search-filter-button {
  gap: calc(15px / 2);
  cursor: pointer;
  z-index: 3;
}
.library__search-filter-button img {
  transition: filter ease 0.05s;
}
.library__search-filter-button span {
  font-weight: 700;
  color: #C06066;
}
.library__search:not(.filter-mode) .library__search-filter-button img[alt=close] {
  display: none;
}
.library__search.filter-mode .library__search-filter-button {
  box-shadow: none;
  transform: scale(0.75);
  transition: background-color ease 0.05s;
}
.library__search.filter-mode .library__search-filter-button img {
  transform: scale(1.1);
}
.library__search.filter-mode .library__search-filter-button img[alt=filter] {
  display: none;
}
.library__search.filter-mode .library__search-filter-button span {
  display: none;
}
.library__search.filter-mode .library__search-filter-button:hover {
  background-color: #C06066;
}
.library__search.filter-mode .library__search-filter-button:hover img {
  filter: brightness(100);
}
.library__search-filters {
  background-color: #fff;
  min-height: 56px;
  padding: calc(15px / 2);
  padding-right: calc(15px / 2 + 56px);
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: calc(15px / 2);
  z-index: 2;
}
.library__search-filters > div {
  background-color: #f6f6f6;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.library__search-filters > div.active {
  background-color: #C06066;
  color: #fff;
}
.library__search:not(.filter-mode) .library__search-filters {
  opacity: 0;
  visibility: hidden;
}
.library__load-nav {
  padding-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}
@media (min-width: 768px) {
  .library__load-nav {
    flex-direction: row-reverse;
    align-items: center;
  }
}
.library__load-nav-button {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7.5px;
}
.library__load-nav-button span {
  font-weight: 500;
  font-size: 15px;
  color: #84668B;
  white-space: nowrap;
}
.library__load-nav .library__viewer .save-my-image {
  margin-bottom: -15px;
}
.library__items.search-images:empty, .library__items.search-videos:empty {
  display: none;
}
@media (min-width: 768px) {
  .library__items:not(.passport-data__section_main, .table-library-items) {
    grid-template-columns: repeat(4, calc(25% - 15px / 4 * 3));
  }
}
.library__items > a,
.library__items > div {
  position: relative;
  transition: border-color ease 0.05s;
  /** Item */
  /** Card */
  /** Video */
  /** Category */
  /** In edit */
}
.library__items > a.selected,
.library__items > div.selected {
  border-color: #C06066 !important;
}
.library__items > a header,
.library__items > div header {
  display: flex;
  align-items: center;
}
.library__items > a header span,
.library__items > div header span {
  width: 100%;
  font-weight: 700;
  font-size: 16px;
  color: #2E3444;
}
.library__items > a header .favorite-button,
.library__items > div header .favorite-button {
  border-radius: 100%;
  cursor: pointer;
}
.library__items > a header .favorite-button:hover,
.library__items > div header .favorite-button:hover {
  background-color: #f6f6f6;
}
.library__items > a header .favorite-button.active,
.library__items > div header .favorite-button.active {
  background-color: #ffb800;
}
.library__items > a header .favorite-button.active img,
.library__items > div header .favorite-button.active img {
  filter: brightness(100);
}
.library__items > a header.center span,
.library__items > div header.center span {
  text-align: center;
}
.library__items > a header.center input,
.library__items > a header.center textarea,
.library__items > div header.center input,
.library__items > div header.center textarea {
  font-weight: 700;
  font-size: 16px;
  color: #525978;
  text-align: center;
}
.library__items > a picture,
.library__items > div picture {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}
.library__items > a picture img,
.library__items > div picture img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.library__items > a video,
.library__items > div video {
  width: calc(100% + 20px);
  margin: -10px;
  margin-top: 0;
  border-radius: 6px;
}
.library__items > a footer input,
.library__items > div footer input {
  font-size: 12px;
}
.library__items > a footer.center input,
.library__items > a footer.center textarea,
.library__items > div footer.center input,
.library__items > div footer.center textarea {
  text-align: center;
}
.library__items > a header,
.library__items > a footer,
.library__items > div header,
.library__items > div footer {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  z-index: 1;
}
.library__items > a header input,
.library__items > a header textarea,
.library__items > a footer input,
.library__items > a footer textarea,
.library__items > div header input,
.library__items > div header textarea,
.library__items > div footer input,
.library__items > div footer textarea {
  width: 100%;
  padding: 3px;
  box-shadow: none;
  border-radius: 6px;
}
.library__items > a header textarea,
.library__items > a footer textarea,
.library__items > div header textarea,
.library__items > div footer textarea {
  resize: none;
}
.library__items > a:not(.category),
.library__items > div:not(.category) {
  background-color: #fff;
  border: 2px solid #fff;
  gap: calc(15px / 2);
}
.library__items > a:not(.category):not(.empty),
.library__items > div:not(.category):not(.empty) {
  padding-top: calc(15px / 2);
}
.library__items > a.video,
.library__items > div.video {
  background-color: #535A7C;
  border: none;
}
.library__items > a.video header span,
.library__items > div.video header span {
  color: #fff;
}
.library__items > a.category,
.library__items > div.category {
  position: relative;
  gap: calc(15px / 1.5);
}
.library__items > a.category::after,
.library__items > div.category::after {
  content: "";
  background-image: url(img/icons/folder.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 20px;
  height: 20px;
  position: absolute;
  left: 10px;
  bottom: 10px;
}
.library__items > a.category header span,
.library__items > div.category header span {
  text-align: center;
}
.library__items > a.category picture,
.library__items > div.category picture {
  margin: auto;
  aspect-ratio: unset;
}
.library__items > a.category picture img,
.library__items > div.category picture img {
  width: 50%;
}
.library__items > a.color-category,
.library__items > div.color-category {
  min-height: 56px;
  aspect-ratio: unset;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .library__items > a.color-category,
  .library__items > div.color-category {
    display: none;
  }
}
.library__items > a.color-category.orange,
.library__items > div.color-category.orange {
  background: linear-gradient(275deg, #E9AB71 -2%, #EF9A75 85%);
}
.library__items > a.color-category.blue,
.library__items > div.color-category.blue {
  background: linear-gradient(275deg, #5F577E -7%, #525978 70%);
}
.library__items > a.color-category header,
.library__items > div.color-category header {
  align-items: center;
}
.library__items > a.color-category header span,
.library__items > div.color-category header span {
  color: #fff;
}
.library__items > a.color-category picture,
.library__items > div.color-category picture {
  width: 20px;
  height: 20px;
  margin: 0;
}
.library__items > a.color-category picture img,
.library__items > div.color-category picture img {
  width: auto;
  height: 100%;
}
.library__items > a.in-edit,
.library__items > div.in-edit {
  border-color: #C06066;
}
.library__viewer {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 10px;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  transition: opacity ease 0.25s;
}
@media (min-width: 768px) {
  .library__viewer {
    padding-right: calc((100vw - 768px) / 1.25);
    padding-left: calc((100vw - 768px) / 1.25);
  }
}
.library__viewer:not(.active) {
  opacity: 0;
}
.library__viewer:not(.visible) {
  visibility: hidden;
}
.library__viewer-data {
  background-color: #fff;
  width: 100%;
  padding: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.075);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: transform ease 0.25s;
}
@media (min-width: 768px) {
  .library__viewer-data {
    max-width: 25vw;
    margin: auto;
    padding: 22.5px;
    gap: 15px;
  }
}
.library__viewer-data.video {
  background-color: #535A7C;
}
.library__viewer-data h3,
.library__viewer-data input {
  margin: 0;
  box-shadow: unset;
  font-weight: 500;
  font-size: 24px;
  line-height: 125%;
  color: #2E3444;
  text-align: center;
}
@media (min-width: 768px) {
  .library__viewer-data h3,
  .library__viewer-data input {
    font-size: 24px;
  }
}
.library__viewer-data.video h3 {
  color: #fff;
}
.library__viewer-data picture {
  margin: auto 0;
}
.library__viewer-data picture img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.library__viewer-data picture.file-zone {
  background-color: #EEEEEE;
  border-radius: 6px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}
.library__viewer-data picture.file-zone img {
  width: 16%;
  height: auto;
}
.library__viewer-data picture.file-zone span {
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  color: #C4C4C4;
}
.library__viewer-data picture.file-zone.loaded {
  overflow: hidden;
}
.library__viewer-data picture.file-zone.loaded img {
  width: 100%;
  height: auto;
  border-radius: 0;
}
.library__viewer-data picture.file-zone.loaded span {
  display: none;
}
.library__viewer-data.video picture {
  display: none;
}
.library__viewer-data video {
  margin-bottom: -22.5px;
}
.library__viewer-data:not(.video) video {
  display: none;
}
.library__viewer-data .button {
  background-color: #f6f6f6;
  padding: 15px 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  color: #525978;
}
@media (min-width: 768px) {
  .library__viewer-data .button {
    font-size: 18px;
  }
}
.library__viewer-data .button:active {
  background-color: #84668B;
  color: #fff;
}
.library__viewer-data .button.square {
  width: 70px;
  height: 70px;
  aspect-ratio: 1;
}
.library__viewer-data .load-nav {
  gap: 15px;
}
.library__viewer-data .load-nav .button {
  background-color: #C06066;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.library__viewer-data .load-nav .button img {
  filter: brightness(100);
}
.library__viewer-data .load-nav input.button {
  background-color: #E9AB71;
  margin: 0;
  padding: 0;
  flex: 1;
  color: #fff;
}
.library__viewer:not(.active) .library__viewer-data {
  transform: translateY(15px);
}

.app-info-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.app-info-page__section {
  background: #fff;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app-info-page__section span {
  font-size: 16px;
}
.app-info-page__section span.title {
  font-size: 18px;
}

.text-page {
  padding: 10px;
  font-size: 18px;
}
.text-page *:first-child {
  margin-top: 0;
}
.text-page *:last-child {
  margin-bottom: 0;
}
.text-page a {
  color: #525978;
}
.text-page a.bold {
  font-weight: 700;
}
.text-page ul {
  padding-left: 18px;
}

.guide {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 18px;
}
.guide__content {
  background-color: #fff;
  padding: 22.5px;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.075);
}
.guide__content h2 {
  margin: 0 0 7.5px 0;
  padding-bottom: 7.5px;
  border-bottom: 1px solid #525978;
}
.guide__content ol {
  padding-left: 10px;
  counter-reset: item;
}
.guide__content > ol {
  margin-bottom: 0;
  padding-left: 0;
}
.guide__content li {
  display: block;
  font-weight: 400;
  font-size: 18px;
}
.guide__content li a {
  margin-bottom: 3px;
  display: inline-block;
}
.guide__content a {
  color: #525978;
}
.guide__content a.bold {
  font-weight: 700;
}
.guide__content li:before {
  content: counters(item, ".") " ";
  counter-increment: item;
}
.guide__accordion {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.075);
  overflow: hidden;
}
.guide__accordion-button {
  padding: 22.5px;
  cursor: pointer;
}
.guide__accordion-button span {
  padding-right: 28px;
  position: relative;
  display: block;
  font-weight: 600;
  font-size: 18px;
}
.guide__accordion-button span::after {
  content: "";
  background-image: url(img/icons/accordion-arrow.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 18px;
  height: 18px;
  position: absolute;
  top: calc(50% - 9px);
  right: 0;
}
.guide__accordion.active .guide__accordion-button {
  background-color: #5F577E;
  color: #fff;
}
.guide__accordion.active .guide__accordion-button span::after {
  filter: brightness(100);
  transform: rotate(180deg);
}
.guide__accordion-content {
  padding: 22.5px;
  border: 2px solid #5F577E;
  border-top: none;
  border-radius: 0 0 6px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.guide__accordion-content * {
  width: 100%;
  margin: 0;
}
.guide__accordion-content p {
  font-size: 18px;
}
.guide__accordion-content img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.075);
}
@media (min-width: 768px) {
  .guide__accordion-content img {
    width: 50%;
  }
}
.guide__accordion:not(.active) .guide__accordion-content {
  display: none;
}

/** Maintenance page */
/** Setup page */
body.maintenance,
body.setup {
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
body.maintenance .main-main,
body.setup .main-main {
  width: 50vw;
  height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
@media (min-width: 768px) {
  body.maintenance .main-main,
  body.setup .main-main {
    width: 20vw;
  }
}
body.maintenance .main-main img,
body.setup .main-main img {
  width: 100%;
  height: auto;
}
body.maintenance .main-main span,
body.setup .main-main span {
  text-align: center;
}

/** Animations */
@keyframes load {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes fade-out {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/*                       .       .
                        / `.   .' \
                .---.  <    > <    >  .---.
                |    \  \ - ~ ~ - /  /    |
                 ~-..-~             ~-..-~
             \~~~\.'                    `./~~~/
              \__/                        \__/
               /                  .-    .  \
        _._ _.-    .-~ ~-.       /       }   \/~~~/
    _.-'q  }~     /       }     {        ;    \__/
   {'__,  /      (       /      {       /      `. ,~~|   .     .
    `''''='~~-.__(      /_      |      /- _      `..-'   \\   //
                / \   =/  ~~--~~{    ./|    ~-.     `-..__\\_//_.-'
               {   \  +\         \  =\ (        ~ - . _ _ _..---~
               |  | {   }         \   \_\
               '---.o___,'       .o___*//*# sourceMappingURL=style.css.map */