#pages {
  display: grid;
  height: 100%;
  row-gap: 1rem;
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "header" "main" "footer";
}
@media (width >= 64rem) {
  #pages {
    padding: 0 1rem 1rem;
  }
}
@media (width < 64rem) {
  #pages {
    padding: 0.3125rem;
  }
}
#pages > .main {
  grid-area: main;
  overflow-y: scroll;
  scrollbar-width: none;
  align-content: start;
}
#pages input,
#pages textarea {
  width: 100%;
  font-family: var(--sans-serif);
  font-size: var(--sans-serif-size);
}
#pages input:is([type=text], [type=search], [type=password], [type=date], [type=time], textarea),
#pages textarea:is([type=text], [type=search], [type=password], [type=date], [type=time], textarea) {
  padding: 0 0.5rem;
}
#pages input:is(.dark *),
#pages textarea:is(.dark *) {
  color: #cccccc;
}
#pages input:is(.light *),
#pages textarea:is(.light *) {
  color: #333333;
}
#pages input:is(.classic *),
#pages textarea:is(.classic *) {
  border-width: 0.0625rem;
  border-style: solid;
}
#pages input:is(.classic *)[type="text"],
#pages textarea:is(.classic *)[type="text"],
#pages input:is(.classic *)[type="date"],
#pages textarea:is(.classic *)[type="date"],
#pages input:is(.classic *)[type="time"],
#pages textarea:is(.classic *)[type="time"],
#pages input:is(.classic *)[type="search"],
#pages textarea:is(.classic *)[type="search"],
#pages input:is(.classic *)[type="password"],
#pages textarea:is(.classic *)[type="password"] {
  height: 2.25rem;
}
#pages input:is(.classic *):is(.dark *),
#pages textarea:is(.classic *):is(.dark *) {
  border-bottom-color: #413e3e;
  border-right-color: #413e3e;
  border-top-color: #0c0c0c;
  border-left-color: #0c0c0c;
  background-color: #1e1d1d;
}
#pages input:is(.modern *),
#pages textarea:is(.modern *) {
  border-radius: 0.25rem;
  border-width: 2px;
  border-style: solid;
}
#pages input:is(.modern *)[type="text"],
#pages textarea:is(.modern *)[type="text"],
#pages input:is(.modern *)[type="date"],
#pages textarea:is(.modern *)[type="date"],
#pages input:is(.modern *)[type="time"],
#pages textarea:is(.modern *)[type="time"],
#pages input:is(.modern *)[type="search"],
#pages textarea:is(.modern *)[type="search"],
#pages input:is(.modern *)[type="password"],
#pages textarea:is(.modern *)[type="password"] {
  height: 2.25rem;
}
#pages input:is(.modern *):is(.dark *),
#pages textarea:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
  border-color: #383433;
}
#pages input:is(.modern *):is(.light *),
#pages textarea:is(.modern *):is(.light *) {
  background-color: #fffbfb;
  border-color: #c9bfbc;
}
#pages input[type=file],
#pages textarea[type=file] {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0;
  position: absolute;
  z-index: 7;
  cursor: pointer;
}
#pages input[type=file]::-webkit-file-upload-button,
#pages textarea[type=file]::-webkit-file-upload-button {
  cursor: pointer;
}
#pages input[type=radio],
#pages textarea[type=radio] {
  appearance: none;
  cursor: pointer;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}
#pages input[type=radio]:is(.modern *):is(.dark *):checked,
#pages textarea[type=radio]:is(.modern *):is(.dark *):checked {
  background-color: #ff4e00;
  border-color: #802600;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
}
#pages input[type=radio]:is(.modern *):is(.light *):checked,
#pages textarea[type=radio]:is(.modern *):is(.light *):checked {
  background-color: #ff4e00;
  border-color: #ff9466;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
}
#pages input[type=radio]:is(.classic *):is(.dark *):checked,
#pages textarea[type=radio]:is(.classic *):is(.dark *):checked {
  background-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  border-top-color: #330f00;
  border-left-color: #330f00;
  border-bottom-color: #802600;
  border-right-color: #802600;
  border-width: 1.4px;
}
#pages input[type=checkbox],
#pages textarea[type=checkbox] {
  appearance: none;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}
#pages input[type=checkbox]:is(.modern *),
#pages textarea[type=checkbox]:is(.modern *) {
  border-radius: 0.25rem;
  border-style: solid;
  border-width: 2px;
}
#pages input[type=checkbox]:is(.modern *):is(.dark *),
#pages textarea[type=checkbox]:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
  border-color: #383433;
}
#pages input[type=checkbox]:is(.modern *):is(.dark *):checked,
#pages textarea[type=checkbox]:is(.modern *):is(.dark *):checked {
  background-color: #ff4e00;
  border-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  background-image: var(--check-icon);
}
#pages input[type=checkbox]:is(.modern *):is(.light *),
#pages textarea[type=checkbox]:is(.modern *):is(.light *) {
  background-color: #fffbfb;
  border-color: #c9bfbc;
}
#pages input[type=checkbox]:is(.modern *):is(.light *):checked,
#pages textarea[type=checkbox]:is(.modern *):is(.light *):checked {
  background-color: #ff4e00;
  border-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  background-image: var(--check-icon);
}
#pages input[type=checkbox]:is(.classic *):checked,
#pages textarea[type=checkbox]:is(.classic *):checked {
  background-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  background-image: var(--check-icon);
  border-bottom: 2px solid #bd3900;
  border-right: 2px solid #bd3900;
  border-top: 2px solid #762300;
  border-left: 2px solid #762300;
}
#pages .button {
  display: grid;
  position: relative;
  overflow: hidden;
  min-width: max-content;
  cursor: pointer;
  padding: 0.25rem 1rem;
}
@media (width < 24rem) {
  #pages .button {
    padding: 0.25rem 0.25rem;
  }
}
#pages .button.upload {
  padding: 0;
}
#pages .button > span {
  user-select: none;
  font-family: var(--sans-serif);
  font-size: var(--sans-serif-size);
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  align-content: center;
  height: 100%;
  width: 100%;
  position: relative;
}
#pages .button > span:is(.upload > *) {
  padding: 0.25rem 1rem;
}
#pages .button:is(.classic *):is(.dark *) {
  color: #d5bfae;
  background: url(../img/button-top-left.png) top left no-repeat, url(../img/button-top-right.png) top right no-repeat, url(../img/button-bottom-left.png) bottom left no-repeat, url(../img/button-bottom-right.png) bottom right no-repeat, url(../img/button-top.png) top repeat-x, url(../img/button-bottom.png) bottom repeat-x, url(../img/button-left.png) left repeat-y, url(../img/button-right.png) right repeat-y, url(../img/button-center.png) center / cover no-repeat;
}
#pages .button:is(.classic *):is(.dark *):active:is(.classic.dark *) {
  color: #e4845a;
  background: url(../img/pressed-top-left.png) top left no-repeat, url(../img/pressed-top-right.png) top right no-repeat, url(../img/pressed-bottom-left.png) bottom left no-repeat, url(../img/pressed-bottom-right.png) bottom right no-repeat, url(../img/pressed-top.png) top repeat-x, url(../img/pressed-bottom.png) bottom repeat-x, url(../img/pressed-left.png) left repeat-y, url(../img/pressed-right.png) right repeat-y, url(../img/pressed-center.png) center / cover no-repeat;
}
#pages .button:is(.classic *):is(.dark *):active:is(.classic.dark *) > span {
  transform: translate(0, 1px);
}
#pages .button:is(.modern *) {
  border-style: solid;
  border-width: 2px;
  border-radius: 0.25rem;
}
#pages .button:is(.modern *):is(.dark *) {
  border-color: #383433;
  color: #d5bfae;
}
#pages .button:is(.modern *):is(.dark *):hover {
  color: #e9c3a6;
}
#pages .button:is(.modern *):is(.light *) {
  border-color: #c9bfbc;
  color: #604c44;
}
#pages .button:is(.modern *):is(.light *):hover {
  color: #93614e;
}
#pages .button.icon {
  padding: 0;
  aspect-ratio: 1/1;
  height: 100%;
}
#pages .button.icon span {
  background-repeat: no-repeat;
  background-position: center;
}
#pages .button.trash.icon span {
  background-size: 30px;
}
#pages .button.trash.icon span:is(.dark *) {
  background-image: var(--icon-trash-dark);
}
#pages .button.trash.icon span:is(.light *) {
  background-image: var(--icon-trash-light);
}
#pages .button.close.icon span {
  background-size: 40%;
}
#pages .button.close.icon span:is(.dark *) {
  background-image: var(--icon-cross-dark);
}
#pages .button.close.icon span:is(.light *) {
  background-image: var(--icon-cross-light);
}
#pages .button.minimize.icon .dash {
  width: 14px;
  height: 1px;
  border-radius: 1px;
  background-color: #d09074;
  margin-top: 10px;
}
#pages .button.minimize.icon .dash:is(.dark *) {
  background-color: #d09074;
}
#pages .button.minimize.icon .dash:is(.light *) {
  background-color: #9b8b84;
}
#pages .button.settings.icon span {
  background-image: var(--icon-settings);
}
#pages .button.settings.icon span svg {
  width: var(--height);
}
#pages .button.settings.icon span svg .b {
  stroke: #9b8b84;
  stroke-miterlimit: 10;
}
#pages .button.save.icon span {
  background-size: 16px;
}
#pages .button.save.icon span:is(.dark *) {
  background-image: var(--icon-save-dark);
}
#pages .button.save.icon span:is(.light *) {
  background-image: var(--icon-save-light);
}
#pages .pprop {
  grid-area: prop;
  display: none;
  row-gap: 12px;
}
#pages .pprop:is(.properties *) {
  display: grid;
}
@media (width >= 64rem) {
  #pages .pprop {
    grid-template-columns: 1fr 1fr;
    column-gap: 11px;
  }
}
#pages .pprop .select.widget {
  position: relative;
}
#pages .pprop .select.widget:is(.classic *) {
  height: 2.25rem;
}
#pages .pprop .select.widget:is(.modern *) {
  height: 2.25rem;
}
#pages .pprop .select.widget .selected {
  width: 100%;
  font-family: var(--sans-serif);
  font-size: var(--sans-serif-size);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.1875rem;
  height: 100%;
  cursor: pointer;
  user-select: none;
}
#pages .pprop .select.widget .selected:is([type=text], [type=search], [type=password], [type=date], [type=time], textarea) {
  padding: 0 0.5rem;
}
#pages .pprop .select.widget .selected:is(.dark *) {
  color: #cccccc;
}
#pages .pprop .select.widget .selected:is(.light *) {
  color: #333333;
}
#pages .pprop .select.widget .selected:is(.classic *) {
  border-width: 0.0625rem;
  border-style: solid;
}
#pages .pprop .select.widget .selected:is(.classic *)[type="text"],
#pages .pprop .select.widget .selected:is(.classic *)[type="date"],
#pages .pprop .select.widget .selected:is(.classic *)[type="time"],
#pages .pprop .select.widget .selected:is(.classic *)[type="search"],
#pages .pprop .select.widget .selected:is(.classic *)[type="password"] {
  height: 2.25rem;
}
#pages .pprop .select.widget .selected:is(.classic *):is(.dark *) {
  border-bottom-color: #413e3e;
  border-right-color: #413e3e;
  border-top-color: #0c0c0c;
  border-left-color: #0c0c0c;
  background-color: #1e1d1d;
}
#pages .pprop .select.widget .selected:is(.modern *) {
  border-radius: 0.25rem;
  border-width: 2px;
  border-style: solid;
}
#pages .pprop .select.widget .selected:is(.modern *)[type="text"],
#pages .pprop .select.widget .selected:is(.modern *)[type="date"],
#pages .pprop .select.widget .selected:is(.modern *)[type="time"],
#pages .pprop .select.widget .selected:is(.modern *)[type="search"],
#pages .pprop .select.widget .selected:is(.modern *)[type="password"] {
  height: 2.25rem;
}
#pages .pprop .select.widget .selected:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
  border-color: #383433;
}
#pages .pprop .select.widget .selected:is(.modern *):is(.light *) {
  background-color: #fffbfb;
  border-color: #c9bfbc;
}
#pages .pprop .select.widget .selected[type=file] {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0;
  position: absolute;
  z-index: 7;
  cursor: pointer;
}
#pages .pprop .select.widget .selected[type=file]::-webkit-file-upload-button {
  cursor: pointer;
}
#pages .pprop .select.widget .selected[type=radio] {
  appearance: none;
  cursor: pointer;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}
#pages .pprop .select.widget .selected[type=radio]:is(.modern *):is(.dark *):checked {
  background-color: #ff4e00;
  border-color: #802600;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
}
#pages .pprop .select.widget .selected[type=radio]:is(.modern *):is(.light *):checked {
  background-color: #ff4e00;
  border-color: #ff9466;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
}
#pages .pprop .select.widget .selected[type=radio]:is(.classic *):is(.dark *):checked {
  background-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  border-top-color: #330f00;
  border-left-color: #330f00;
  border-bottom-color: #802600;
  border-right-color: #802600;
  border-width: 1.4px;
}
#pages .pprop .select.widget .selected[type=checkbox] {
  appearance: none;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}
#pages .pprop .select.widget .selected[type=checkbox]:is(.modern *) {
  border-radius: 0.25rem;
  border-style: solid;
  border-width: 2px;
}
#pages .pprop .select.widget .selected[type=checkbox]:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
  border-color: #383433;
}
#pages .pprop .select.widget .selected[type=checkbox]:is(.modern *):is(.dark *):checked {
  background-color: #ff4e00;
  border-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  background-image: var(--check-icon);
}
#pages .pprop .select.widget .selected[type=checkbox]:is(.modern *):is(.light *) {
  background-color: #fffbfb;
  border-color: #c9bfbc;
}
#pages .pprop .select.widget .selected[type=checkbox]:is(.modern *):is(.light *):checked {
  background-color: #ff4e00;
  border-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  background-image: var(--check-icon);
}
#pages .pprop .select.widget .selected[type=checkbox]:is(.classic *):checked {
  background-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  background-image: var(--check-icon);
  border-bottom: 2px solid #bd3900;
  border-right: 2px solid #bd3900;
  border-top: 2px solid #762300;
  border-left: 2px solid #762300;
}
#pages .pprop .select.widget .selected .value {
  padding: 0 0 0 0.4375rem;
  white-space: nowrap;
  overflow: hidden;
  align-content: center;
}
#pages .pprop .select.widget .selected .button {
  display: grid;
  position: relative;
  overflow: hidden;
  min-width: max-content;
  cursor: pointer;
  padding: 0.25rem 1rem;
  padding: 0;
}
@media (width < 24rem) {
  #pages .pprop .select.widget .selected .button {
    padding: 0.25rem 0.25rem;
  }
}
#pages .pprop .select.widget .selected .button.upload {
  padding: 0;
}
#pages .pprop .select.widget .selected .button > span {
  user-select: none;
  font-family: var(--sans-serif);
  font-size: var(--sans-serif-size);
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  align-content: center;
  height: 100%;
  width: 100%;
  position: relative;
}
#pages .pprop .select.widget .selected .button > span:is(.upload > *) {
  padding: 0.25rem 1rem;
}
#pages .pprop .select.widget .selected .button:is(.classic *):is(.dark *) {
  color: #d5bfae;
  background: url(../img/button-top-left.png) top left no-repeat, url(../img/button-top-right.png) top right no-repeat, url(../img/button-bottom-left.png) bottom left no-repeat, url(../img/button-bottom-right.png) bottom right no-repeat, url(../img/button-top.png) top repeat-x, url(../img/button-bottom.png) bottom repeat-x, url(../img/button-left.png) left repeat-y, url(../img/button-right.png) right repeat-y, url(../img/button-center.png) center / cover no-repeat;
}
#pages .pprop .select.widget .selected .button:is(.classic *):is(.dark *):active:is(.classic.dark *) {
  color: #e4845a;
  background: url(../img/pressed-top-left.png) top left no-repeat, url(../img/pressed-top-right.png) top right no-repeat, url(../img/pressed-bottom-left.png) bottom left no-repeat, url(../img/pressed-bottom-right.png) bottom right no-repeat, url(../img/pressed-top.png) top repeat-x, url(../img/pressed-bottom.png) bottom repeat-x, url(../img/pressed-left.png) left repeat-y, url(../img/pressed-right.png) right repeat-y, url(../img/pressed-center.png) center / cover no-repeat;
}
#pages .pprop .select.widget .selected .button:is(.classic *):is(.dark *):active:is(.classic.dark *) > span {
  transform: translate(0, 1px);
}
#pages .pprop .select.widget .selected .button:is(.modern *) {
  border-style: solid;
  border-width: 2px;
  border-radius: 0.25rem;
}
#pages .pprop .select.widget .selected .button:is(.modern *):is(.dark *) {
  border-color: #383433;
  color: #d5bfae;
}
#pages .pprop .select.widget .selected .button:is(.modern *):is(.dark *):hover {
  color: #e9c3a6;
}
#pages .pprop .select.widget .selected .button:is(.modern *):is(.light *) {
  border-color: #c9bfbc;
  color: #604c44;
}
#pages .pprop .select.widget .selected .button:is(.modern *):is(.light *):hover {
  color: #93614e;
}
#pages .pprop .select.widget .selected .button.icon {
  padding: 0;
  aspect-ratio: 1/1;
  height: 100%;
}
#pages .pprop .select.widget .selected .button.icon span {
  background-repeat: no-repeat;
  background-position: center;
}
#pages .pprop .select.widget .selected .button.trash.icon span {
  background-size: 30px;
}
#pages .pprop .select.widget .selected .button.trash.icon span:is(.dark *) {
  background-image: var(--icon-trash-dark);
}
#pages .pprop .select.widget .selected .button.trash.icon span:is(.light *) {
  background-image: var(--icon-trash-light);
}
#pages .pprop .select.widget .selected .button.close.icon span {
  background-size: 40%;
}
#pages .pprop .select.widget .selected .button.close.icon span:is(.dark *) {
  background-image: var(--icon-cross-dark);
}
#pages .pprop .select.widget .selected .button.close.icon span:is(.light *) {
  background-image: var(--icon-cross-light);
}
#pages .pprop .select.widget .selected .button.minimize.icon .dash {
  width: 14px;
  height: 1px;
  border-radius: 1px;
  background-color: #d09074;
  margin-top: 10px;
}
#pages .pprop .select.widget .selected .button.minimize.icon .dash:is(.dark *) {
  background-color: #d09074;
}
#pages .pprop .select.widget .selected .button.minimize.icon .dash:is(.light *) {
  background-color: #9b8b84;
}
#pages .pprop .select.widget .selected .button.settings.icon span {
  background-image: var(--icon-settings);
}
#pages .pprop .select.widget .selected .button.settings.icon span svg {
  width: var(--height);
}
#pages .pprop .select.widget .selected .button.settings.icon span svg .b {
  stroke: #9b8b84;
  stroke-miterlimit: 10;
}
#pages .pprop .select.widget .selected .button.save.icon span {
  background-size: 16px;
}
#pages .pprop .select.widget .selected .button.save.icon span:is(.dark *) {
  background-image: var(--icon-save-dark);
}
#pages .pprop .select.widget .selected .button.save.icon span:is(.light *) {
  background-image: var(--icon-save-light);
}
#pages .pprop .select.widget .selected .button:is(.modern.dark *, .modern.light *) {
  border-color: transparent;
}
#pages .pprop .select.widget .selected .icon.down {
  margin: 0.125rem;
  height: 87%;
}
#pages .pprop .select.widget .selected .icon.down:is(.select.open *):is(.classic.dark *) {
  color: #e4845a;
  background: url(../img/pressed-top-left.png) top left no-repeat, url(../img/pressed-top-right.png) top right no-repeat, url(../img/pressed-bottom-left.png) bottom left no-repeat, url(../img/pressed-bottom-right.png) bottom right no-repeat, url(../img/pressed-top.png) top repeat-x, url(../img/pressed-bottom.png) bottom repeat-x, url(../img/pressed-left.png) left repeat-y, url(../img/pressed-right.png) right repeat-y, url(../img/pressed-center.png) center / cover no-repeat;
}
#pages .pprop .select.widget .selected .icon.down:is(.select.open *):is(.classic.dark *) > span {
  transform: translate(0, 1px);
}
#pages .pprop .select.widget .selected .icon.down span {
  background-size: 65%;
}
#pages .pprop .select.widget .selected .icon.down span:is(.dark *) {
  background-image: var(--select-icon-dark);
}
#pages .pprop .select.widget .selected .icon.down span:is(.light *) {
  background-image: var(--select-icon-light);
}
#pages .pprop .select.widget .options {
  display: none;
  position: absolute;
  max-height: 16rem;
  margin-top: 0.125rem;
  width: 100%;
  z-index: 3;
  overflow: auto;
}
#pages .pprop .select.widget .options:has(.scrollable) {
  overflow-y: hidden;
  grid-template-rows: auto 1fr;
}
#pages .pprop .select.widget .options:is(.select.open *) {
  display: grid;
  z-index: 3;
}
#pages .pprop .select.widget .options:is(.modern *) {
  border-radius: 0.25rem;
  border-width: 2px;
  border-style: solid;
}
#pages .pprop .select.widget .options:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
}
#pages .pprop .select.widget .options:is(.modern *):is(.light *) {
  background-color: #ede9e8;
}
#pages .pprop .select.widget .options:is(.modern *):is(.dark *) {
  border-color: #383433;
}
#pages .pprop .select.widget .options:is(.modern *):is(.light *) {
  border-color: #c9bfbc;
}
#pages .pprop .select.widget .options:is(.classic *) {
  background-color: #272525;
  border: 2px solid #5b5756;
}
#pages .pprop .select.widget .options .search {
  padding: 0.25rem 0.4375rem;
}
#pages .pprop .select.widget .options .search input {
  width: 100%;
  height: 1.875rem;
  padding: 0 0.375rem;
}
#pages .pprop .select.widget .options .scrollable {
  overflow-y: auto;
}
#pages .pprop .select.widget .options .option {
  padding: 0.375rem 0.4375rem;
  cursor: pointer;
  user-select: none;
}
#pages .pprop .select.widget .options .option:hover:is(.dark *) {
  background-color: #111111;
}
#pages .pprop .select.widget .options .option:hover:is(.light *) {
  background-color: #f8f2f2;
}
#pages .pprop .select.widget .options .option.hidden {
  display: none;
}
#pages .pprop .left,
#pages .pprop .right {
  display: grid;
}
@media (width >= 64rem) {
  #pages .pprop .left,
  #pages .pprop .right {
    grid-template-columns: 6em minmax(240px, 100%);
    gap: 12px 11px;
    align-content: start;
  }
}
@media (width < 64rem) {
  #pages .pprop .left,
  #pages .pprop .right {
    row-gap: 0.75rem;
  }
}
#pages .pprop .title {
  user-select: none;
  align-self: center;
  font-weight: 600;
}
#pages .pprop .title:is(.dark *) {
  color: #d5bfae;
}
#pages .pprop .title:is(.light *) {
  color: #604c44;
}
@media (width >= 64rem) {
  #pages .pprop .title {
    text-align: right;
  }
}
#pages .pprop textarea {
  resize: vertical;
}
#pages .pprop input[type=date],
#pages .pprop input[type=time] {
  max-width: fit-content;
}
#pages .pprop .url.widget {
  display: grid;
  grid-template-columns: 1fr 44px;
}
#pages .pprop .url.widget:is(.classic *) {
  gap: 5px;
}
#pages .pprop .url.widget input {
  font-family: var(--monospace);
  font-size: var(--monospace-size);
}
#pages .pprop .url.widget input:is(.modern *) {
  grid-column: 1/-1;
  grid-row: 1/-1;
  padding-right: 48px;
}
#pages .pprop .url.widget input:is(.classic *) {
  padding-right: 10px;
}
#pages .pprop .url.widget .button.translit {
  padding: 0;
}
#pages .pprop .url.widget .button.translit:is(.modern *) {
  grid-column: 2/3;
  grid-row: 1/-1;
  border-left: 0;
}
#pages .pprop .url.widget .button.translit span {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 54%;
}
#pages .pprop .url.widget .button.translit span:is(.dark *) {
  background-image: var(--translit-dark);
}
#pages .pprop .url.widget .button.translit span:is(.light *) {
  background-image: var(--translit-light);
}
#pages > .header {
  grid-area: header;
  display: grid;
  column-gap: 1rem;
  --height: 2.25rem;
}
@media (width < 64rem) {
  #pages > .header {
    grid-template-columns: var(--height) 1fr [trash] var(--height);
  }
}
@media (width >= 64rem) {
  #pages > .header {
    grid-template-columns: auto auto 1fr [trash] var(--height);
  }
}
@media (width >= 64rem) {
  #pages > .header .button.add span {
    padding: 0 1rem;
  }
  #pages > .header .button.add .mobile {
    display: none;
  }
}
@media (width < 64rem) {
  #pages > .header .button.add {
    aspect-ratio: 1 / 1;
  }
  #pages > .header .button.add .desktop {
    display: none;
  }
}
#pages > .header .button.add .mobile .x1,
#pages > .header .button.add .mobile .x2 {
  border-radius: 2px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: rotate(0deg) translate(-50%, -50%);
  background-color: #9b8b84;
}
#pages > .header .button.add .mobile .x1 {
  width: 0.125rem;
  height: 1rem;
}
#pages > .header .button.add .mobile .x2 {
  width: 1rem;
  height: 0.125rem;
}
#pages > .header .search.widget {
  display: grid;
  grid-template-columns: 1fr auto auto;
  column-gap: 7px;
}
#pages > .header .search.widget input {
  width: 100%;
  font-family: var(--sans-serif);
  font-size: var(--sans-serif-size);
}
#pages > .header .search.widget input:is([type=text], [type=search], [type=password], [type=date], [type=time], textarea) {
  padding: 0 0.5rem;
}
#pages > .header .search.widget input:is(.dark *) {
  color: #cccccc;
}
#pages > .header .search.widget input:is(.light *) {
  color: #333333;
}
#pages > .header .search.widget input:is(.classic *) {
  border-width: 0.0625rem;
  border-style: solid;
}
#pages > .header .search.widget input:is(.classic *)[type="text"],
#pages > .header .search.widget input:is(.classic *)[type="date"],
#pages > .header .search.widget input:is(.classic *)[type="time"],
#pages > .header .search.widget input:is(.classic *)[type="search"],
#pages > .header .search.widget input:is(.classic *)[type="password"] {
  height: 2.25rem;
}
#pages > .header .search.widget input:is(.classic *):is(.dark *) {
  border-bottom-color: #413e3e;
  border-right-color: #413e3e;
  border-top-color: #0c0c0c;
  border-left-color: #0c0c0c;
  background-color: #1e1d1d;
}
#pages > .header .search.widget input:is(.modern *) {
  border-radius: 0.25rem;
  border-width: 2px;
  border-style: solid;
}
#pages > .header .search.widget input:is(.modern *)[type="text"],
#pages > .header .search.widget input:is(.modern *)[type="date"],
#pages > .header .search.widget input:is(.modern *)[type="time"],
#pages > .header .search.widget input:is(.modern *)[type="search"],
#pages > .header .search.widget input:is(.modern *)[type="password"] {
  height: 2.25rem;
}
#pages > .header .search.widget input:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
  border-color: #383433;
}
#pages > .header .search.widget input:is(.modern *):is(.light *) {
  background-color: #fffbfb;
  border-color: #c9bfbc;
}
#pages > .header .search.widget input[type=file] {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0;
  position: absolute;
  z-index: 7;
  cursor: pointer;
}
#pages > .header .search.widget input[type=file]::-webkit-file-upload-button {
  cursor: pointer;
}
#pages > .header .search.widget input[type=radio] {
  appearance: none;
  cursor: pointer;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}
#pages > .header .search.widget input[type=radio]:is(.modern *):is(.dark *):checked {
  background-color: #ff4e00;
  border-color: #802600;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
}
#pages > .header .search.widget input[type=radio]:is(.modern *):is(.light *):checked {
  background-color: #ff4e00;
  border-color: #ff9466;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
}
#pages > .header .search.widget input[type=radio]:is(.classic *):is(.dark *):checked {
  background-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  border-top-color: #330f00;
  border-left-color: #330f00;
  border-bottom-color: #802600;
  border-right-color: #802600;
  border-width: 1.4px;
}
#pages > .header .search.widget input[type=checkbox] {
  appearance: none;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}
#pages > .header .search.widget input[type=checkbox]:is(.modern *) {
  border-radius: 0.25rem;
  border-style: solid;
  border-width: 2px;
}
#pages > .header .search.widget input[type=checkbox]:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
  border-color: #383433;
}
#pages > .header .search.widget input[type=checkbox]:is(.modern *):is(.dark *):checked {
  background-color: #ff4e00;
  border-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  background-image: var(--check-icon);
}
#pages > .header .search.widget input[type=checkbox]:is(.modern *):is(.light *) {
  background-color: #fffbfb;
  border-color: #c9bfbc;
}
#pages > .header .search.widget input[type=checkbox]:is(.modern *):is(.light *):checked {
  background-color: #ff4e00;
  border-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  background-image: var(--check-icon);
}
#pages > .header .search.widget input[type=checkbox]:is(.classic *):checked {
  background-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  background-image: var(--check-icon);
  border-bottom: 2px solid #bd3900;
  border-right: 2px solid #bd3900;
  border-top: 2px solid #762300;
  border-left: 2px solid #762300;
}
#pages > .header .search.widget input:is(.classic *):is(.dark *) {
  background-color: #171717;
}
@media (width < 24rem) {
  #pages > .header .search.widget input {
    width: 100%;
  }
}
#pages > .header .search.widget .button {
  display: grid;
  position: relative;
  overflow: hidden;
  min-width: max-content;
  cursor: pointer;
  padding: 0.25rem 1rem;
}
@media (width < 24rem) {
  #pages > .header .search.widget .button {
    padding: 0.25rem 0.25rem;
  }
}
#pages > .header .search.widget .button.upload {
  padding: 0;
}
#pages > .header .search.widget .button > span {
  user-select: none;
  font-family: var(--sans-serif);
  font-size: var(--sans-serif-size);
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  align-content: center;
  height: 100%;
  width: 100%;
  position: relative;
}
#pages > .header .search.widget .button > span:is(.upload > *) {
  padding: 0.25rem 1rem;
}
#pages > .header .search.widget .button:is(.classic *):is(.dark *) {
  color: #d5bfae;
  background: url(../img/button-top-left.png) top left no-repeat, url(../img/button-top-right.png) top right no-repeat, url(../img/button-bottom-left.png) bottom left no-repeat, url(../img/button-bottom-right.png) bottom right no-repeat, url(../img/button-top.png) top repeat-x, url(../img/button-bottom.png) bottom repeat-x, url(../img/button-left.png) left repeat-y, url(../img/button-right.png) right repeat-y, url(../img/button-center.png) center / cover no-repeat;
}
#pages > .header .search.widget .button:is(.classic *):is(.dark *):active:is(.classic.dark *) {
  color: #e4845a;
  background: url(../img/pressed-top-left.png) top left no-repeat, url(../img/pressed-top-right.png) top right no-repeat, url(../img/pressed-bottom-left.png) bottom left no-repeat, url(../img/pressed-bottom-right.png) bottom right no-repeat, url(../img/pressed-top.png) top repeat-x, url(../img/pressed-bottom.png) bottom repeat-x, url(../img/pressed-left.png) left repeat-y, url(../img/pressed-right.png) right repeat-y, url(../img/pressed-center.png) center / cover no-repeat;
}
#pages > .header .search.widget .button:is(.classic *):is(.dark *):active:is(.classic.dark *) > span {
  transform: translate(0, 1px);
}
#pages > .header .search.widget .button:is(.modern *) {
  border-style: solid;
  border-width: 2px;
  border-radius: 0.25rem;
}
#pages > .header .search.widget .button:is(.modern *):is(.dark *) {
  border-color: #383433;
  color: #d5bfae;
}
#pages > .header .search.widget .button:is(.modern *):is(.dark *):hover {
  color: #e9c3a6;
}
#pages > .header .search.widget .button:is(.modern *):is(.light *) {
  border-color: #c9bfbc;
  color: #604c44;
}
#pages > .header .search.widget .button:is(.modern *):is(.light *):hover {
  color: #93614e;
}
#pages > .header .search.widget .button.icon {
  padding: 0;
  aspect-ratio: 1/1;
  height: 100%;
}
#pages > .header .search.widget .button.icon span {
  background-repeat: no-repeat;
  background-position: center;
}
#pages > .header .search.widget .button.trash.icon span {
  background-size: 30px;
}
#pages > .header .search.widget .button.trash.icon span:is(.dark *) {
  background-image: var(--icon-trash-dark);
}
#pages > .header .search.widget .button.trash.icon span:is(.light *) {
  background-image: var(--icon-trash-light);
}
#pages > .header .search.widget .button.close.icon span {
  background-size: 40%;
}
#pages > .header .search.widget .button.close.icon span:is(.dark *) {
  background-image: var(--icon-cross-dark);
}
#pages > .header .search.widget .button.close.icon span:is(.light *) {
  background-image: var(--icon-cross-light);
}
#pages > .header .search.widget .button.minimize.icon .dash {
  width: 14px;
  height: 1px;
  border-radius: 1px;
  background-color: #d09074;
  margin-top: 10px;
}
#pages > .header .search.widget .button.minimize.icon .dash:is(.dark *) {
  background-color: #d09074;
}
#pages > .header .search.widget .button.minimize.icon .dash:is(.light *) {
  background-color: #9b8b84;
}
#pages > .header .search.widget .button.settings.icon span {
  background-image: var(--icon-settings);
}
#pages > .header .search.widget .button.settings.icon span svg {
  width: var(--height);
}
#pages > .header .search.widget .button.settings.icon span svg .b {
  stroke: #9b8b84;
  stroke-miterlimit: 10;
}
#pages > .header .search.widget .button.save.icon span {
  background-size: 16px;
}
#pages > .header .search.widget .button.save.icon span:is(.dark *) {
  background-image: var(--icon-save-dark);
}
#pages > .header .search.widget .button.save.icon span:is(.light *) {
  background-image: var(--icon-save-light);
}
#pages > .header .search.widget .button.send.icon {
  padding: 0;
}
#pages > .header .search.widget .button.send.icon span {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
}
#pages > .header .search.widget .button.send.icon span:is(.dark *) {
  background-image: var(--search-icon-dark);
}
#pages > .header .search.widget .button.send.icon span:is(.light *) {
  background-image: var(--search-icon-light);
}
#pages > .header .search.widget .button.reset.icon {
  padding: 0;
}
#pages > .header .search.widget .button.reset.icon span {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
#pages > .header .search.widget .button.reset.icon span:is(.dark *) {
  background-image: var(--icon-cross-dark);
}
#pages > .header .search.widget .button.reset.icon span:is(.light *) {
  background-image: var(--icon-cross-light);
}
#pages > .header .button.trash {
  grid-column-start: trash;
}
#pages .main .pages {
  display: grid;
  row-gap: 0.25rem;
  padding-top: 1px;
}
#pages .main .pages .page {
  display: grid;
  row-gap: 1rem;
  align-content: start;
  border-width: 2px;
  border-style: solid;
  padding: 1rem;
  padding: 0.5rem;
  column-gap: 0.5rem;
  row-gap: 0.5rem;
  position: relative;
}
#pages .main .pages .page:is(.dark *) {
  color: #a08c81;
  background-color: #2e2b2b;
  border-color: #3c3939;
  background-image: url(../img/noise-dark.png);
}
#pages .main .pages .page:is(.light *) {
  color: #c76a4c;
  background-color: #f7efee;
  border-color: #d6d2d1;
  background-image: url(../img/noise-dark.png);
}
#pages .main .pages .page:is(.modern *) {
  border-radius: 0.3rem;
}
#pages .main .pages .page:is(.classic *) {
  border-color: #393737;
}
#pages .main .pages .page.last::before {
  content: "";
  position: absolute;
  left: 0.1875rem;
  top: 0.1875rem;
  z-index: 1;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background-color: #71b300;
}
@media (width < 64rem) {
  #pages .main .pages .page {
    grid-template-areas: "title pin del" "butt eye del";
    grid-template-columns: 1fr auto 22px;
  }
}
@media (width >= 64rem) {
  #pages .main .pages .page {
    grid-template-areas: "title pin date del" "butt eye date del";
    grid-template-columns: 1fr 32px 128px 24px;
  }
}
@media (width < 64rem) {
  #pages .main .pages .page.properties {
    grid-template-areas: "title pin del " "butt eye del " "prop prop prop";
  }
}
@media (width >= 64rem) {
  #pages .main .pages .page.properties {
    grid-template-areas: "title pin date del " "butt eye date del " "prop prop prop prop";
  }
}
#pages .main .pages .page.properties:is(.dark *) {
  border-color: #b26044;
}
#pages .main .pages .page.properties:is(.light *) {
  border-color: #ff8562;
}
#pages .main .pages .page.home:is(.dark *) {
  border-color: #b26044;
}
#pages .main .pages .page.home:is(.light *) {
  border-color: #ff8562;
}
#pages .main .pages .page[data-published="0"]:is(.dark *) {
  border-color: #a71a1a;
}
#pages .main .pages .page[data-published="0"]:is(.light *) {
  border-color: #ff0000;
}
#pages .main .pages .page a.title {
  text-decoration: none;
  grid-area: title;
  width: fit-content;
  font-weight: 600;
}
#pages .main .pages .page a.title:is(.dark *) {
  color: #d09074;
}
#pages .main .pages .page a.title:is(.dark *):hover {
  color: #ffcab3;
}
#pages .main .pages .page a.title:is(.light *) {
  color: #764646;
}
#pages .main .pages .page a.title:is(.light *):hover {
  color: #bb381a;
}
#pages .main .pages .page .pin {
  grid-area: pin;
  width: 15px;
  height: 15px;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 84%;
  background-image: var(--off);
  display: none;
}
#pages .main .pages .page .pin:is(.light *) {
  --off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16.46'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:none;%7D.b%7Bfill:%23ffffff;stroke:%23ff8562;stroke-miterlimit:10;stroke-width:2px;%7D%3C/style%3E%3C/defs%3E%3Cpolygon class='a' points='1 0 1 14.72 7 11.22 13 14.72 13 0 1 0'/%3E%3Cpolyline class='b' points='1 0 1 14.72 7 11.22 13 14.72 13 0'/%3E%3C/svg%3E");
  --on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16.46'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:%23ff8562;%7D%3C/style%3E%3C/defs%3E%3Cpolygon class='a' points='14 16.46 7 12.38 0 16.46 0 0 14 0 14 16.46'/%3E%3C/svg%3E");
}
#pages .main .pages .page .pin:is(.dark *) {
  --off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16.46'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:none;%7D.b%7Bfill:%232e2b2b;stroke:%23b26044;stroke-miterlimit:10;stroke-width:2px;%7D%3C/style%3E%3C/defs%3E%3Cpolygon class='a' points='1 0 1 14.72 7 11.22 13 14.72 13 0 1 0'/%3E%3Cpolyline class='b' points='1 0 1 14.72 7 11.22 13 14.72 13 0'/%3E%3C/svg%3E");
  --on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16.46'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:%23b26044;%7D%3C/style%3E%3C/defs%3E%3Cpolygon class='a' points='14 16.46 7 12.38 0 16.46 0 0 14 0 14 16.46'/%3E%3C/svg%3E");
}
#pages .main .pages .page .pin:is(.page[data-pin="1"] *) {
  background-image: var(--on);
}
#pages .main .pages .page .pin:is(.modern *) {
  margin: -12px auto 0 auto;
}
#pages .main .pages .page .pin:is(.classic *) {
  margin: -11px auto 0 auto;
}
@media (max-width: 1024px) {
  #pages .main .pages .page .pin {
    display: block;
  }
}
#pages .main .pages .page .pin:is(.page[data-pin="1"] *),
#pages .main .pages .page .pin:is(.page:hover *) {
  display: block;
}
#pages .main .pages .page .eye {
  grid-area: eye;
  width: 18px;
  height: 18px;
  justify-self: center;
  cursor: pointer;
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  align-self: end;
  display: block;
}
#pages .main .pages .page .eye:is(.page[data-published="1"] *):is(.dark *) {
  background-image: var(--eye-on-dark);
}
#pages .main .pages .page .eye:is(.page[data-published="1"] *):is(.light *) {
  background-image: var(--eye-on-light);
}
@media (width >= 64rem) {
  #pages .main .pages .page .eye:is(.page[data-published="1"] *) {
    display: none;
  }
  #pages .main .pages .page .eye:is(.page[data-published="1"] *):is(.page.open *) {
    display: block;
  }
  #pages .main .pages .page .eye:is(.page[data-published="1"] *):is(.page:hover *) {
    display: block;
  }
}
#pages .main .pages .page .eye:is(.page[data-published="0"] *):is(.dark *) {
  background-image: var(--eye-off-dark);
}
#pages .main .pages .page .eye:is(.page[data-published="0"] *):is(.light *) {
  background-image: var(--eye-off-light);
}
@media (width < 64rem) {
  #pages .main .pages .page .date {
    display: none;
  }
}
@media (width >= 64rem) {
  #pages .main .pages .page .date {
    display: grid;
    align-content: center;
    padding: 0 0.3125rem;
    grid-area: date;
    font-size: 13px;
    text-align: center;
  }
  #pages .main .pages .page .date:is(.classic *):is(.dark *) {
    border-bottom: 1px solid #413e3e;
    border-right: 1px solid #413e3e;
    border-top: 1px solid #111;
    border-left: 1px solid #111;
    background-color: #292727;
  }
  #pages .main .pages .page .date:is(.dark *) {
    color: #9b8b84;
  }
  #pages .main .pages .page .date:is(.light *) {
    color: #8c756f;
  }
  #pages .main .pages .page .date.future:is(.dark *) {
    color: #ffe4c4;
  }
  #pages .main .pages .page .date.future:is(.light *) {
    color: #cf390c;
  }
}
#pages .main .pages .page input[type="checkbox"] {
  grid-area: del;
  height: 22px;
}
@media (width < 64rem) {
  #pages .main .pages .page input[type="checkbox"] {
    align-self: start;
  }
}
@media (width >= 64rem) {
  #pages .main .pages .page input[type="checkbox"] {
    align-self: center;
  }
}
#pages .main .pages .page .buttons {
  grid-area: butt;
  display: grid;
  width: 0;
  overflow: hidden;
  column-gap: 10px;
  grid-auto-flow: column;
  justify-content: start;
}
@media (width < 64rem) {
  #pages .main .pages .page .buttons {
    width: auto;
  }
}
@media (width >= 64rem) {
  #pages .main .pages .page .buttons:is(.page:hover *, .page.properties *) {
    width: auto;
  }
}
#pages .main .pages .page .buttons .edit.loading {
  background-image: linear-gradient(90deg, #d09074 50%, transparent 50%);
  background-size: 6px 2px;
  background-position: bottom;
  background-repeat: repeat-x;
  animation: barberpole 1s linear infinite;
}
@keyframes barberpole {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: 6px;
  }
}
@media (width < 24rem) {
  #pages .main .pages .page .buttons .save {
    display: none;
  }
}
@media (width < 24rem) {
  #pages .main .pages .page .buttons .prop {
    display: none;
  }
}
#pages .main .pages .page .buttons .prop:is(.page.properties *):is(.classic.dark *) {
  color: #e4845a;
  background: url(../img/pressed-top-left.png) top left no-repeat, url(../img/pressed-top-right.png) top right no-repeat, url(../img/pressed-bottom-left.png) bottom left no-repeat, url(../img/pressed-bottom-right.png) bottom right no-repeat, url(../img/pressed-top.png) top repeat-x, url(../img/pressed-bottom.png) bottom repeat-x, url(../img/pressed-left.png) left repeat-y, url(../img/pressed-right.png) right repeat-y, url(../img/pressed-center.png) center / cover no-repeat;
}
#pages .main .pages .page .buttons .prop:is(.page.properties *):is(.classic.dark *) > span {
  transform: translate(0, 1px);
}
#pages .footer {
  grid-area: footer;
  display: grid;
  grid-auto-flow: column;
  column-gap: 0.5rem;
  justify-content: space-between;
}
#pages .footer .pager {
  display: grid;
  grid-auto-flow: column;
  column-gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px;
}
#pages .footer .pager .button {
  display: grid;
  position: relative;
  overflow: hidden;
  min-width: max-content;
  cursor: pointer;
  padding: 0.25rem 1rem;
  min-width: 2rem;
}
@media (width < 24rem) {
  #pages .footer .pager .button {
    padding: 0.25rem 0.25rem;
  }
}
#pages .footer .pager .button.upload {
  padding: 0;
}
#pages .footer .pager .button > span {
  user-select: none;
  font-family: var(--sans-serif);
  font-size: var(--sans-serif-size);
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  align-content: center;
  height: 100%;
  width: 100%;
  position: relative;
}
#pages .footer .pager .button > span:is(.upload > *) {
  padding: 0.25rem 1rem;
}
#pages .footer .pager .button:is(.classic *):is(.dark *) {
  color: #d5bfae;
  background: url(../img/button-top-left.png) top left no-repeat, url(../img/button-top-right.png) top right no-repeat, url(../img/button-bottom-left.png) bottom left no-repeat, url(../img/button-bottom-right.png) bottom right no-repeat, url(../img/button-top.png) top repeat-x, url(../img/button-bottom.png) bottom repeat-x, url(../img/button-left.png) left repeat-y, url(../img/button-right.png) right repeat-y, url(../img/button-center.png) center / cover no-repeat;
}
#pages .footer .pager .button:is(.classic *):is(.dark *):active:is(.classic.dark *) {
  color: #e4845a;
  background: url(../img/pressed-top-left.png) top left no-repeat, url(../img/pressed-top-right.png) top right no-repeat, url(../img/pressed-bottom-left.png) bottom left no-repeat, url(../img/pressed-bottom-right.png) bottom right no-repeat, url(../img/pressed-top.png) top repeat-x, url(../img/pressed-bottom.png) bottom repeat-x, url(../img/pressed-left.png) left repeat-y, url(../img/pressed-right.png) right repeat-y, url(../img/pressed-center.png) center / cover no-repeat;
}
#pages .footer .pager .button:is(.classic *):is(.dark *):active:is(.classic.dark *) > span {
  transform: translate(0, 1px);
}
#pages .footer .pager .button:is(.modern *) {
  border-style: solid;
  border-width: 2px;
  border-radius: 0.25rem;
}
#pages .footer .pager .button:is(.modern *):is(.dark *) {
  border-color: #383433;
  color: #d5bfae;
}
#pages .footer .pager .button:is(.modern *):is(.dark *):hover {
  color: #e9c3a6;
}
#pages .footer .pager .button:is(.modern *):is(.light *) {
  border-color: #c9bfbc;
  color: #604c44;
}
#pages .footer .pager .button:is(.modern *):is(.light *):hover {
  color: #93614e;
}
#pages .footer .pager .button.icon {
  padding: 0;
  aspect-ratio: 1/1;
  height: 100%;
}
#pages .footer .pager .button.icon span {
  background-repeat: no-repeat;
  background-position: center;
}
#pages .footer .pager .button.trash.icon span {
  background-size: 30px;
}
#pages .footer .pager .button.trash.icon span:is(.dark *) {
  background-image: var(--icon-trash-dark);
}
#pages .footer .pager .button.trash.icon span:is(.light *) {
  background-image: var(--icon-trash-light);
}
#pages .footer .pager .button.close.icon span {
  background-size: 40%;
}
#pages .footer .pager .button.close.icon span:is(.dark *) {
  background-image: var(--icon-cross-dark);
}
#pages .footer .pager .button.close.icon span:is(.light *) {
  background-image: var(--icon-cross-light);
}
#pages .footer .pager .button.minimize.icon .dash {
  width: 14px;
  height: 1px;
  border-radius: 1px;
  background-color: #d09074;
  margin-top: 10px;
}
#pages .footer .pager .button.minimize.icon .dash:is(.dark *) {
  background-color: #d09074;
}
#pages .footer .pager .button.minimize.icon .dash:is(.light *) {
  background-color: #9b8b84;
}
#pages .footer .pager .button.settings.icon span {
  background-image: var(--icon-settings);
}
#pages .footer .pager .button.settings.icon span svg {
  width: var(--height);
}
#pages .footer .pager .button.settings.icon span svg .b {
  stroke: #9b8b84;
  stroke-miterlimit: 10;
}
#pages .footer .pager .button.save.icon span {
  background-size: 16px;
}
#pages .footer .pager .button.save.icon span:is(.dark *) {
  background-image: var(--icon-save-dark);
}
#pages .footer .pager .button.save.icon span:is(.light *) {
  background-image: var(--icon-save-light);
}
#pages .footer .pager .button.active {
  cursor: default;
}
#pages .footer .pager .button.active:is(.modern *) {
  box-shadow: 0 0 0 4px #ff4d0021;
}
#pages .footer .pager .button.active:is(.classic *):is(.classic.dark *) {
  color: #e4845a;
  background: url(../img/pressed-top-left.png) top left no-repeat, url(../img/pressed-top-right.png) top right no-repeat, url(../img/pressed-bottom-left.png) bottom left no-repeat, url(../img/pressed-bottom-right.png) bottom right no-repeat, url(../img/pressed-top.png) top repeat-x, url(../img/pressed-bottom.png) bottom repeat-x, url(../img/pressed-left.png) left repeat-y, url(../img/pressed-right.png) right repeat-y, url(../img/pressed-center.png) center / cover no-repeat;
}
#pages .footer .pager .button.active:is(.classic *):is(.classic.dark *) > span {
  transform: translate(0, 1px);
}
#pages .footer .counters {
  display: grid;
  grid-auto-flow: column;
  column-gap: 0.5rem;
}
#pages .footer .counters input {
  width: 100%;
  font-family: var(--sans-serif);
  font-size: var(--sans-serif-size);
  min-height: 1.875rem;
  width: 3.125rem;
  text-align: center;
}
#pages .footer .counters input:is([type=text], [type=search], [type=password], [type=date], [type=time], textarea) {
  padding: 0 0.5rem;
}
#pages .footer .counters input:is(.dark *) {
  color: #cccccc;
}
#pages .footer .counters input:is(.light *) {
  color: #333333;
}
#pages .footer .counters input:is(.classic *) {
  border-width: 0.0625rem;
  border-style: solid;
}
#pages .footer .counters input:is(.classic *)[type="text"],
#pages .footer .counters input:is(.classic *)[type="date"],
#pages .footer .counters input:is(.classic *)[type="time"],
#pages .footer .counters input:is(.classic *)[type="search"],
#pages .footer .counters input:is(.classic *)[type="password"] {
  height: 2.25rem;
}
#pages .footer .counters input:is(.classic *):is(.dark *) {
  border-bottom-color: #413e3e;
  border-right-color: #413e3e;
  border-top-color: #0c0c0c;
  border-left-color: #0c0c0c;
  background-color: #1e1d1d;
}
#pages .footer .counters input:is(.modern *) {
  border-radius: 0.25rem;
  border-width: 2px;
  border-style: solid;
}
#pages .footer .counters input:is(.modern *)[type="text"],
#pages .footer .counters input:is(.modern *)[type="date"],
#pages .footer .counters input:is(.modern *)[type="time"],
#pages .footer .counters input:is(.modern *)[type="search"],
#pages .footer .counters input:is(.modern *)[type="password"] {
  height: 2.25rem;
}
#pages .footer .counters input:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
  border-color: #383433;
}
#pages .footer .counters input:is(.modern *):is(.light *) {
  background-color: #fffbfb;
  border-color: #c9bfbc;
}
#pages .footer .counters input[type=file] {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0;
  position: absolute;
  z-index: 7;
  cursor: pointer;
}
#pages .footer .counters input[type=file]::-webkit-file-upload-button {
  cursor: pointer;
}
#pages .footer .counters input[type=radio] {
  appearance: none;
  cursor: pointer;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}
#pages .footer .counters input[type=radio]:is(.modern *):is(.dark *):checked {
  background-color: #ff4e00;
  border-color: #802600;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
}
#pages .footer .counters input[type=radio]:is(.modern *):is(.light *):checked {
  background-color: #ff4e00;
  border-color: #ff9466;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
}
#pages .footer .counters input[type=radio]:is(.classic *):is(.dark *):checked {
  background-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  border-top-color: #330f00;
  border-left-color: #330f00;
  border-bottom-color: #802600;
  border-right-color: #802600;
  border-width: 1.4px;
}
#pages .footer .counters input[type=checkbox] {
  appearance: none;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}
#pages .footer .counters input[type=checkbox]:is(.modern *) {
  border-radius: 0.25rem;
  border-style: solid;
  border-width: 2px;
}
#pages .footer .counters input[type=checkbox]:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
  border-color: #383433;
}
#pages .footer .counters input[type=checkbox]:is(.modern *):is(.dark *):checked {
  background-color: #ff4e00;
  border-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  background-image: var(--check-icon);
}
#pages .footer .counters input[type=checkbox]:is(.modern *):is(.light *) {
  background-color: #fffbfb;
  border-color: #c9bfbc;
}
#pages .footer .counters input[type=checkbox]:is(.modern *):is(.light *):checked {
  background-color: #ff4e00;
  border-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  background-image: var(--check-icon);
}
#pages .footer .counters input[type=checkbox]:is(.classic *):checked {
  background-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  background-image: var(--check-icon);
  border-bottom: 2px solid #bd3900;
  border-right: 2px solid #bd3900;
  border-top: 2px solid #762300;
  border-left: 2px solid #762300;
}
#pages .footer .counters input:is(.classic *):is(.dark *) {
  background-color: #171717;
}
#pages .footer .counters span {
  display: grid;
  align-content: center;
}
#pages .editor {
  display: grid;
  position: relative;
  grid-row: 1/-1;
  grid-column: 1/-1;
  z-index: 9;
}
#pages .editor.hidden {
  display: none;
}
#pages .editor .panel {
  row-gap: 1rem;
  align-content: start;
  border-width: 2px;
  border-style: solid;
  padding: 1rem;
  padding: 0.5rem;
  row-gap: 0.5rem;
  column-gap: 0.25rem;
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  grid-template-areas: "header header" "buttons buttons" "textarea tags";
  grid-template-columns: 1fr 0;
}
#pages .editor .panel:is(.dark *) {
  color: #a08c81;
  background-color: #2e2b2b;
  border-color: #3c3939;
  background-image: url(../img/noise-dark.png);
}
#pages .editor .panel:is(.light *) {
  color: #c76a4c;
  background-color: #f7efee;
  border-color: #d6d2d1;
  background-image: url(../img/noise-dark.png);
}
#pages .editor .panel:is(.modern *) {
  border-radius: 0.3rem;
}
#pages .editor .panel:is(.classic *) {
  border-color: #393737;
}
#pages .editor .panel:is([data-changed="true"] *):is(.dark *) {
  --color: #00ffff;
}
#pages .editor .panel:is([data-changed="true"] *):is(.light *) {
  --color: #ea8000;
}
#pages .editor .panel:is([data-changed="true"] *)::before {
  content: "";
  position: absolute;
  left: 0.0625rem;
  top: 0.0625rem;
  z-index: 1;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background-color: var(--color);
}
#pages .editor .panel:is(.mediateka *),
#pages .editor .panel:is(.properties *) {
  grid-template-rows: auto auto auto 1fr;
  grid-template-areas: "header header" "buttons buttons" "prop prop" "textarea tags";
}
#pages .editor .panel:is(.tags *) {
  grid-template-columns: 1fr max-content;
}
#pages .editor .panel > .tags {
  grid-area: tags;
  width: max-content;
  overflow-y: auto;
  position: relative;
  scrollbar-width: none;
  display: none;
}
#pages .editor .panel > .tags:is(.editor.tags *) {
  display: grid;
}
#pages .editor .panel > .tags .buttons {
  display: grid;
  position: relative;
  padding: 1px;
  row-gap: 4px;
  align-content: start;
}
#pages .editor .panel > .tags .buttons .button {
  padding: 7px 15px;
}
#pages .editor .panel > .tags .buttons .button .tag:is(.dark *) {
  color: #d5bfae;
}
#pages .editor .panel > .tags .buttons .button .tag:is(.light *) {
  color: #604c44;
}
#pages .editor .panel > .tags .buttons .button span {
  justify-content: space-between;
  column-gap: 4px;
}
#pages .editor .panel .header {
  grid-area: header;
  display: grid;
  align-items: center;
  grid-template-columns: auto auto 1fr;
  column-gap: 8px;
}
#pages .editor .panel .header a.title {
  text-decoration: none;
  width: fit-content;
  font-weight: 600;
  font-size: 1.2rem;
}
#pages .editor .panel .header a.title:is(.dark *) {
  color: #d09074;
}
#pages .editor .panel .header a.title:is(.dark *):hover {
  color: #ffcab3;
}
#pages .editor .panel .header a.title:is(.light *) {
  color: #764646;
}
#pages .editor .panel .header a.title:is(.light *):hover {
  color: #bb381a;
}
#pages .editor .panel > .buttons {
  display: grid;
  grid-area: buttons;
  grid-auto-flow: column;
  column-gap: 6px;
  justify-content: start;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px;
  scrollbar-width: none;
}
#pages .editor .panel > .buttons .button {
  padding: 0.25rem 1rem;
}
#pages .editor .panel > .buttons .button.prop:is(.editor.properties *):is(.classic.dark *) {
  color: #e4845a;
  background: url(../img/pressed-top-left.png) top left no-repeat, url(../img/pressed-top-right.png) top right no-repeat, url(../img/pressed-bottom-left.png) bottom left no-repeat, url(../img/pressed-bottom-right.png) bottom right no-repeat, url(../img/pressed-top.png) top repeat-x, url(../img/pressed-bottom.png) bottom repeat-x, url(../img/pressed-left.png) left repeat-y, url(../img/pressed-right.png) right repeat-y, url(../img/pressed-center.png) center / cover no-repeat;
}
#pages .editor .panel > .buttons .button.prop:is(.editor.properties *):is(.classic.dark *) > span {
  transform: translate(0, 1px);
}
#pages .editor .panel > .buttons .button.media:is(.editor.mediateka *):is(.classic.dark *) {
  color: #e4845a;
  background: url(../img/pressed-top-left.png) top left no-repeat, url(../img/pressed-top-right.png) top right no-repeat, url(../img/pressed-bottom-left.png) bottom left no-repeat, url(../img/pressed-bottom-right.png) bottom right no-repeat, url(../img/pressed-top.png) top repeat-x, url(../img/pressed-bottom.png) bottom repeat-x, url(../img/pressed-left.png) left repeat-y, url(../img/pressed-right.png) right repeat-y, url(../img/pressed-center.png) center / cover no-repeat;
}
#pages .editor .panel > .buttons .button.media:is(.editor.mediateka *):is(.classic.dark *) > span {
  transform: translate(0, 1px);
}
#pages .editor .panel > .buttons .button.tags:is(.editor.tags *):is(.classic.dark *) {
  color: #e4845a;
  background: url(../img/pressed-top-left.png) top left no-repeat, url(../img/pressed-top-right.png) top right no-repeat, url(../img/pressed-bottom-left.png) bottom left no-repeat, url(../img/pressed-bottom-right.png) bottom right no-repeat, url(../img/pressed-top.png) top repeat-x, url(../img/pressed-bottom.png) bottom repeat-x, url(../img/pressed-left.png) left repeat-y, url(../img/pressed-right.png) right repeat-y, url(../img/pressed-center.png) center / cover no-repeat;
}
#pages .editor .panel > .buttons .button.tags:is(.editor.tags *):is(.classic.dark *) > span {
  transform: translate(0, 1px);
}
#pages .editor .panel > .buttons a {
  text-decoration: none;
  align-content: center;
  padding: 0 8px;
}
#pages .editor .panel > .buttons a:is(.dark *) {
  color: #d09074;
}
#pages .editor .panel > .buttons a:is(.dark *):hover {
  color: #ffcab3;
}
#pages .editor .panel > .buttons a:is(.light *) {
  color: #764646;
}
#pages .editor .panel > .buttons a:is(.light *):hover {
  color: #bb381a;
}
#pages .editor .panel .mediateka {
  display: grid;
  grid-area: prop;
  position: relative;
  max-width: 100%;
  display: none;
}
#pages .editor .panel .mediateka:is(.editor.mediateka *) {
  display: grid;
}
#pages .editor .panel .mediateka .progress {
  width: 0%;
  height: 3px;
  background-color: tomato;
}
#pages .editor .panel .mediateka .pan {
  display: grid;
  row-gap: 0.5rem;
}
#pages .editor .panel .mediateka .pan .hscroll {
  overflow-x: auto;
  overflow-y: hidden;
}
#pages .editor .panel .mediateka .pan .hscroll .files {
  display: grid;
  column-gap: 5px;
  grid-auto-columns: 130px;
  grid-auto-flow: column;
}
#pages .editor .panel .mediateka .pan .hscroll .files .file {
  border-width: 2px;
  border-style: solid;
  overflow: hidden;
  position: relative;
}
#pages .editor .panel .mediateka .pan .hscroll .files .file:is(.dark *) {
  background-color: #111111;
}
#pages .editor .panel .mediateka .pan .hscroll .files .file:is(.light *) {
  background-color: #f8f2f2;
}
#pages .editor .panel .mediateka .pan .hscroll .files .file:is(.dark *) {
  border-color: #333;
}
#pages .editor .panel .mediateka .pan .hscroll .files .file:is(.light *) {
  border-color: #fbf0ed;
}
#pages .editor .panel .mediateka .pan .hscroll .files .file.active:is(.dark *) {
  border-color: #a79080;
}
#pages .editor .panel .mediateka .pan .hscroll .files .file.active:is(.light *) {
  border-color: #a79080;
}
#pages .editor .panel .mediateka .pan .hscroll .files .file input[type="checkbox"]:is(:checked),
#pages .editor .panel .mediateka .pan .hscroll .files .file input[type="checkbox"]:is(.file:hover *) {
  display: block;
}
#pages .editor .panel .mediateka .pan .hscroll .files .file:is(.modern *) {
  border-radius: 8px;
}
#pages .editor .panel .mediateka .pan .hscroll .files .file img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  display: block;
}
#pages .editor .panel .mediateka .pan .hscroll .files .file .name {
  width: 100%;
  font-size: 11px;
  position: absolute;
  padding: 0 2px;
  word-break: break-all;
  background-color: #000b;
}
#pages .editor .panel .mediateka .pan .hscroll .files .file .name:is(.dark *) {
  color: #ccc;
}
#pages .editor .panel .mediateka .pan .hscroll .files .file .name:is(.light *) {
  color: #ccc;
}
#pages .editor .panel .mediateka .pan .hscroll .files .file input[type="checkbox"] {
  position: absolute;
  right: 3px;
  top: 5px;
  z-index: 1;
  width: 16px;
  height: 16px;
  display: none;
  border-color: #ff4e00;
}
#pages .editor .panel .mediateka .pan .hscroll .files .file input[type="checkbox"]:is(.file:hover *) {
  display: block;
}
#pages .editor .panel .mediateka .pan .hscroll .files .file input[type="checkbox"]:checked {
  display: block;
}
#pages .editor .panel .mediateka .pan .hscroll .files .file .ext {
  position: absolute;
  z-index: 12;
  bottom: 3px;
  left: 3px;
  font-size: 12px;
  padding: 1px 5px 1px 3px;
  cursor: default;
}
#pages .editor .panel .mediateka .pan .hscroll .files .file .ext:is(.modern *) {
  border-radius: 3px;
}
#pages .editor .panel .mediateka .pan .hscroll .files .file .ext:is(.dark *) {
  background-color: #383433;
  color: #ffe3cf;
}
#pages .editor .panel .mediateka .pan .hscroll .files .file .ext:is(.light *) {
  background-color: #fffbfb;
  color: #8f572f;
}
#pages .editor .panel .mediateka .pan .buttons {
  display: grid;
}
@media (width >= 64rem) {
  #pages .editor .panel .mediateka .pan .buttons {
    min-height: 2.25rem;
    grid-template-columns: auto 1fr auto;
    column-gap: 15px;
    grid-template-areas: "upload link del";
  }
}
@media (width < 64rem) {
  #pages .editor .panel .mediateka .pan .buttons {
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    grid-template-areas: "upload del" "link link";
  }
}
#pages .editor .panel .mediateka .pan .buttons .button.upload {
  grid-area: upload;
}
#pages .editor .panel .mediateka .pan .buttons .link {
  grid-area: link;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 8px;
}
#pages .editor .panel .mediateka .pan .buttons .link a {
  text-decoration: none;
  border-bottom: 1px dashed;
}
#pages .editor .panel .mediateka .pan .buttons .link a:is(.dark *) {
  color: #d09074;
}
#pages .editor .panel .mediateka .pan .buttons .link a:is(.dark *):hover {
  color: #ffcab3;
}
#pages .editor .panel .mediateka .pan .buttons .link a:is(.light *) {
  color: #764646;
}
#pages .editor .panel .mediateka .pan .buttons .link a:is(.light *):hover {
  color: #bb381a;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag {
  width: 100%;
  font-family: var(--sans-serif);
  font-size: var(--sans-serif-size);
  align-content: center;
  padding: 0 5px;
  word-break: break-all;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag:is([type=text], [type=search], [type=password], [type=date], [type=time], textarea) {
  padding: 0 0.5rem;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag:is(.dark *) {
  color: #cccccc;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag:is(.light *) {
  color: #333333;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag:is(.classic *) {
  border-width: 0.0625rem;
  border-style: solid;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag:is(.classic *)[type="text"],
#pages .editor .panel .mediateka .pan .buttons .link .tag:is(.classic *)[type="date"],
#pages .editor .panel .mediateka .pan .buttons .link .tag:is(.classic *)[type="time"],
#pages .editor .panel .mediateka .pan .buttons .link .tag:is(.classic *)[type="search"],
#pages .editor .panel .mediateka .pan .buttons .link .tag:is(.classic *)[type="password"] {
  height: 2.25rem;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag:is(.classic *):is(.dark *) {
  border-bottom-color: #413e3e;
  border-right-color: #413e3e;
  border-top-color: #0c0c0c;
  border-left-color: #0c0c0c;
  background-color: #1e1d1d;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag:is(.modern *) {
  border-radius: 0.25rem;
  border-width: 2px;
  border-style: solid;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag:is(.modern *)[type="text"],
#pages .editor .panel .mediateka .pan .buttons .link .tag:is(.modern *)[type="date"],
#pages .editor .panel .mediateka .pan .buttons .link .tag:is(.modern *)[type="time"],
#pages .editor .panel .mediateka .pan .buttons .link .tag:is(.modern *)[type="search"],
#pages .editor .panel .mediateka .pan .buttons .link .tag:is(.modern *)[type="password"] {
  height: 2.25rem;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
  border-color: #383433;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag:is(.modern *):is(.light *) {
  background-color: #fffbfb;
  border-color: #c9bfbc;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag[type=file] {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0;
  position: absolute;
  z-index: 7;
  cursor: pointer;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag[type=file]::-webkit-file-upload-button {
  cursor: pointer;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag[type=radio] {
  appearance: none;
  cursor: pointer;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag[type=radio]:is(.modern *):is(.dark *):checked {
  background-color: #ff4e00;
  border-color: #802600;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag[type=radio]:is(.modern *):is(.light *):checked {
  background-color: #ff4e00;
  border-color: #ff9466;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag[type=radio]:is(.classic *):is(.dark *):checked {
  background-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  border-top-color: #330f00;
  border-left-color: #330f00;
  border-bottom-color: #802600;
  border-right-color: #802600;
  border-width: 1.4px;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag[type=checkbox] {
  appearance: none;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag[type=checkbox]:is(.modern *) {
  border-radius: 0.25rem;
  border-style: solid;
  border-width: 2px;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag[type=checkbox]:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
  border-color: #383433;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag[type=checkbox]:is(.modern *):is(.dark *):checked {
  background-color: #ff4e00;
  border-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  background-image: var(--check-icon);
}
#pages .editor .panel .mediateka .pan .buttons .link .tag[type=checkbox]:is(.modern *):is(.light *) {
  background-color: #fffbfb;
  border-color: #c9bfbc;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag[type=checkbox]:is(.modern *):is(.light *):checked {
  background-color: #ff4e00;
  border-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  background-image: var(--check-icon);
}
#pages .editor .panel .mediateka .pan .buttons .link .tag[type=checkbox]:is(.classic *):checked {
  background-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  background-image: var(--check-icon);
  border-bottom: 2px solid #bd3900;
  border-right: 2px solid #bd3900;
  border-top: 2px solid #762300;
  border-left: 2px solid #762300;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag:is(.dark *) {
  color: #a79080;
}
#pages .editor .panel .mediateka .pan .buttons .link .tag:is(.light *) {
  color: #604c44;
}
#pages .editor .panel .mediateka .pan .buttons .button.del {
  grid-area: del;
}
#pages .editor .panel .mediateka .pan .buttons .button.del.disabled:is(.dark *) {
  color: #636363;
}
#pages .editor .panel .mediateka .pan .buttons .button.del.disabled:is(.light *) {
  color: #636363;
}
#pages .editor .panel .textarea {
  grid-area: textarea;
  width: 100%;
  font-family: var(--sans-serif);
  font-size: var(--sans-serif-size);
}
#pages .editor .panel .textarea:is([type=text], [type=search], [type=password], [type=date], [type=time], textarea) {
  padding: 0 0.5rem;
}
#pages .editor .panel .textarea:is(.dark *) {
  color: #cccccc;
}
#pages .editor .panel .textarea:is(.light *) {
  color: #333333;
}
#pages .editor .panel .textarea:is(.classic *) {
  border-width: 0.0625rem;
  border-style: solid;
}
#pages .editor .panel .textarea:is(.classic *)[type="text"],
#pages .editor .panel .textarea:is(.classic *)[type="date"],
#pages .editor .panel .textarea:is(.classic *)[type="time"],
#pages .editor .panel .textarea:is(.classic *)[type="search"],
#pages .editor .panel .textarea:is(.classic *)[type="password"] {
  height: 2.25rem;
}
#pages .editor .panel .textarea:is(.classic *):is(.dark *) {
  border-bottom-color: #413e3e;
  border-right-color: #413e3e;
  border-top-color: #0c0c0c;
  border-left-color: #0c0c0c;
  background-color: #1e1d1d;
}
#pages .editor .panel .textarea:is(.modern *) {
  border-radius: 0.25rem;
  border-width: 2px;
  border-style: solid;
}
#pages .editor .panel .textarea:is(.modern *)[type="text"],
#pages .editor .panel .textarea:is(.modern *)[type="date"],
#pages .editor .panel .textarea:is(.modern *)[type="time"],
#pages .editor .panel .textarea:is(.modern *)[type="search"],
#pages .editor .panel .textarea:is(.modern *)[type="password"] {
  height: 2.25rem;
}
#pages .editor .panel .textarea:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
  border-color: #383433;
}
#pages .editor .panel .textarea:is(.modern *):is(.light *) {
  background-color: #fffbfb;
  border-color: #c9bfbc;
}
#pages .editor .panel .textarea[type=file] {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0;
  position: absolute;
  z-index: 7;
  cursor: pointer;
}
#pages .editor .panel .textarea[type=file]::-webkit-file-upload-button {
  cursor: pointer;
}
#pages .editor .panel .textarea[type=radio] {
  appearance: none;
  cursor: pointer;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}
#pages .editor .panel .textarea[type=radio]:is(.modern *):is(.dark *):checked {
  background-color: #ff4e00;
  border-color: #802600;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
}
#pages .editor .panel .textarea[type=radio]:is(.modern *):is(.light *):checked {
  background-color: #ff4e00;
  border-color: #ff9466;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
}
#pages .editor .panel .textarea[type=radio]:is(.classic *):is(.dark *):checked {
  background-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  border-top-color: #330f00;
  border-left-color: #330f00;
  border-bottom-color: #802600;
  border-right-color: #802600;
  border-width: 1.4px;
}
#pages .editor .panel .textarea[type=checkbox] {
  appearance: none;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}
#pages .editor .panel .textarea[type=checkbox]:is(.modern *) {
  border-radius: 0.25rem;
  border-style: solid;
  border-width: 2px;
}
#pages .editor .panel .textarea[type=checkbox]:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
  border-color: #383433;
}
#pages .editor .panel .textarea[type=checkbox]:is(.modern *):is(.dark *):checked {
  background-color: #ff4e00;
  border-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  background-image: var(--check-icon);
}
#pages .editor .panel .textarea[type=checkbox]:is(.modern *):is(.light *) {
  background-color: #fffbfb;
  border-color: #c9bfbc;
}
#pages .editor .panel .textarea[type=checkbox]:is(.modern *):is(.light *):checked {
  background-color: #ff4e00;
  border-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  background-image: var(--check-icon);
}
#pages .editor .panel .textarea[type=checkbox]:is(.classic *):checked {
  background-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  background-image: var(--check-icon);
  border-bottom: 2px solid #bd3900;
  border-right: 2px solid #bd3900;
  border-top: 2px solid #762300;
  border-left: 2px solid #762300;
}
#pages-utils {
  display: grid;
  row-gap: 16px;
  overflow-y: auto;
  max-height: 100%;
}
@media (width < 64rem) {
  #pages-utils {
    padding: 16px 6px;
  }
}
@media (width >= 64rem) {
  #pages-utils {
    padding: 16px;
  }
}
#pages-utils input {
  width: 100%;
  font-family: var(--sans-serif);
  font-size: var(--sans-serif-size);
}
#pages-utils input:is([type=text], [type=search], [type=password], [type=date], [type=time], textarea) {
  padding: 0 0.5rem;
}
#pages-utils input:is(.dark *) {
  color: #cccccc;
}
#pages-utils input:is(.light *) {
  color: #333333;
}
#pages-utils input:is(.classic *) {
  border-width: 0.0625rem;
  border-style: solid;
}
#pages-utils input:is(.classic *)[type="text"],
#pages-utils input:is(.classic *)[type="date"],
#pages-utils input:is(.classic *)[type="time"],
#pages-utils input:is(.classic *)[type="search"],
#pages-utils input:is(.classic *)[type="password"] {
  height: 2.25rem;
}
#pages-utils input:is(.classic *):is(.dark *) {
  border-bottom-color: #413e3e;
  border-right-color: #413e3e;
  border-top-color: #0c0c0c;
  border-left-color: #0c0c0c;
  background-color: #1e1d1d;
}
#pages-utils input:is(.modern *) {
  border-radius: 0.25rem;
  border-width: 2px;
  border-style: solid;
}
#pages-utils input:is(.modern *)[type="text"],
#pages-utils input:is(.modern *)[type="date"],
#pages-utils input:is(.modern *)[type="time"],
#pages-utils input:is(.modern *)[type="search"],
#pages-utils input:is(.modern *)[type="password"] {
  height: 2.25rem;
}
#pages-utils input:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
  border-color: #383433;
}
#pages-utils input:is(.modern *):is(.light *) {
  background-color: #fffbfb;
  border-color: #c9bfbc;
}
#pages-utils input[type=file] {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0;
  position: absolute;
  z-index: 7;
  cursor: pointer;
}
#pages-utils input[type=file]::-webkit-file-upload-button {
  cursor: pointer;
}
#pages-utils input[type=radio] {
  appearance: none;
  cursor: pointer;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}
#pages-utils input[type=radio]:is(.modern *):is(.dark *):checked {
  background-color: #ff4e00;
  border-color: #802600;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
}
#pages-utils input[type=radio]:is(.modern *):is(.light *):checked {
  background-color: #ff4e00;
  border-color: #ff9466;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
}
#pages-utils input[type=radio]:is(.classic *):is(.dark *):checked {
  background-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  border-top-color: #330f00;
  border-left-color: #330f00;
  border-bottom-color: #802600;
  border-right-color: #802600;
  border-width: 1.4px;
}
#pages-utils input[type=checkbox] {
  appearance: none;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}
#pages-utils input[type=checkbox]:is(.modern *) {
  border-radius: 0.25rem;
  border-style: solid;
  border-width: 2px;
}
#pages-utils input[type=checkbox]:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
  border-color: #383433;
}
#pages-utils input[type=checkbox]:is(.modern *):is(.dark *):checked {
  background-color: #ff4e00;
  border-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  background-image: var(--check-icon);
}
#pages-utils input[type=checkbox]:is(.modern *):is(.light *) {
  background-color: #fffbfb;
  border-color: #c9bfbc;
}
#pages-utils input[type=checkbox]:is(.modern *):is(.light *):checked {
  background-color: #ff4e00;
  border-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  background-image: var(--check-icon);
}
#pages-utils input[type=checkbox]:is(.classic *):checked {
  background-color: #ff4e00;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
  background-image: var(--check-icon);
  border-bottom: 2px solid #bd3900;
  border-right: 2px solid #bd3900;
  border-top: 2px solid #762300;
  border-left: 2px solid #762300;
}
#pages-utils .button {
  display: grid;
  position: relative;
  overflow: hidden;
  min-width: max-content;
  cursor: pointer;
  padding: 0.25rem 1rem;
  padding: 8px 16px;
  width: max-content;
}
@media (width < 24rem) {
  #pages-utils .button {
    padding: 0.25rem 0.25rem;
  }
}
#pages-utils .button.upload {
  padding: 0;
}
#pages-utils .button > span {
  user-select: none;
  font-family: var(--sans-serif);
  font-size: var(--sans-serif-size);
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  align-content: center;
  height: 100%;
  width: 100%;
  position: relative;
}
#pages-utils .button > span:is(.upload > *) {
  padding: 0.25rem 1rem;
}
#pages-utils .button:is(.classic *):is(.dark *) {
  color: #d5bfae;
  background: url(../img/button-top-left.png) top left no-repeat, url(../img/button-top-right.png) top right no-repeat, url(../img/button-bottom-left.png) bottom left no-repeat, url(../img/button-bottom-right.png) bottom right no-repeat, url(../img/button-top.png) top repeat-x, url(../img/button-bottom.png) bottom repeat-x, url(../img/button-left.png) left repeat-y, url(../img/button-right.png) right repeat-y, url(../img/button-center.png) center / cover no-repeat;
}
#pages-utils .button:is(.classic *):is(.dark *):active:is(.classic.dark *) {
  color: #e4845a;
  background: url(../img/pressed-top-left.png) top left no-repeat, url(../img/pressed-top-right.png) top right no-repeat, url(../img/pressed-bottom-left.png) bottom left no-repeat, url(../img/pressed-bottom-right.png) bottom right no-repeat, url(../img/pressed-top.png) top repeat-x, url(../img/pressed-bottom.png) bottom repeat-x, url(../img/pressed-left.png) left repeat-y, url(../img/pressed-right.png) right repeat-y, url(../img/pressed-center.png) center / cover no-repeat;
}
#pages-utils .button:is(.classic *):is(.dark *):active:is(.classic.dark *) > span {
  transform: translate(0, 1px);
}
#pages-utils .button:is(.modern *) {
  border-style: solid;
  border-width: 2px;
  border-radius: 0.25rem;
}
#pages-utils .button:is(.modern *):is(.dark *) {
  border-color: #383433;
  color: #d5bfae;
}
#pages-utils .button:is(.modern *):is(.dark *):hover {
  color: #e9c3a6;
}
#pages-utils .button:is(.modern *):is(.light *) {
  border-color: #c9bfbc;
  color: #604c44;
}
#pages-utils .button:is(.modern *):is(.light *):hover {
  color: #93614e;
}
#pages-utils .button.icon {
  padding: 0;
  aspect-ratio: 1/1;
  height: 100%;
}
#pages-utils .button.icon span {
  background-repeat: no-repeat;
  background-position: center;
}
#pages-utils .button.trash.icon span {
  background-size: 30px;
}
#pages-utils .button.trash.icon span:is(.dark *) {
  background-image: var(--icon-trash-dark);
}
#pages-utils .button.trash.icon span:is(.light *) {
  background-image: var(--icon-trash-light);
}
#pages-utils .button.close.icon span {
  background-size: 40%;
}
#pages-utils .button.close.icon span:is(.dark *) {
  background-image: var(--icon-cross-dark);
}
#pages-utils .button.close.icon span:is(.light *) {
  background-image: var(--icon-cross-light);
}
#pages-utils .button.minimize.icon .dash {
  width: 14px;
  height: 1px;
  border-radius: 1px;
  background-color: #d09074;
  margin-top: 10px;
}
#pages-utils .button.minimize.icon .dash:is(.dark *) {
  background-color: #d09074;
}
#pages-utils .button.minimize.icon .dash:is(.light *) {
  background-color: #9b8b84;
}
#pages-utils .button.settings.icon span {
  background-image: var(--icon-settings);
}
#pages-utils .button.settings.icon span svg {
  width: var(--height);
}
#pages-utils .button.settings.icon span svg .b {
  stroke: #9b8b84;
  stroke-miterlimit: 10;
}
#pages-utils .button.save.icon span {
  background-size: 16px;
}
#pages-utils .button.save.icon span:is(.dark *) {
  background-image: var(--icon-save-dark);
}
#pages-utils .button.save.icon span:is(.light *) {
  background-image: var(--icon-save-light);
}
#pages-utils .title {
  user-select: none;
  align-self: center;
  font-weight: 600;
}
#pages-utils .title:is(.dark *) {
  color: #d5bfae;
}
#pages-utils .title:is(.light *) {
  color: #604c44;
}
#pages-utils .main {
  display: grid;
  row-gap: 1rem;
  align-content: start;
  border-width: 2px;
  border-style: solid;
  padding: 1rem;
}
#pages-utils .main:is(.dark *) {
  color: #a08c81;
  background-color: #2e2b2b;
  border-color: #3c3939;
  background-image: url(../img/noise-dark.png);
}
#pages-utils .main:is(.light *) {
  color: #c76a4c;
  background-color: #f7efee;
  border-color: #d6d2d1;
  background-image: url(../img/noise-dark.png);
}
#pages-utils .main:is(.modern *) {
  border-radius: 0.3rem;
}
#pages-utils .main:is(.classic *) {
  border-color: #393737;
}
#pages-utils .main .fields {
  display: grid;
}
@media (width < 64rem) {
  #pages-utils .main .fields {
    gap: 8px;
  }
}
@media (width >= 64rem) {
  #pages-utils .main .fields {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
#pages-utils .main .fields .field {
  display: grid;
  row-gap: 4px;
}
#lbox {
  position: fixed;
  z-index: 999;
  cursor: pointer;
  background-color: #000000dd;
  display: grid;
  height: 100vh;
  width: 100vw;
  grid-template-areas: "lbox";
}
#lbox img,
#lbox video,
#lbox audio {
  width: 100%;
  height: 100%;
  object-fit: contain;
  grid-area: lbox;
  align-self: center;
  justify-self: center;
  overflow: hidden;
}
#lbox audio {
  width: calc(100% - 32px);
  height: 54px;
}
