*, *::before, *::after { box-sizing: border-box; } body { line-height: 1.45; -webkit-font-smoothing: antialiased; } img, picture, video, canvas, svg { display: block; height: auto; max-width: 100%; } input, button, textarea, select { font: inherit; margin: 0; } iframe { border: 0; }

@font-face {
  font-family: 'CommitMono';
  src: url('CommitMono-Italic.woff2') format('woff2'),
      url('CommitMono-Italic.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'CommitMono';
  src: url('CommitMono-Bold.woff2') format('woff2'),
      url('CommitMono-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CommitMono';
  src: url('CommitMono-BoldItalic.woff2') format('woff2'),
      url('CommitMono-BoldItalic.woff') format('woff');
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'CommitMono';
  src: url('CommitMono-Regular.woff2') format('woff2'),
      url('CommitMono-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}



html, body {
  height: 100%;
}
body {
  margin: 0;
  font-family: 'CommitMono';
}
p {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: .5rem;
}

/* ------------------------------- app */
#form {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr min-content;
}

/* ------------------------------- doc : title, maker, tabs + textareas */
#doc {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: min-content 1fr;
  gap: .5rem;
  padding: .5rem .5rem 0;
}
/* ------------------------------- meta : title, maker, tabs */
#meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
label[for="title"], #template { transform: skewX(12deg);}
label[for="template"], #title { transform: skewX(-12deg);}
#meta input, #meta select , #meta button { height: 2em; }
.maker { margin-right: auto;}

/* ------------------------------- tabs */
button.active {
  text-decoration: underline;
}
textarea, pre {
  white-space: break-spaces !important;
  font-size: 1rem;
  padding: 8px;
  outline: none;
  border: none;
  border-radius: .25em;
}
#data textarea,
#data textarea + pre {
  width: 100%;
  height: 100%;
  display: none;
}
#data textarea.active,
#data textarea.active + pre {
  display: block;
}


/* ------------------------------- nav */
#nav {
  padding: .5rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
#nav.log p {
  display: none;
}

#nav.log p:last-child {
  display: flex;
  color: green;
  height: 1.5em;
}
.log {
  height:calc( 1.75em + 1rem);
}
#save { margin-left: auto;}
/* ------------------------------- overlays */
.overlay {
  background: white;
  position: fixed;
  inset: 0;
  flex-direction: column;
  gap: .5rem;
  padding: .5rem;
  display: none;
}
.overlay.visible {
  display: flex;
}
.overlay form {
 display: flex; 
 flex-direction: column;
 gap: .5rem;
}

#importform ul {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
}


#help article {margin: 0 0 1em; max-width: 100ch;}
#help dl {margin: 0;}
#help dl div {display: flex;}
#help pre {margin: 0; padding: 0;}
#help p {
  display: block;
}