#template {
  display: grid;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 0 1rem 1rem 1rem;
}
#template input,
#template textarea {
  width: 100%;
  font-family: var(--sans-serif);
  font-size: var(--sans-serif-size);
}
#template input:is([type=text], [type=search], [type=password], [type=date], [type=time], textarea),
#template textarea:is([type=text], [type=search], [type=password], [type=date], [type=time], textarea) {
  padding: 0 0.5rem;
}
#template input:is(.dark *),
#template textarea:is(.dark *) {
  color: #cccccc;
}
#template input:is(.light *),
#template textarea:is(.light *) {
  color: #333333;
}
#template input:is(.classic *),
#template textarea:is(.classic *) {
  border-width: 0.0625rem;
  border-style: solid;
}
#template input:is(.classic *)[type="text"],
#template textarea:is(.classic *)[type="text"],
#template input:is(.classic *)[type="date"],
#template textarea:is(.classic *)[type="date"],
#template input:is(.classic *)[type="time"],
#template textarea:is(.classic *)[type="time"],
#template input:is(.classic *)[type="search"],
#template textarea:is(.classic *)[type="search"],
#template input:is(.classic *)[type="password"],
#template textarea:is(.classic *)[type="password"] {
  height: 2.25rem;
}
#template input:is(.classic *):is(.dark *),
#template textarea:is(.classic *):is(.dark *) {
  border-bottom-color: #413e3e;
  border-right-color: #413e3e;
  border-top-color: #0c0c0c;
  border-left-color: #0c0c0c;
  background-color: #1e1d1d;
}
#template input:is(.modern *),
#template textarea:is(.modern *) {
  border-radius: 0.25rem;
  border-width: 2px;
  border-style: solid;
}
#template input:is(.modern *)[type="text"],
#template textarea:is(.modern *)[type="text"],
#template input:is(.modern *)[type="date"],
#template textarea:is(.modern *)[type="date"],
#template input:is(.modern *)[type="time"],
#template textarea:is(.modern *)[type="time"],
#template input:is(.modern *)[type="search"],
#template textarea:is(.modern *)[type="search"],
#template input:is(.modern *)[type="password"],
#template textarea:is(.modern *)[type="password"] {
  height: 2.25rem;
}
#template input:is(.modern *):is(.dark *),
#template textarea:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
  border-color: #383433;
}
#template input:is(.modern *):is(.light *),
#template textarea:is(.modern *):is(.light *) {
  background-color: #fffbfb;
  border-color: #c9bfbc;
}
#template input[type=file],
#template textarea[type=file] {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0;
  position: absolute;
  z-index: 7;
  cursor: pointer;
}
#template input[type=file]::-webkit-file-upload-button,
#template textarea[type=file]::-webkit-file-upload-button {
  cursor: pointer;
}
#template input[type=radio],
#template textarea[type=radio] {
  appearance: none;
  cursor: pointer;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  height: 1.25rem;
  align-self: center;
}
#template input[type=radio]:is(.modern *):is(.dark *):checked,
#template textarea[type=radio]:is(.modern *):is(.dark *):checked {
  background-color: #ff4e00;
  border-color: #802600;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
}
#template input[type=radio]:is(.modern *):is(.light *):checked,
#template textarea[type=radio]:is(.modern *):is(.light *):checked {
  background-color: #ff4e00;
  border-color: #ff9466;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
}
#template input[type=radio]:is(.classic *):is(.dark *):checked,
#template 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;
}
#template input[type=checkbox],
#template textarea[type=checkbox] {
  appearance: none;
  cursor: pointer;
  min-height: 1.5rem;
  aspect-ratio: 1 / 1;
}
#template input[type=checkbox]:is(.modern *),
#template textarea[type=checkbox]:is(.modern *) {
  border-radius: 0.25rem;
  border-style: solid;
  border-width: 2px;
}
#template input[type=checkbox]:is(.modern *):is(.dark *),
#template textarea[type=checkbox]:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
  border-color: #383433;
}
#template input[type=checkbox]:is(.modern *):is(.dark *):checked,
#template 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);
}
#template input[type=checkbox]:is(.modern *):is(.light *),
#template textarea[type=checkbox]:is(.modern *):is(.light *) {
  background-color: #fffbfb;
  border-color: #c9bfbc;
}
#template input[type=checkbox]:is(.modern *):is(.light *):checked,
#template 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);
}
#template input[type=checkbox]:is(.classic *):checked,
#template 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;
}
#template textarea {
  resize: none;
}
#template .button {
  display: grid;
  position: relative;
  overflow: hidden;
  min-width: max-content;
  cursor: pointer;
  padding: 0.25rem 1rem;
}
@media (width < 24rem) {
  #template .button {
    padding: 0.25rem 0.25rem;
  }
}
#template .button.upload {
  padding: 0;
}
#template .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;
}
#template .button > span:is(.upload > *) {
  padding: 0.25rem 1rem;
}
#template .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;
}
#template .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;
}
#template .button:is(.classic *):is(.dark *):active:is(.classic.dark *) > span {
  transform: translate(0, 1px);
}
#template .button:is(.modern *) {
  border-style: solid;
  border-width: 2px;
  border-radius: 0.25rem;
}
#template .button:is(.modern *):is(.dark *) {
  border-color: #383433;
  color: #d5bfae;
}
#template .button:is(.modern *):is(.dark *):hover {
  color: #e9c3a6;
}
#template .button:is(.modern *):is(.light *) {
  border-color: #c9bfbc;
  color: #604c44;
}
#template .button:is(.modern *):is(.light *):hover {
  color: #93614e;
}
#template .button.icon {
  padding: 0;
  aspect-ratio: 1/1;
  height: 100%;
}
#template .button.icon span {
  background-repeat: no-repeat;
  background-position: center;
}
#template .button.trash.icon span {
  background-size: 30px;
}
#template .button.trash.icon span:is(.dark *) {
  background-image: var(--icon-trash-dark);
}
#template .button.trash.icon span:is(.light *) {
  background-image: var(--icon-trash-light);
}
#template .button.close.icon span {
  background-size: 40%;
}
#template .button.close.icon span:is(.dark *) {
  background-image: var(--icon-cross-dark);
}
#template .button.close.icon span:is(.light *) {
  background-image: var(--icon-cross-light);
}
#template .button.minimize.icon .dash {
  width: 14px;
  height: 1px;
  border-radius: 1px;
  background-color: #d09074;
  margin-top: 10px;
}
#template .button.minimize.icon .dash:is(.dark *) {
  background-color: #d09074;
}
#template .button.minimize.icon .dash:is(.light *) {
  background-color: #9b8b84;
}
#template .button.settings.icon span {
  background-image: var(--icon-settings);
}
#template .button.settings.icon span svg {
  width: var(--height);
}
#template .button.settings.icon span svg .b {
  stroke: #9b8b84;
  stroke-miterlimit: 10;
}
#template .button.save.icon span {
  background-size: 16px;
}
#template .button.save.icon span:is(.dark *) {
  background-image: var(--icon-save-dark);
}
#template .button.save.icon span:is(.light *) {
  background-image: var(--icon-save-light);
}
#template .select.widget {
  position: relative;
}
#template .select.widget:is(.classic *) {
  height: 2.25rem;
}
#template .select.widget:is(.modern *) {
  height: 2.25rem;
}
#template .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;
}
#template .select.widget .selected:is([type=text], [type=search], [type=password], [type=date], [type=time], textarea) {
  padding: 0 0.5rem;
}
#template .select.widget .selected:is(.dark *) {
  color: #cccccc;
}
#template .select.widget .selected:is(.light *) {
  color: #333333;
}
#template .select.widget .selected:is(.classic *) {
  border-width: 0.0625rem;
  border-style: solid;
}
#template .select.widget .selected:is(.classic *)[type="text"],
#template .select.widget .selected:is(.classic *)[type="date"],
#template .select.widget .selected:is(.classic *)[type="time"],
#template .select.widget .selected:is(.classic *)[type="search"],
#template .select.widget .selected:is(.classic *)[type="password"] {
  height: 2.25rem;
}
#template .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;
}
#template .select.widget .selected:is(.modern *) {
  border-radius: 0.25rem;
  border-width: 2px;
  border-style: solid;
}
#template .select.widget .selected:is(.modern *)[type="text"],
#template .select.widget .selected:is(.modern *)[type="date"],
#template .select.widget .selected:is(.modern *)[type="time"],
#template .select.widget .selected:is(.modern *)[type="search"],
#template .select.widget .selected:is(.modern *)[type="password"] {
  height: 2.25rem;
}
#template .select.widget .selected:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
  border-color: #383433;
}
#template .select.widget .selected:is(.modern *):is(.light *) {
  background-color: #fffbfb;
  border-color: #c9bfbc;
}
#template .select.widget .selected[type=file] {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0;
  position: absolute;
  z-index: 7;
  cursor: pointer;
}
#template .select.widget .selected[type=file]::-webkit-file-upload-button {
  cursor: pointer;
}
#template .select.widget .selected[type=radio] {
  appearance: none;
  cursor: pointer;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  height: 1.25rem;
  align-self: center;
}
#template .select.widget .selected[type=radio]:is(.modern *):is(.dark *):checked {
  background-color: #ff4e00;
  border-color: #802600;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
}
#template .select.widget .selected[type=radio]:is(.modern *):is(.light *):checked {
  background-color: #ff4e00;
  border-color: #ff9466;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
}
#template .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;
}
#template .select.widget .selected[type=checkbox] {
  appearance: none;
  cursor: pointer;
  min-height: 1.5rem;
  aspect-ratio: 1 / 1;
}
#template .select.widget .selected[type=checkbox]:is(.modern *) {
  border-radius: 0.25rem;
  border-style: solid;
  border-width: 2px;
}
#template .select.widget .selected[type=checkbox]:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
  border-color: #383433;
}
#template .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);
}
#template .select.widget .selected[type=checkbox]:is(.modern *):is(.light *) {
  background-color: #fffbfb;
  border-color: #c9bfbc;
}
#template .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);
}
#template .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;
}
#template .select.widget .selected .value {
  padding: 0 0 0 0.4375rem;
  white-space: nowrap;
  overflow: hidden;
  align-content: center;
}
#template .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) {
  #template .select.widget .selected .button {
    padding: 0.25rem 0.25rem;
  }
}
#template .select.widget .selected .button.upload {
  padding: 0;
}
#template .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;
}
#template .select.widget .selected .button > span:is(.upload > *) {
  padding: 0.25rem 1rem;
}
#template .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;
}
#template .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;
}
#template .select.widget .selected .button:is(.classic *):is(.dark *):active:is(.classic.dark *) > span {
  transform: translate(0, 1px);
}
#template .select.widget .selected .button:is(.modern *) {
  border-style: solid;
  border-width: 2px;
  border-radius: 0.25rem;
}
#template .select.widget .selected .button:is(.modern *):is(.dark *) {
  border-color: #383433;
  color: #d5bfae;
}
#template .select.widget .selected .button:is(.modern *):is(.dark *):hover {
  color: #e9c3a6;
}
#template .select.widget .selected .button:is(.modern *):is(.light *) {
  border-color: #c9bfbc;
  color: #604c44;
}
#template .select.widget .selected .button:is(.modern *):is(.light *):hover {
  color: #93614e;
}
#template .select.widget .selected .button.icon {
  padding: 0;
  aspect-ratio: 1/1;
  height: 100%;
}
#template .select.widget .selected .button.icon span {
  background-repeat: no-repeat;
  background-position: center;
}
#template .select.widget .selected .button.trash.icon span {
  background-size: 30px;
}
#template .select.widget .selected .button.trash.icon span:is(.dark *) {
  background-image: var(--icon-trash-dark);
}
#template .select.widget .selected .button.trash.icon span:is(.light *) {
  background-image: var(--icon-trash-light);
}
#template .select.widget .selected .button.close.icon span {
  background-size: 40%;
}
#template .select.widget .selected .button.close.icon span:is(.dark *) {
  background-image: var(--icon-cross-dark);
}
#template .select.widget .selected .button.close.icon span:is(.light *) {
  background-image: var(--icon-cross-light);
}
#template .select.widget .selected .button.minimize.icon .dash {
  width: 14px;
  height: 1px;
  border-radius: 1px;
  background-color: #d09074;
  margin-top: 10px;
}
#template .select.widget .selected .button.minimize.icon .dash:is(.dark *) {
  background-color: #d09074;
}
#template .select.widget .selected .button.minimize.icon .dash:is(.light *) {
  background-color: #9b8b84;
}
#template .select.widget .selected .button.settings.icon span {
  background-image: var(--icon-settings);
}
#template .select.widget .selected .button.settings.icon span svg {
  width: var(--height);
}
#template .select.widget .selected .button.settings.icon span svg .b {
  stroke: #9b8b84;
  stroke-miterlimit: 10;
}
#template .select.widget .selected .button.save.icon span {
  background-size: 16px;
}
#template .select.widget .selected .button.save.icon span:is(.dark *) {
  background-image: var(--icon-save-dark);
}
#template .select.widget .selected .button.save.icon span:is(.light *) {
  background-image: var(--icon-save-light);
}
#template .select.widget .selected .button:is(.modern.dark *, .modern.light *) {
  border-color: transparent;
}
#template .select.widget .selected .icon.down {
  margin: 0.125rem;
  height: 87%;
}
#template .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;
}
#template .select.widget .selected .icon.down:is(.select.open *):is(.classic.dark *) > span {
  transform: translate(0, 1px);
}
#template .select.widget .selected .icon.down span {
  background-size: 65%;
}
#template .select.widget .selected .icon.down span:is(.dark *) {
  background-image: var(--select-icon-dark);
}
#template .select.widget .selected .icon.down span:is(.light *) {
  background-image: var(--select-icon-light);
}
#template .select.widget .options {
  display: none;
  position: absolute;
  max-height: 16rem;
  margin-top: 0.125rem;
  width: 100%;
  z-index: 3;
  overflow: auto;
}
#template .select.widget .options:has(.scrollable) {
  overflow-y: hidden;
  grid-template-rows: auto 1fr;
}
#template .select.widget .options:is(.select.open *) {
  display: grid;
  z-index: 3;
}
#template .select.widget .options:is(.modern *) {
  border-radius: 0.25rem;
  border-width: 2px;
  border-style: solid;
}
#template .select.widget .options:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
}
#template .select.widget .options:is(.modern *):is(.light *) {
  background-color: #ede9e8;
}
#template .select.widget .options:is(.modern *):is(.dark *) {
  border-color: #383433;
}
#template .select.widget .options:is(.modern *):is(.light *) {
  border-color: #c9bfbc;
}
#template .select.widget .options:is(.classic *) {
  background-color: #272525;
  border: 2px solid #5b5756;
}
#template .select.widget .options .search {
  padding: 0.25rem 0.4375rem;
}
#template .select.widget .options .search input {
  width: 100%;
  height: 1.875rem;
  padding: 0 0.375rem;
}
#template .select.widget .options .scrollable {
  overflow-y: auto;
}
#template .select.widget .options .option {
  padding: 0.375rem 0.4375rem;
  cursor: pointer;
  user-select: none;
}
#template .select.widget .options .option:hover:is(.dark *) {
  background-color: #111111;
}
#template .select.widget .options .option:hover:is(.light *) {
  background-color: #f8f2f2;
}
#template .select.widget .options .option.hidden {
  display: none;
}
#template .panel {
  display: grid;
  row-gap: 1rem;
  align-content: start;
  border-width: 2px;
  border-style: solid;
  padding: 1rem;
}
#template .panel:is(.dark *) {
  color: #a08c81;
  background-color: #2e2b2b;
  border-color: #3c3939;
  background-image: url(../img/noise-dark.png);
}
#template .panel:is(.light *) {
  color: #c76a4c;
  background-color: #f7efee;
  border-color: #d6d2d1;
  background-image: url(../img/noise-dark.png);
}
#template .panel:is(.modern *) {
  border-radius: 0.3rem;
}
#template .panel:is(.classic *) {
  border-color: #393737;
}
#template .title {
  user-select: none;
  align-self: center;
  font-weight: 600;
}
#template .title:is(.dark *) {
  color: #d5bfae;
}
#template .title:is(.light *) {
  color: #604c44;
}
#template .settings {
  display: grid;
  gap: 1rem;
  grid-row: 1 / -1;
  grid-column: 1 / -1;
}
#template .settings:is(#template.editor *) {
  display: none;
}
@media (width < 64rem) {
  #template .settings {
    grid-template-areas: "install" "template" "files" "manual" "headers";
    padding: 1rem 0.4rem;
    display: grid;
  }
}
@media (width >= 64rem) {
  #template .settings {
    grid-template-areas: "install headers manual" "template headers manual" "files files files";
    grid-template-columns: 17rem 1fr 1fr;
    align-content: start;
  }
}
#template .settings .button:not(.select *) {
  min-height: 2.25rem;
  max-width: max-content;
  padding: 0 1rem;
  justify-self: center;
}
#template .settings .install {
  grid-area: install;
}
#template .settings .template {
  grid-area: template;
  align-content: start;
}
#template .settings .template label {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.5rem;
}
#template .settings .template label span {
  cursor: pointer;
}
#template .settings .template label span:is(.dark *) {
  color: #d09074;
}
#template .settings .template label span:is(.light *) {
  color: #764646;
}
#template .settings .template form {
  display: grid;
  row-gap: 1rem;
}
#template .settings .headers {
  grid-area: headers;
  grid-template-rows: auto 1fr auto;
}
#template .settings .manual {
  grid-area: manual;
}
#template .settings .files {
  grid-area: files;
}
#template .settings .files .file {
  font-family: var(--monospace);
  font-size: var(--monospace-size);
  cursor: pointer;
  width: max-content;
}
#template .settings .files .file:is(.dark *) {
  color: #a38174;
}
#template .settings .files .file:is(.light *) {
  color: #563d40;
}
#template .settings .files .file:hover:is(.dark *) {
  color: #c49b8c;
}
#template .settings .files .file:hover:is(.light *) {
  color: #9b4d4d;
}
#template .settings .files .file.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;
  }
}
#template .editor {
  display: grid;
  grid-row: 1 / -1;
  grid-column: 1 / -1;
  z-index: 9;
  min-height: 0;
}
#template .editor.hidden {
  display: none;
}
#template .editor .window {
  row-gap: 1rem;
  align-content: start;
  border-width: 2px;
  border-style: solid;
  padding: 1rem;
  padding: 8px;
  row-gap: 8px;
  column-gap: 4px;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: 1fr max-content;
  grid-template-areas: "header header" "textarea snip";
  min-height: 0;
}
#template .editor .window:is(.dark *) {
  color: #a08c81;
  background-color: #2e2b2b;
  border-color: #3c3939;
  background-image: url(../img/noise-dark.png);
}
#template .editor .window:is(.light *) {
  color: #c76a4c;
  background-color: #f7efee;
  border-color: #d6d2d1;
  background-image: url(../img/noise-dark.png);
}
#template .editor .window:is(.modern *) {
  border-radius: 0.3rem;
}
#template .editor .window:is(.classic *) {
  border-color: #393737;
}
#template .editor .window[data-changed="true"]:is(.dark *) {
  --color: #00ffff;
}
#template .editor .window[data-changed="true"]:is(.light *) {
  --color: #ea8000;
}
#template .editor .window[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);
}
#template .editor .window .header {
  grid-area: header;
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  column-gap: 8px;
}
#template .editor .window .header .button {
  height: 28px;
}
#template .editor .window .textarea {
  grid-area: textarea;
  width: 100%;
  font-family: var(--sans-serif);
  font-size: var(--sans-serif-size);
}
#template .editor .window .textarea:is([type=text], [type=search], [type=password], [type=date], [type=time], textarea) {
  padding: 0 0.5rem;
}
#template .editor .window .textarea:is(.dark *) {
  color: #cccccc;
}
#template .editor .window .textarea:is(.light *) {
  color: #333333;
}
#template .editor .window .textarea:is(.classic *) {
  border-width: 0.0625rem;
  border-style: solid;
}
#template .editor .window .textarea:is(.classic *)[type="text"],
#template .editor .window .textarea:is(.classic *)[type="date"],
#template .editor .window .textarea:is(.classic *)[type="time"],
#template .editor .window .textarea:is(.classic *)[type="search"],
#template .editor .window .textarea:is(.classic *)[type="password"] {
  height: 2.25rem;
}
#template .editor .window .textarea:is(.classic *):is(.dark *) {
  border-bottom-color: #413e3e;
  border-right-color: #413e3e;
  border-top-color: #0c0c0c;
  border-left-color: #0c0c0c;
  background-color: #1e1d1d;
}
#template .editor .window .textarea:is(.modern *) {
  border-radius: 0.25rem;
  border-width: 2px;
  border-style: solid;
}
#template .editor .window .textarea:is(.modern *)[type="text"],
#template .editor .window .textarea:is(.modern *)[type="date"],
#template .editor .window .textarea:is(.modern *)[type="time"],
#template .editor .window .textarea:is(.modern *)[type="search"],
#template .editor .window .textarea:is(.modern *)[type="password"] {
  height: 2.25rem;
}
#template .editor .window .textarea:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
  border-color: #383433;
}
#template .editor .window .textarea:is(.modern *):is(.light *) {
  background-color: #fffbfb;
  border-color: #c9bfbc;
}
#template .editor .window .textarea[type=file] {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0;
  position: absolute;
  z-index: 7;
  cursor: pointer;
}
#template .editor .window .textarea[type=file]::-webkit-file-upload-button {
  cursor: pointer;
}
#template .editor .window .textarea[type=radio] {
  appearance: none;
  cursor: pointer;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  height: 1.25rem;
  align-self: center;
}
#template .editor .window .textarea[type=radio]:is(.modern *):is(.dark *):checked {
  background-color: #ff4e00;
  border-color: #802600;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
}
#template .editor .window .textarea[type=radio]:is(.modern *):is(.light *):checked {
  background-color: #ff4e00;
  border-color: #ff9466;
  box-shadow: 0 0 3rem 1rem #ff4d0021;
}
#template .editor .window .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;
}
#template .editor .window .textarea[type=checkbox] {
  appearance: none;
  cursor: pointer;
  min-height: 1.5rem;
  aspect-ratio: 1 / 1;
}
#template .editor .window .textarea[type=checkbox]:is(.modern *) {
  border-radius: 0.25rem;
  border-style: solid;
  border-width: 2px;
}
#template .editor .window .textarea[type=checkbox]:is(.modern *):is(.dark *) {
  background-color: #1e1d1d;
  border-color: #383433;
}
#template .editor .window .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);
}
#template .editor .window .textarea[type=checkbox]:is(.modern *):is(.light *) {
  background-color: #fffbfb;
  border-color: #c9bfbc;
}
#template .editor .window .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);
}
#template .editor .window .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;
}
#template .editor .window .snippets {
  grid-area: snip;
  display: grid;
  width: max-content;
  overflow-y: auto;
  scrollbar-width: none;
}
#template .editor .window .snippets .buttons {
  display: grid;
  position: relative;
  padding: 1px;
  row-gap: 4px;
  align-content: start;
}
#template .editor .window .snippets .buttons .button {
  padding: 7px 15px;
}
#template .editor .window .snippets .buttons a {
  text-decoration: none;
  justify-self: center;
}
#template .editor .window .snippets .buttons a:is(.dark *) {
  color: #d09074;
}
#template .editor .window .snippets .buttons a:is(.dark *):hover {
  color: #ffcab3;
}
#template .editor .window .snippets .buttons a:is(.light *) {
  color: #764646;
}
#template .editor .window .snippets .buttons a:is(.light *):hover {
  color: #bb381a;
}
