/* tmux panes: splits, pane frames and headers, and the dividers. */
.panes {
  flex: 1;
  min-height: 0;
  display: flex;
  position: relative;
  z-index: var(--z-panes);
  /* Gives back the 1px that panes overlap by, so the outer borders show */
  padding: 1px 0 0 1px;
}
.split {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1;
}
.split.v {
  flex-direction: row;
}
.split.h {
  flex-direction: column;
}
/* Neighbouring panes overlap by 1px and share one border */
.pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  flex: 1;
  border: 1px solid var(--rib);
  margin: -1px 0 0 -1px;
}
/* A pane alone in its window. A bare pane (Sole pane frames OFF) also
   hides its header, which stays in the DOM for its accessible name. */
.pane.solo,
.pane.bare {
  border: 0;
  margin: 0;
}
.pane.bare > .pane-head {
  display: none;
}
.pane.cur {
  border-color: var(--titan);
  z-index: 1;
}
.pane-head {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.78em;
  color: var(--dust);
  padding: 0.1em 0.8em;
  border-bottom: 1px solid var(--rib);
  white-space: nowrap;
  overflow: hidden;
}
.pane.cur > .pane-head {
  color: var(--hall);
  background: var(--titan);
  text-shadow: none;
  border-bottom-color: var(--titan);
}
.pane-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pane-close {
  font: inherit;
  font-size: 0.9em;
  color: inherit;
  background: none;
  border: 1px solid currentColor;
  padding: 0 0.4em;
  line-height: 1.3;
  opacity: 0.8;
}
.pane-close:hover,
.pane-close:focus-visible {
  opacity: 1;
}
.pane-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.pane-body > * {
  flex: 1;
  min-height: 0;
}
.pane-title {
  font-family: var(--font-crt);
  font-size: 1.35em;
  margin-bottom: 0.4em;
}
/* A pane sized to its content, up to 45% of the split (the stacked inbox) */
.pane.fit {
  flex: 0 1 auto;
  max-height: 45%;
}
.pane.fit > .pane-body,
.pane.fit > .pane-body > * {
  flex: 1 1 auto;
}
/* The divider overlaps the pane borders. Drag or arrow keys resize, a
   double click restores the default. */
.split-bar {
  flex: 0 0 8px;
  position: relative;
  z-index: 2;
  touch-action: none;
  background: transparent;
}
.split.v > .split-bar {
  margin: 0 -4px;
  cursor: col-resize;
}
.split.h > .split-bar {
  margin: -4px 0;
  cursor: row-resize;
}
.split-bar:hover,
.split-bar:focus-visible,
.split-bar.drag {
  background: rgba(214, 195, 150, 0.25);
  outline: none;
}
/* A phone fits all six messages of the stacked inbox */
@media (max-width: 700px) {
  .pane.fit {
    max-height: 52%;
  }
  .pane.fit .mailpane {
    padding: 0.4em 0.8em;
  }
  .pane.fit .mailpane .pane-title {
    margin-bottom: 0.2em;
  }
}
