html {
  --hover-background: rgb(from var(--focus-color) r g b / 0.12);
  --gap-color-1: rgb(from hotpink r g b / 0.35);
  --gap-color-2: var(--background);
  --padding-x: 1.25em;
  --control-pane-height: 3em;
}
html[data-color-scheme="light"] {
  --background: #f6f6f6;
  --hover-background: rgb(from var(--focus-color) r g b / 0.07);
  --gap-color-1: rgb(from hotpink r g b / 0.25);
}
.view.screen > .content a:visited {
  color: #b379f9; /* var(--focus-color-2); */
}
html[data-color-scheme="light"] .view.screen > .content a:visited {
  color: #a0019e; /* #8755d2; */
}
body {
  overscroll-behavior: none;
}
button.x {
  font: var(--font-family);
  color: var(--focus-color);
  background: none transparent;
  border: none;
  border-bottom: 0.1rem dotted;
  cursor: pointer;
  padding: 0;
}
select {
  max-width: 14.4em;
  font: inherit;
  color: var(--focus-color);
  appearance: none;
  background:
    transparent
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2092%20100%22%3E%3Cpath%20d%3D%22M21%2C40%20L46%2C70%20L71%2C40%22%20fill%3D%22none%22%20stroke%3D%22%2364a0fd%22%20stroke-width%3D%228%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E")
    100% 50% / auto 1em no-repeat;
  border: none;
  border-bottom: 0.07rem solid;
  box-shadow: none;
  padding: 0 1.5em 0 0.1em;
  cursor: pointer;
  box-sizing: border-box;
}
html[data-color-scheme="light"] select {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2092%20100%22%3E%3Cpath%20d%3D%22M21%2C40%20L46%2C70%20L71%2C40%22%20fill%3D%22none%22%20stroke%3D%22%234169e1%22%20stroke-width%3D%228%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");
}
html[data-color-scheme="light"] .drop-zone {
  --focus-color: #3a73df;
}
.drop-zone {
  --emphatic-color: var(--focus-color);
  display: none;
  font-size: 1.1em;
  text-align: center;
  align-items: center;
  justify-content: center;
  color: var(--focus-color);
  background: rgb(from var(--focus-color) r g b / 0.1);
  border: 0.1em dashed;
  padding: 1.5em 3em;
  cursor: pointer;
  box-sizing: border-box;
  position: fixed;
  inset: 0.12em;
  z-index: 1000;
}
.drop-zone input {
  display: none;
}
.start.screen .drop-zone,
[data-dragover] .view.screen .drop-zone {
  display: flex;
}
.start.screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: var(--layout-padding-y) var(--layout-padding-x);
  box-sizing: border-box;
}
.start.screen .upload {
  flex: auto;
  min-height: 30vh;
  position: relative;
}
.start.screen .drop-zone {
  border-radius: 1rem;
  position: absolute;
}
nav .list a {
  display: inline-block;
  font-size: 0.8em;
  /* background: #4169e130; */
  background: rgb(from var(--focus-color) r g b / 0.2);
  border-radius: 1rem;
  padding: 0.2rem 0.85rem;
  margin-left: 0.5em;
}
nav .list a,
nav .list a:hover,
nav .list a:active,
nav .list a:visited {
  text-decoration: none;
  border: none;
}
[data-mode="grouped"] nav .list a,
[data-mode="grouped-original"] nav .list a {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}
.control-pane {
  display: inline-flex;
  width: 100%;
  height: var(--control-pane-height);
  align-items: center;
  white-space: nowrap;
  background: rgb(from var(--background) r g b / 0.95);
  padding: 0.6em var(--padding-x) 0.65em;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 100;
}
.control-pane label {
  cursor: pointer;
}
.control-pane > * {
  flex: none;
}
.control-pane > * + * {
  margin-left: var(--padding-x);
}
.control-pane fieldset {
  display: flex;
  border: none;
  padding: 0;
  overflow: hidden;
}
.control-pane fieldset[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.control-pane fieldset[hidden] {
  display: none;
}
.control-pane fieldset input {
  left: -100em;
  position: absolute;
}
.control-pane fieldset label {
  display: inline-block;
  color: rgb(from var(--color) r g b / 0.78);
  background: rgb(from var(--color) r g b / 0.07);
  border: 0.05em solid;
  padding: 0.2em 1em;
  cursor: pointer;
  user-select: none;
}
.control-pane fieldset input:checked + label {
  color: var(--focus-color);
  background: rgb(from var(--focus-color) r g b / 0.2);
}
.duration-setting,
.squashed-setting {
  display: none;
}
[data-mode="grouped"] .duration-setting,
[data-mode="grouped-original"] .duration-setting,
[data-mode="grouped-original"] .squashed-setting {
  display: inline-block;
}
.content {
  line-height: 1.2;
  padding: 1em var(--padding-x) 2em;
}
.content p.title {
  font-size: 1.1em;
  color: var(--emphatic-color);
  padding: 0.75em 0;
  margin: 1.5em 0 0;
}
.content > p.title:first-of-type,
.content > div:first-of-type p.title {
  padding-top: 0;
  margin-top: 0;
}
.content p.title .duration {
  display: inline-block;
  font-size: 0.85em;
  color: rgb(from var(--color) r g b / 0.6);
  margin-top: 0.3em;
}
table {
  max-width: 100%;
  font: inherit;
  border: none;
  border-top: 0.05em solid;
  /* border-collapse: collapse; */
  margin-top: 0;
}
.file table {
  width: 100%;
}
td {
  text-align: start;
  vertical-align: top;
  border: none;
  border-bottom: 0.05rem solid;
  padding: 0.75rem 1.25rem;
  box-sizing: border-box;
}
tr.gap td {
  height: 1em;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--gap-color-1) 0,
    var(--gap-color-1) 5px,
    var(--gap-color-2) 5px,
    var(--gap-color-2) 10px
  );
  padding: 0;
}
td:first-child {
  padding-left: 0.75rem;
}
td:last-child {
  padding-right: 0.75rem;
}
td.source {
  min-width: 24em;
}
td.source .title._br {
  word-break: break-all;
}
td.source video {
  background: rgb(from var(--color) r g b / 0.07);
  margin: 0.5em 0 0;
}
td.source .aux,
td.source .preview {
  font-size: 0.8rem;
  margin-top: 0.65em;
}
td.source .preview {
  margin-top: 0.8em;
}
td.source .aux > span {
  display: inline-block;
}
td.source .aux > span + span {
  margin-left: 0.75rem;
}
td.source .aux > span.search {
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2010%2010%22%3E%3Cg%20stroke%3D%22%23ddd%22%20fill%3D%22none%22%3E%3Ccircle%20cx%3D%226.4%22%20cy%3D%223.6%22%20r%3D%222.8%22%20stroke-width%3D%22.5%22%2F%3E%3Cpath%20d%3D%22M4.4%2C5.7%20L1%2C9%22%20stroke-width%3D%221%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")
    0 50% / 0.9em no-repeat;
  padding-left: 1.25rem;
}
html[data-color-scheme="light"] td.source .aux > span.search {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2010%2010%22%3E%3Cg%20stroke%3D%22%23111%22%20fill%3D%22none%22%3E%3Ccircle%20cx%3D%226.4%22%20cy%3D%223.6%22%20r%3D%222.8%22%20stroke-width%3D%22.5%22%2F%3E%3Cpath%20d%3D%22M4.4%2C5.7%20L1%2C9%22%20stroke-width%3D%221%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
td.source .aux > span.search .sep {
  margin: 0 0.25rem;
}
td.period,
td.m {
  font-size: 1rem;
  font-family: monospace;
  white-space: nowrap;
}
td button.swap {
  float: right;
  font-family: var(--font-family);
  margin-left: 0.5em;
  margin-top: -0.35em;
  transform: translateY(0.15em);
}
tr:not(.head, .gap):hover td {
  background: var(--hover-background);
}
table .sep {
  margin: 0 0.5em;
}
table.headed {
  border-top: none;
}
tr.head td {
  font-style: italic;
  padding-top: 0.25em;
  padding-bottom: 0.3rem;
}
tr.head td,
tr:last-child td {
  border-bottom-width: 0.1rem;
}
tr.head td.t1,
tr.head td.t2 {
  white-space: nowrap;
}
table.light {
  border-top: none;
}
table.light td {
  border-bottom: none;
  padding: 0.25em 1em;
}
table.light td:first-child {
  padding-left: 0;
}
table.light td:last-child {
  padding-right: 0;
}
html:not([data-screen="start"]) .start.screen,
html:not([data-screen="view"]) .view.screen {
  display: none;
}
/* .start.screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
  padding: .5em;
  box-sizing: border-box;
}
.start.screen > .upload {
  width: 100%;
}
.start.screen .drop-zone {
  min-height: 8em;
  height: 36vh;
  border-radius: .5em;
  position: static;
} */
.preview .status {
  font-style: italic;
}
.preview-item a {
  display: flex;
  border: none;
}
.preview-item .image {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6em;
  height: 4em;
  background: rgb(from var(--color) r g b / 0.15);
  margin-right: 1em;
  position: relative;
}
.preview-item .image img {
  max-width: 6em;
  max-height: 4em;
}
.preview-item .duration {
  display: inline-block;
  font-size: 0.8em;
  color: var(--background);
  background: rgb(from var(--color) r g b / 0.85);
  padding: 0.1em 0.25em;
  position: absolute;
  bottom: 0.3em;
  right: 0.3em;
}
.preview-item .title {
  line-height: 1.2;
  word-break: break-word;
}
.preview-item .source {
  color: rgb(from var(--color) r g b / 0.6);
  font-style: italic;
}
@media (max-width: 500px) {
  .drop-zone {
    font-size: 1rem;
  }
  .drop-zone .caption br {
    display: none;
  }
}
