:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  --k24-pink: #d82a88;
  --k24-blue: #1961ac;
  --k24-midblue: #d1e4f0;
  --k24-liteblue: #eff9ff;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--k24-midblue);
}

header {
  position: sticky;
  top: 0;
  background: var(--k24-blue);
  padding: 8px 16px;
}
header .auth {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

main {
  padding: 1rem;
}

h1:first-child, h2:first-child, h3:first-child, h4:first-child, p:first-child {
  margin-top: -0.2em;
}
h1:not(:last-child), h2:not(:last-child), h3:not(:last-child), h4:not(:last-child), p:not(:last-child) {
  margin-bottom: 0.5em;
}

h1, h2, h3, h4 {
  font-weight: 600;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.2rem;
}

input, button, textarea, select {
  border: none;
  font-size: 1rem;
  font-family: inherit;
  color: black;
  padding: 0.4em 0.8em;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
}

input, textarea, select {
  background: var(--k24-liteblue);
}

select {
  cursor: pointer;
}

button {
  background: var(--k24-liteblue);
  cursor: pointer;
  transition-duration: 100ms;
  transform-origin: center;
  font-size: 1.1rem;
}
button:hover {
  background: white;
  color: var(--k24-pink);
  transform: scale(1.05);
}

div.box-section {
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 0.8rem 1.6rem;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.box-placeholder:not(:last-child) {
  display: none;
}

[page=gemini] #gemini-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
[page=gemini] .box-section {
  padding: 16px;
  margin-block: 0.8rem;
}
[page=gemini] #gemini-form {
  display: grid;
  gap: 8px;
  grid-template-areas: "prompt codes" "fresh model" "go go";
  grid-template-columns: 75% calc(25% - 8px);
}
@media (width < 1024px) {
  [page=gemini] #gemini-form {
    display: flex;
    flex-direction: column;
  }
}
[page=gemini] #gemini-form textarea {
  resize: none;
  height: 240px;
}
[page=gemini] label[for=gemini-getfresh] {
  display: flex;
  gap: 8px;
  align-items: center;
}
[page=gemini] #gemini-userprompt {
  grid-area: prompt;
}
[page=gemini] #gemini-codelist {
  grid-area: codes;
}
[page=gemini] #gemini-getfresh {
  grid-area: fresh;
}
[page=gemini] #gemini-model {
  grid-area: model;
}
[page=gemini] #gemini-submitbtn {
  grid-area: go;
  justify-self: center;
}
[page=gemini] #gemini-images {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
[page=gemini] #gemini-images a {
  width: calc((100% - 64px) / 5);
}
[page=gemini] #gemini-images a img {
  width: 100%;
}
[page=gemini] #gemini-batchlog {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
[page=gemini] #gemini-batchlog pre {
  margin-block: 0.8em 1.2em;
  padding: 0.8em 1em 1em;
  line-height: 1.2;
  background: var(--k24-liteblue);
}
[page=gemini] #gemini-batchlog pre:last-child {
  margin-bottom: 0;
}