body.gutenkern-page {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.gutenkern-stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 0;
  margin-left: 40px;
  margin-right: 40px;
  padding: 0 0 64px;
  box-sizing: border-box;
}

h2.gutenkern-title {
  margin: 0 0 8px;
  color: var(--black);
  font-family: "Source Sans 3", sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 40px;
}

.tool {
  width: 56%;
  max-width: 56%;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0;
  box-sizing: border-box;
  color: var(--black);
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px;
}

.window-body {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 100px minmax(0, 1fr) auto;
  gap: 20px;
}

.side-label {
  font-weight: 700;
  margin: 0;
}

.field-shell {
  position: relative;
  height: 100px;
  background: #fcfcfc;
  border: 1px solid #f2f2f2;
  border-radius: 4px;
  overflow: hidden;
}

.field-back,
#field {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 8px 10px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 0;
}

.field-back {
  color: #000;
  overflow: hidden;
}

.field-back .unknown {
  color: #cd5c5c;
}

#field {
  position: absolute;
  inset: 0;
  resize: none;
  color: transparent;
  caret-color: #000;
  background: transparent;
}

#field::selection {
  background: #ff88003d;
  color: transparent;
}

.result-side {
  min-width: 0;
}

.pair-count {
  margin-top: 4px;
  color: var(--black);
}

.categories {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.categories button {
  background: none;
  border: 0;
  padding: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: var(--nav-font-size);
  font-weight: 700;
  line-height: var(--nav-font-size);
  color: var(--black);
  cursor: pointer;
  white-space: nowrap;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(0, 0, 0, 0.25);
  text-underline-offset: 3px;
}

.categories button.current {
  color: var(--main);
  text-decoration: none;
}

.result-shell {
  position: relative;
  min-height: 0;
  background: #fcfcfc;
  border: 1px solid #f2f2f2;
  border-radius: 4px;
  overflow: hidden;
}

.result {
  box-sizing: border-box;
  height: 100%;
  overflow: auto;
  padding: 8px 10px;
  font-family: "Source Code Pro", monospace;
  font-size: 16px;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  cursor: text;
}

.result .done {
  text-decoration: line-through;
}

.result .fresh {
  font-weight: 700;
  color: var(--main);
}

.placeholder {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  color: var(--grey);
  font-family: "Source Code Pro", monospace;
  font-size: 16px;
  pointer-events: none;
}

.window-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.primary-button {
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
  box-shadow: none;
}

.primary-button:hover,
.primary-button:active {
  box-shadow: none;
}

.secondary-button {
  background-color: #f3f3f3;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(140% 180% at 50% -20%, #ffffff 0%, #f6f6f6 46%, #e3e3e3 100%);
  color: var(--black);
}

.secondary-button:hover {
  background-color: #f3f3f3;
  background-image:
    linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0) 40%),
    radial-gradient(140% 180% at 50% -24%, #ffffff 0%, #f8f8f8 50%, #e8e8e8 100%);
  color: var(--black);
}

.secondary-button:active {
  background-color: #e8e8e8;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0) 42%),
    radial-gradient(140% 180% at 50% 130%, #f4f4f4 0%, #dcdcdc 100%);
  color: var(--black);
}

.window-actions .primary-button {
  margin-bottom: 0;
}

.window-actions .primary-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px;
  pointer-events: none;
  z-index: 6;
}

.header-part.with-nabigation > h2.gutenkern-title {
  margin-bottom: 0;
}

button.secondary-navigation,
button.main-nav-link {
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.gutenkern-stage .secondary-navigation-holder {
  display: block;
}

.gutenkern-stage .format-label,
.gutenkern-stage .secondary-navigation-holder > button.secondary-navigation {
  display: inline-block;
  margin: 0 8px 0 0;
  padding: 4px 0;
  vertical-align: baseline;
}

.gutenkern-stage .format-label {
  color: var(--black);
  font-size: var(--nav-font-size);
  font-weight: 700;
  line-height: var(--nav-font-size);
}

.language-holder {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

#language-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
}

.language-holder .primary-button {
  margin-bottom: 0;
  flex-shrink: 0;
}

.language-holder .primary-button:disabled {
  opacity: 0.45;
}

@media screen and (min-width: 1440px) {
  .gutenkern-stage {
    margin-left: 56px;
    margin-right: 56px;
    padding-bottom: 88px;
  }

  .tool {
    width: 48%;
    max-width: 48%;
  }
}

@media screen and (min-width: 1920px) {
  .gutenkern-stage {
    width: 100%;
    max-width: 1760px;
    margin-left: 80px;
    margin-right: 80px;
    padding-bottom: 120px;
  }

  h2.gutenkern-title {
    font-size: 64px;
    line-height: 64px;
  }
}

@media screen and (max-width: 991px) {
  .gutenkern-stage {
    margin-left: 32px;
    margin-right: 32px;
    padding-bottom: 48px;
  }

  h2.gutenkern-title {
    font-size: 24px;
    line-height: 24px;
  }
}

@media screen and (max-width: 767px) {
  .gutenkern-stage {
    margin-left: 24px;
    margin-right: 24px;
    padding-bottom: 40px;
  }

  .tool {
    width: 64%;
    max-width: 64%;
  }
}

@media screen and (max-width: 479px) {
  .gutenkern-stage {
    margin-left: 16px;
    margin-right: 16px;
    padding-bottom: 24px;
  }

  .tool {
    width: 96%;
    max-width: 96%;
  }
}

.context-menu {
  position: fixed;
  z-index: 20;
  min-width: 180px;
  background: #fff;
  border-radius: 4px;
  padding: 8px 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.context-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 4px 16px;
  font: inherit;
  color: var(--black);
  cursor: pointer;
}

.context-menu button:hover:not(:disabled) {
  color: var(--link-–-hovered);
}

.context-menu button:disabled {
  opacity: 0.45;
  cursor: default;
}

.toast[hidden],
.context-menu[hidden],
.pair-count[hidden],
.placeholder[hidden] {
  display: none !important;
}
